Danny McClanahan
39da6e051a
use f-string in exception message
2023-08-14 07:57:37 -04:00
Danny McClanahan
bfa8a5532d
clean up duplicated code
2023-08-14 07:57:37 -04:00
Danny McClanahan
22637722aa
fix #11847 for sdists
2023-08-14 07:57:37 -04:00
Paul Moore
5378a6e110
Merge pull request #12194 from cosmicexplorer/build-tracker-comments
...
Add lots of comments on the function of BuildTracker
2023-08-11 12:05:38 +01:00
Danny McClanahan
4a853ea348
Update src/pip/_internal/operations/build/build_tracker.py
...
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2023-08-11 04:38:07 -04:00
Danny McClanahan
b1fd3ac3e4
Update src/pip/_internal/operations/build/build_tracker.py
...
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2023-08-11 04:37:31 -04:00
Shantanu
901db9cf8d
Use a set for TargetPython.get_tags for performance ( #12204 )
2023-08-06 11:08:16 -05:00
Seth Michael Larson
d311e6e603
Upgrade certifi to 2023.7.22 ( #12206 )
2023-08-06 09:26:54 -05:00
Shantanu
a19ade74a5
Use strict optional checking in req_install.py ( #11379 )
...
* Use strict optional checking in req_install.py
Suggested by pradyunsg in #11374
Since half of the API of this class depends on self.req not being None,
it seems like we should just prevent users from passing None here.
However, I wasn't able to make that change.
Rather than sprinkle asserts everywhere, I added "checked" properties.
I find this less ad hoc and easier to adapt if e.g. we're able to make
self.req never None in the future.
There are now some code paths where we have asserts that we didn't
before. I relied on other type hints in pip's code base to be accurate.
If that is not the case and we actually relied on some function being
able to accept None when not typed as such, we may hit these asserts.
But hopefully tests would catch such a thing.
* news
* black
* inline asserts
* code review
* fix up merge issue
* fix specifier bug
2023-08-05 00:07:27 +01:00
Danny McClanahan
b47f77d330
add lots of comments on the function of BuildTracker
2023-08-01 13:50:40 -04:00
Tzu-ping Chung
e4a0df1586
Merge branch 'main' into cleaner-metadata-log
2023-07-30 20:49:16 +08:00
Tzu-ping Chung
4babc07663
Move metadata-fetching log to VERBOSE level
2023-07-28 15:32:29 +08:00
Danny McClanahan
454e9768fb
incorporate review comments
2023-07-28 02:43:49 -04:00
Danny McClanahan
eabefd4021
revert the traceback wrapping
2023-07-28 02:18:36 -04:00
Danny McClanahan
eeb3d8fdff
synthesize a traceback to get a normal exc_info from an exception
...
- as per https://docs.python.org/3.12/whatsnew/3.12.html#shutil , we must expect only an exception
and *not* the full exc_info from the new onexc function (the documentation of this is very
misleading and still uses the label "excinfo":
https://docs.python.org/3.12/library/shutil.html#shutil.rmtree )
2023-07-28 01:00:06 -04:00
Tzu-ping Chung
d0641740d5
Merge pull request #11394 from ales-erjavec/temp-cleanup-ignore-errors
2023-07-27 15:11:40 +08:00
Illia Volochii
5e4e44a254
Drop a fallback to using SecureTransport on macOS
2023-07-22 20:39:04 +03:00
Paul Moore
c12139de9b
Disable PEP 658 for the legacy resolver
2023-07-18 20:50:10 +01:00
Aleš Erjavec
2928750ae6
Change warning wording
...
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
2023-07-17 15:15:41 +02:00
Ales Erjavec
6a9098ed48
Show a single warning on temp directory cleanup
...
Log individual errors at debug logging level.
2023-07-17 15:15:41 +02:00
Ales Erjavec
4ff65abdf7
Fix 'force' remove file without write permissions
...
Preserve existing mode flags, handle case where we even lack
permission to change the mode.
2023-07-17 15:15:41 +02:00
Ales Erjavec
660dafb37f
Ignore errors in temporary directory cleanup
...
pip should not exit with an error when it fails to cleanup temporary
files after it has already successfully installed packages.
2023-07-17 15:15:41 +02:00
Shantanu
593b85f4ab
Use strict optional checking in misc.py ( #11382 )
2023-07-17 10:40:25 +01:00
Paul Moore
b6a2670599
Bump for development
2023-07-15 10:05:07 +01:00
Paul Moore
a3c2c43c53
Bump for release
2023-07-15 10:05:07 +01:00
Pradyun Gedam
324dd44495
Merge pull request #11417 from Freed-Wu/fix-zsh
2023-07-15 01:57:38 +01:00
Tzu-ping Chung
e53cf3d32d
Merge pull request #12137 from groodt/groodt-fix-deprecation-warning
2023-07-15 00:50:57 +08:00
Tzu-ping Chung
0cabefbce8
Ensure requirements are prepared before get_dist()
...
The legacy resolver seems to prepare requirements differently that can
leave them half-done in certain code paths. I'm not quite sure how it's
doing things, but at least we can do this to make sure they do things
right.
2023-07-12 03:41:00 +08:00
Greg Roodt
9b47bc0fea
Make black formatter happy
2023-07-10 22:04:46 +10:00
Greg Roodt
25f4e6eabf
Fix deprecation warnings in Python 3.12 for usage of shutil.rmtree
2023-07-10 21:59:42 +10:00
Joe Bylund
c5c85075a4
Update vendored urllib3 from 1.26.15 to 1.26.16
2023-07-09 18:58:12 -04:00
Paul Moore
4e2295d109
Upgrade setuptools to 68.0.0
2023-07-09 22:20:05 +01:00
Paul Moore
92494e94e9
Upgrade typing_extensions to 4.7.1
2023-07-09 22:20:05 +01:00
Paul Moore
b6d519f775
Upgrade pygments to 2.15.1
2023-07-09 22:20:04 +01:00
Paul Moore
6c33bbf8fb
Upgrade rich to 13.4.2
2023-07-09 22:20:03 +01:00
Paul Moore
50af834c1e
Upgrade certifi to 2023.5.7
2023-07-09 22:20:03 +01:00
Paul Moore
6ee8884ac4
Upgrade pyparsing to 3.1.0
2023-07-09 22:20:02 +01:00
Paul Moore
856c7ec27e
Upgrade platformdirs to 3.8.1
2023-07-09 22:20:02 +01:00
Роман Донченко
393ccfbc31
test_freeze_with_setuptools: use mocks
...
This makes it possible to test both branches on any Python version.
2023-07-07 01:46:03 +03:00
Роман Донченко
5dc65eabb7
Don't exclude setuptools, distribute & wheel from freeze output on Python 3.12+
...
Due to the advent of build isolation, it is no longer necessary to install
setuptools and wheel in an environment just to install other packages.
Moreover, on Python 3.12 both ensurepip [1] and virtualenv [2] are to stop
installing setuptools & wheel by default. This means that when those packages
are present in a Python 3.12+ environment, it is reasonable to assume that
they are runtime dependencies of the user's project, and therefore should be
included in freeze output.
distribute is just obsolete.
[1] https://github.com/python/cpython/issues/95299
[2] https://github.com/pypa/virtualenv/pull/2558
2023-07-07 01:46:03 +03:00
Shantanu
997f92a450
Merge branch 'main' into strict-optional-glibc
2023-07-05 01:23:21 -07:00
Pradyun Gedam
b88addeaf5
Merge pull request #11945 from sbidoul/legacy-version-and-specifier-deprecation-sbi
...
Surface LegacyVersion and LegacySpecifier deprecation warnings
2023-07-03 13:51:18 +01:00
Paul Moore
4cc183e445
Merge pull request #12120 from pfmoore/fix_11847
...
Record download of completed partial requirements
2023-07-03 13:15:13 +01:00
Paul Moore
8e80a3ad9a
Fix typo
2023-07-03 10:45:01 +01:00
Paul Moore
647ba8d07e
Limit the double download fix to wheels
2023-07-03 10:35:01 +01:00
Paul Moore
b99e082b00
Record download of completed partial requirements
2023-07-01 14:42:10 +01:00
Stéphane Bidoul
45468f06d4
Pass revisions options explicitly to mercurial commands
2023-07-01 13:41:34 +02:00
Tzu-ping Chung
256af8f691
Catch OSError instead of IOError
2023-06-29 17:28:16 +08:00
Tzu-ping Chung
41f138e43a
Minimize changeset
2023-06-29 16:51:34 +08:00
Tzu-ping Chung
6507734aac
Fix string formatting
2023-06-29 16:51:11 +08:00