-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support poetry.lock #835
base: main
Are you sure you want to change the base?
Support poetry.lock #835
Commits on Nov 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 3ebeb57 - Browse repository at this point
Copy the full SHA 3ebeb57View commit details -
Configuration menu - View commit details
-
Copy full SHA for d20ddf8 - Browse repository at this point
Copy the full SHA d20ddf8View commit details -
Add tests for pyproject.toml-style projects using poetry
Add two test cases for projects using poetry as the build backend: - testPoetry: project without dependencies - testPoetryLock: project with dependencies, using a poetry.lock file
Configuration menu - View commit details
-
Copy full SHA for 0422f56 - Browse repository at this point
Copy the full SHA 0422f56View commit details -
Add tests for pyproject.toml-style projects using flit
Add two test cases for projects using flit as the build backend: - testFlit: project without dependencies - testFlitRequires: project with dependencies
Configuration menu - View commit details
-
Copy full SHA for 7a65ab1 - Browse repository at this point
Copy the full SHA 7a65ab1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42c45ee - Browse repository at this point
Copy the full SHA 42c45eeView commit details -
Add failing test for poetry.lock
Check that pinned requirements are honored when poetry.lock is present. Request an outdated version of marshmallow in poetry.lock (3.0.0). Check that the outdated version is installed, rather than a newer version also satisfying the version constraint in pyproject.toml (^3.0.0).
Configuration menu - View commit details
-
Copy full SHA for 13633db - Browse repository at this point
Copy the full SHA 13633dbView commit details -
Do not write requirements.txt for pyproject.toml-based projects
Install pyproject.toml-based projects using `pip install .`. Do not use a requirements.txt for this. The requirements.txt file is needed to handle pinned versions extracted from the poetry.lock file. Note that we cannot simply append `.` to the exported requirements.txt file. Currently pip requires that either all requirements have a hash or none. Including `.` would thus force us to omit hashes for all requirements.
Configuration menu - View commit details
-
Copy full SHA for 4c9b95c - Browse repository at this point
Copy the full SHA 4c9b95cView commit details -
Install pinned dependencies from poetry.lock
If a poetry.lock file is present, use the Poetry CLI to export the pinned requirements to a requirements.txt file. If the project already contains a requirements.txt, use that and ignore poetry.lock. Poetry is not used to install the project because it does not clean up stale requirements. This means that requirements need to be exported anyway, for the `pip-uninstall` step. Since we only use Poetry to export a requirements.txt file, ignore the Poetry version specified in pyproject.toml. Install a pre-release of 1.0.0 because the export command is not available before 1.0.0a0. Note that supporting pyproject.toml-based installations is not enough to handle pinned requirements: When pip installs a pyproject.toml-style project using the process described in PEP 517, it only uses Poetry to build a wheel. The wheel contains the version constraints from pyproject.toml, not the pinned versions from poetry.lock.
Configuration menu - View commit details
-
Copy full SHA for 2614fab - Browse repository at this point
Copy the full SHA 2614fabView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d609a1 - Browse repository at this point
Copy the full SHA 1d609a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd23a90 - Browse repository at this point
Copy the full SHA cd23a90View commit details