Skip to main content

Lock your dependencies once, use your lockfile everywhere

Project description

pip-compile-cross-platform

🚨 This is early-stage software, it's currently recommended to verify outputted changes 🚨

Usage

  1. pip install --user pip-compile-cross-platform
  2. pip-compile-cross-platform requirements.in

Description

pip-compile is an incredible tool built by the Jazzband crew. However, there's one main limitation: cross-environment usage is unsupported.

As the resulting requirements.txt can differ for each environment, users must execute pip-compile on each Python environment separately to generate a requirements.txt valid for each said environment.

pip-compile-cross-platform is planned to act as a stand-in replacement for pip-compile that can produce a single, source-of-truth requirements.txt file that can be used in any target environment.

Note that compatibility with pip-compile is still weak, and help to improve the state of compatibility would be much appreciated.

How it works

Environment-specific dependencies are defined using environment markers. pip-compile processes environment markers up-front according to the current environment. poetry, another fantastic project, can export a requirements.txt file while tracking the state of all environment markers.

Essentially, pip-compile-cross-platform is a thin wrapper around poetry that mimicks the interface of pip-compile.

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-compile-cross-platform-0.9.2.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

pip_compile_cross_platform-0.9.2-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

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