Commit Graph

14016 Commits

Author SHA1 Message Date
Seth Michael Larson 7c5b2f2ca9
Update security policy (#12254)
Provide a link to the CNA/PSRT disclosure process.
2023-09-05 23:31:55 +01:00
Tzu-ping Chung 6328294d1f
Merge pull request #12224 from ddelange/ddelange-patch-1 2023-09-05 17:57:11 +08:00
Christian Clauss 50c49f1d83
GitHub Actions: setup-python allow-prereleases for 3.12 (#12252) 2023-09-01 21:41:00 +01:00
Paul Ganssle f612503035
Remove uses of `utcnow` in non-vendored code (#12006)
* Remove reference to utcnow

This cleans up some of the datetime handling in the self check.

Note that this changes the format of the state file, since the datetime
now uses ``.isoformat()`` instead of ``.strftime``. Reading an outdated
state file will still work on Python 3.11+, but not on earlier versions.

* Use aware datetime object in x509.CertificateBuilder
2023-08-31 09:28:31 +01:00
Tzu-ping Chung b91cbd1661
Merge pull request #12239 from studioj/studioj-patch-1 2023-08-29 16:17:46 +08:00
studioj c127512f13 small update for authentication.md 2023-08-28 20:43:50 +02:00
Tzu-ping Chung a3378162f8
Merge pull request #12225 from ddelange/filter-available-versions 2023-08-28 17:48:02 +08:00
ddelange 510c6acf69
Filter out yanked links from available versions error message 2023-08-26 12:17:40 +02:00
ddelange 55205b940d
Update installation report docs 2023-08-25 09:43:14 +02:00
ddelange a7f70b0ad9
Merge branch 'main' into ddelange-patch-1 2023-08-23 12:28:37 +02:00
Tzu-ping Chung 49b9c0470f
Merge pull request #12236 from uranusjr/upgrade-doc-builds 2023-08-23 11:33:47 +08:00
Tzu-ping Chung 695b9f5ab5 Upgrade Sphinx to 7.x 2023-08-23 11:28:18 +08:00
Tzu-ping Chung b4437789a0 Fix rtd config 2023-08-23 11:24:51 +08:00
Tzu-ping Chung fef9bd4295
Merge pull request #12197 from cosmicexplorer/fix-metadata-sdist-download 2023-08-23 09:14:27 +08:00
ddelange 3c5e2aed04
PR Suggestion
Co-authored-by: Paul Moore <p.f.moore@gmail.com>
2023-08-15 12:06:56 +02:00
Tzu-ping Chung 553690b39e
Period 2023-08-15 10:49:49 +08:00
ddelange 361b02bce0
Add is_yanked to installation report 2023-08-14 19:09:50 +02:00
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 957ad95c7d
add news entry 2023-08-14 07:57:37 -04:00
Danny McClanahan 22637722aa
fix #11847 for sdists 2023-08-14 07:57:37 -04:00
Danny McClanahan 50a2fb4f9f
add mock server to test that each dist is downloaded exactly once 2023-08-14 07:57:37 -04:00
Danny McClanahan 2e365bdab1
move test_download_metadata mock pypi index utilities to conftest.py 2023-08-14 07:57:37 -04:00
Tzu-ping Chung 0778c1c153
Merge pull request #12193 from cosmicexplorer/metadata-behavior-testing 2023-08-14 14:22:21 +08:00
Danny McClanahan 8704c7a5db
remove unnecessary fixture 2023-08-12 10:51:33 -04:00
Danny McClanahan e27af2c3c9
add notes on hash mismatch testing 2023-08-12 10:46:22 -04:00
Danny McClanahan 20b54de4df
add news 2023-08-12 10:01:31 -04:00
Danny McClanahan 67ff36b838
move directory metadata test out of req install tests 2023-08-12 10:01:30 -04:00
Danny McClanahan e86da734c7
add test for hash mismatch 2023-08-12 10:01:30 -04:00
Danny McClanahan 8e305f262f
add test for the *existing* `install --dry-run` functionality 2023-08-12 10:01:30 -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 d8cd93f4fa
Fix incorrect use of re function in tests (#12213) 2023-08-08 07:37:38 -05: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
Paul Moore 3c0147a889
Merge pull request #12198 from jeffwidman/patch-1
Remove superfluous callout of new resolver
2023-08-02 21:23:23 +01:00
Jeff Widman e4d2e6e6b2
Remove superfluous callout of new resolver
The new resolver has been out for nearly three years now.

I don't think we need to highlight it on the Readme anymore.

Folks who are truly affected are far more likely to google their errors and then get redirected to it.

By removing the noise from the Readme, it stops distracting from other stuff.
2023-08-02 12:26:27 -07:00
Danny McClanahan 023b3d9237
add news 2023-08-01 13:59:42 -04:00
Danny McClanahan b47f77d330
add lots of comments on the function of BuildTracker 2023-08-01 13:50:40 -04:00
Tzu-ping Chung 3dc5ac5407
Merge pull request #12188 from uranusjr/cleaner-metadata-log 2023-07-31 08:18:59 +08:00
Tzu-ping Chung e4a0df1586
Merge branch 'main' into cleaner-metadata-log 2023-07-30 20:49:16 +08:00
Tzu-ping Chung b69ed811f0
Merge pull request #12187 from cosmicexplorer/fix-tempdir-cleanup 2023-07-30 20:48:58 +08:00
Tzu-ping Chung 4babc07663 Move metadata-fetching log to VERBOSE level 2023-07-28 15:32:29 +08:00
Tzu-ping Chung 6cc961ee79
Uppercase Python 2023-07-28 14:46:23 +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 4f036be496
add news entry 2023-07-28 01:20:07 -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