Skip to main content

Like poetry, but it's pip

Project description

pip-inside

I use pip, so I have requirements.txt, and might requirements-dev.txt as well.

Later when I started to configure my black, isort, pypy..., I have pyproject.toml.

Then I wanted to move requrements.txt into pyproject.toml, as it's feature-rich, then I saw poetry.

After used poetry for months, I started to missing pip, as poetry:

  • sometimes slow, and sometimes quite slow
  • hash mismatch, then I have to delete my entire cache, and download everything again
  • when you have huge dependencies like torch (~2 GB), too bad to install a general version, then a working version later in toe plugin

So this pip-inside comes out. It's just flit-core with pip as the dependency installer.

NOTICES:

Only supports:

  • dynamic version (__version__ = 'your version' in {root_module}/init.py)
  • non-dynamic description (in pyproject.toml)
  • no src folder in project root
  • virtualenv folder named .venv in project root
  • not checking hashes

install

# in each of your virtual env
pip install pip-inside

commands

  • pip-inside
  • pi
pi
Usage: pi [OPTIONS] COMMAND [ARGS]...

Options:
  -V, --version  show version of this tool
  --help         Show this message and exit.

Commands:
  add      Add a package as project dependency
  build    Build the wheel and sdist
  init     Init project in current directory
  install  Install project dependencies by groups
  publish  Publish the wheel and sdist to remote repository
  remove   Remove a package from project dependencies
  version  Show version of current project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pip-inside-0.1.5.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

pip_inside-0.1.5-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file pip-inside-0.1.5.tar.gz.

File metadata

  • Download URL: pip-inside-0.1.5.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for pip-inside-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ee7d3f3fadb63d3878d5e63d0fb6cbe656c1022adf8583ea2535206bdcfbb3e2
MD5 274bdac66ffbf2bf24db5278b349c0b3
BLAKE2b-256 84b110c2d1a36af0e8425758d4801a8fcc4ab3c0221294a91a2ee59520d8a80c

See more details on using hashes here.

File details

Details for the file pip_inside-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pip_inside-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 48.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for pip_inside-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 48877f50d7458f2a642901cf54dd753cb7dc5d0e485dc58bec3eb1bb6de616fe
MD5 0d4dce6464e029f275e7e792dbe56431
BLAKE2b-256 38abb0f98e41a9ab36c112b485383f96a6c4039c5c5c2734a3b9e0eb55381434

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page