-
-
Notifications
You must be signed in to change notification settings - Fork 643
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synthesize targets for Python lockfiles (#17097)
This shows how the synthetic target API from #16998 can be used to synthesize targets for lockfiles, which may then be included as dependencies for the requirements. The last commit builds on top of #16998. Fixes #16933 ```bash $ ./pants peek --exclude-defaults 3rdparty/python:python#setuptools ``` ```json [ { "address": "3rdparty/python#setuptools", "target_type": "python_requirement", "dependencies": [ "3rdparty/python/requirements.txt", "3rdparty/python/user_reqs.lock:python-default" ], "dependencies_raw": [ "3rdparty/python/requirements.txt", "3rdparty/python/user_reqs.lock:python-default" ], "requirements": [ "setuptools<64.0,>=63.1.0" ] } ] ``` ```bash $ ./pants peek --exclude-defaults 3rdparty/python/user_reqs.lock ``` ```json [ { "address": "3rdparty/python/user_reqs.lock:python-default", "target_type": "_lockfile", "dependencies": [], "source_raw": "user_reqs.lock", "sources": [ "3rdparty/python/user_reqs.lock" ] } ] ```
- Loading branch information
Showing
9 changed files
with
237 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.