-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Implement --uploaded-prior-to to filter packages by upload-time
#13520
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
Closed
Closed
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
e1e72e7
Implement --upload-before
uranusjr c8b2481
Fix merge errors and rename to "exclude-newer-than"
notatallshaw a53d08a
Make common parse_iso_time
notatallshaw 6db6c94
Add documentation on how to specify explicit timezone
notatallshaw c0ec2ec
Add exclude-newer tests
notatallshaw 2bf1d3a
Pass exclude-newer-than to isolated build install
notatallshaw d5adbda
NEWS ENTRY
notatallshaw c374b2c
Fix linting
notatallshaw bc162b2
Merge branch 'main' into exclude-newer-than
notatallshaw 72f363d
Add helpful error message on incorrect datetime format
notatallshaw 181a7ca
Merge branch 'main' into exclude-newer-than
notatallshaw 007caf6
Update tests/functional/test_exclude_newer.py
notatallshaw b53c5e8
Merge branch 'main' into exclude-newer-than
notatallshaw 0f1bc46
Add `--no-deps` to request installs to not download unneeded packages
notatallshaw ad90024
Remove excessive functional tests
notatallshaw 6ff91a4
Clean up test_finder tests
notatallshaw fbe923d
Update `test_handle_exclude_newer_than_naive_dates` comparison
notatallshaw 703cdc4
Improve parameter formatting of `test_handle_exclude_newer_than_with_…
notatallshaw 6cf2bec
Get exclude_newer_than from option
notatallshaw 4713c6d
Add exclude-newer-than to the lock command
notatallshaw 841ae12
Remove change in list, links, and wheel
notatallshaw 61ec9b0
Update docs and news items to make clear index needs to provide `uplo…
notatallshaw e1f274a
Change name to uploaded prior to
notatallshaw e592e95
Add `--uploaded-prior-to` to the user guide
notatallshaw 3cc912c
Merge branch 'main' into exclude-newer-than
notatallshaw fc40558
Merge branch 'main' into exclude-newer-than
notatallshaw afb6f2d
Merge branch 'main' into exclude-newer-than
notatallshaw b5e4923
Fix type hint error in `make_test_link_evaluator`
notatallshaw 8be9e32
Merge branch 'main' into exclude-newer-than
notatallshaw 659d538
Merge branch 'main' into exclude-newer-than
notatallshaw 64f4529
Do not allow indexes which don't provide `upload-time` if `--uploaded…
notatallshaw a3b3ac1
Implement build constraints
notatallshaw b8f3513
Add build constraints tests
notatallshaw 4e3aecd
Add build constraints to user guide
notatallshaw b6b6a7f
NEWS ENTRY
notatallshaw 30fd4e1
Imply using new behavior when build constraints are provided without …
notatallshaw f1831e7
Update src/pip/_internal/cli/req_command.py
notatallshaw 50e45d2
Update src/pip/_internal/build_env.py
notatallshaw 9465e3e
Fix linting
notatallshaw 8524919
Fix test
notatallshaw 5453030
Consistently use "build constraints" in variables and documentation
notatallshaw 0de1334
Simplify deprecation warning
notatallshaw b9a21b5
Only emit pip constraint deprecation warning once
notatallshaw 97b6de1
Move `ExtraEnviron` into type checking block
notatallshaw 707c449
Use standard `assert_installed` in functional tests for build constra…
notatallshaw c5e19c2
Eagerly assert build constraints files
notatallshaw c655049
Add deprecation news item.
notatallshaw 830324b
Remove pointless check for `_PIP_IN_BUILD_IGNORE_CONSTRAINTS` in `_de…
notatallshaw 1d679b8
Exit `_deprecation_constraint_check` early when build constraints pre…
notatallshaw 84c955b
Remove superfluous `constraints` parameter
notatallshaw 8e595f7
Use with to close pip session.
notatallshaw b7ca0bf
Remove deprication supression logic
notatallshaw 6183877
Update tests
notatallshaw 9587d29
fix lint
notatallshaw 3f0350e
Avoid `pip install --dry-run` downloading full wheels
pelson 8c5db4d
Refine the news
pelson b7e7ecf
Update news/12603.feature.rst
notatallshaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| When PEP-658 metadata is available, full distribution files are no longer downloaded when using ``pip lock`` or ``pip install --dry-run``. |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Add ``--uploaded-prior-to`` option to only consider packages uploaded prior to | ||
| a given datetime when the ``upload-time`` field is available from an index. |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Add support for build constraints via the ``--build-constraint`` option. This | ||
| allows constraining the versions of packages used during the build process | ||
| (e.g., setuptools) without affecting the final installation. |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Deprecate the ``PIP_CONSTRAINT`` environment variable for specifying build | ||
| constraints. | ||
|
|
||
| Build constraints should now be specified using the ``--build-constraint`` | ||
| option or the ``PIP_BUILD_CONSTRAINT`` environment variable. When using build | ||
| constraints, ``PIP_CONSTRAINT`` no longer affects isolated build environments. | ||
| To opt in to this behavior without specifying any build constraints, use | ||
| ``--use-feature=build-constraint``. |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In
pypi-timemachineall date/times are specified in UTC. It is hard to imagine a use case where using anything else is a good idea.Is this a case of following the ISO standard in
pipis harmful to inexperienced users?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was previously discussed: #13520 (comment)