Skip to content
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

[pull] main from pypi:main #2305

Open
wants to merge 1,229 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1229 commits
Select commit Hold shift + click to select a range
fb07777
Remove view statistics blurb (#16198)
di Jul 2, 2024
69f8cb1
Parallelize the unit tests (#16206)
woodruffw Jul 2, 2024
16c9bce
Document the project and file upload limits in pypi on the FAQ page (…
warsaw Jul 2, 2024
679dd63
Update admin template to use ONE_MIB (#16208)
di Jul 2, 2024
83b0c6d
Update ONE_GB to ONE_GIB (#16209)
di Jul 2, 2024
65033eb
routes: update ToU route + test (#16210)
woodruffw Jul 2, 2024
15de759
Combined PRs (#16219)
pypi-combine-prs[bot] Jul 4, 2024
ee0a453
fix: use correct case for ToU link (#16231)
miketheman Jul 8, 2024
cd0c0a5
Publish blog regarding leaked personal access token (#16232)
ewdurbin Jul 8, 2024
1775af7
Combined PRs (#16233)
pypi-combine-prs[bot] Jul 8, 2024
66b6730
feat(admin): Project Quarantine (#16179)
miketheman Jul 8, 2024
5bc08a7
chore: increase migration timeouts (#16234)
miketheman Jul 8, 2024
5a28ff2
Combined PRs (#16241)
pypi-combine-prs[bot] Jul 9, 2024
27d5ec3
Translations update from Weblate (#16199)
weblate Jul 9, 2024
4b62f54
Token leak blog update (#16243)
ewdurbin Jul 9, 2024
d262906
requirements: add pytest-sugar (#16245)
woodruffw Jul 9, 2024
b2c2f3c
Remove HasObservers.observations helper attribute (#16244)
di Jul 9, 2024
9d0e9d6
Admin updates for support (#16247)
ewdurbin Jul 9, 2024
c892a55
bump timeouts for migration from #16247 (#16248)
ewdurbin Jul 9, 2024
81717df
Dev sanity (#16256)
ewdurbin Jul 10, 2024
0878845
remove duplicate call to post-migrations.sql in make resetdb (#16257)
ewdurbin Jul 10, 2024
94059bc
help, settings: replace setup.py with pyproject.toml (#16258)
woodruffw Jul 10, 2024
6264166
docs(dev): add more context around accounts and totp (#16255)
miketheman Jul 11, 2024
524bd23
Tell warehouse.db to reuse db_session pytest fixture (#16031)
benjaoming Jul 11, 2024
fe38096
docs/dev/application: document some more directories (#16259)
woodruffw Jul 11, 2024
5940bd9
Add support for uploading attestations in legacy API (#15952)
facutuesca Jul 11, 2024
0377af2
Simplify link underlining (#16267)
di Jul 11, 2024
4a63ffc
add a make task for generating dev totp creds (#16263)
ewdurbin Jul 12, 2024
2876c73
Fix some places where we shouldn't have underlines (#16275)
di Jul 12, 2024
c59d8bb
(admin): Account recovery tooling (#16266)
ewdurbin Jul 15, 2024
70d43c0
forklift/legacy: add a scope to fallthrough error (#16283)
woodruffw Jul 15, 2024
c5e7d0a
don't query for rendered release_descriptions in JSON api (#16273)
ewdurbin Jul 16, 2024
48594f2
warehouse: fix fingerprint assignments (#16284)
woodruffw Jul 16, 2024
9674138
Support support grab bag (#16290)
ewdurbin Jul 17, 2024
9e8b6b0
Update pypi-attestations to 0.0.9 (#16291)
facutuesca Jul 17, 2024
104fe4e
Dockerfile: Fix FROM ... AS casing (#16293)
twm Jul 17, 2024
f7b9944
Use latest version instead of first in list to display org project (#…
edgarrmondragon Jul 17, 2024
5c1d9c9
Combined PRs (#16301)
pypi-combine-prs[bot] Jul 18, 2024
2162522
Revert "Combined PRs (#16301)" (#16303)
ewdurbin Jul 18, 2024
6c1ffd1
Dockerfile: put some XDG dirs under /tmp (#16304)
woodruffw Jul 19, 2024
acd94b5
Dockerfile, tests: fix typo, add backstop (#16309)
woodruffw Jul 19, 2024
4bbdb32
tests/functional: assert R_OK/W_OK for XDG dirs (#16322)
woodruffw Jul 22, 2024
277911b
Combined PRs (#16337)
pypi-combine-prs[bot] Jul 25, 2024
c9dc901
Combined PRs (#16338)
pypi-combine-prs[bot] Jul 25, 2024
a1e0323
chore(deps): bump pyupgrade from 3.16.0 to 3.17.0 (#16349)
dependabot[bot] Jul 29, 2024
e0b6005
fix(admin): guard against rendering inspector link to non-existent pr…
miketheman Jul 29, 2024
a8b5fd1
feat: quarantine UI updates (#16264)
miketheman Jul 29, 2024
8aaedd6
Truncate long descriptions for the public metadata dataset (#16358)
di Jul 30, 2024
54fd100
Combined PRs (#16362)
pypi-combine-prs[bot] Jul 30, 2024
b28d08f
Makefile: optimize subset test runs (#16323)
woodruffw Jul 30, 2024
0518c3a
feat: implement quarantined projects restrictions (#16265)
miketheman Jul 31, 2024
11bdaa9
fix: add focus exclusion to textarea as well (#16372)
miketheman Jul 31, 2024
6e9123d
constants: remove MAX_SIGSIZE (#16373)
woodruffw Jul 31, 2024
7bb7049
feat(admin): show password disabled status (#16374)
miketheman Aug 1, 2024
54c1583
chore: enforce 2fa for legacy uploaders (#16365)
miketheman Aug 2, 2024
a1f916b
fix: retry hcaptcha on timeouts (#16377)
miketheman Aug 2, 2024
6ac9904
Disable fsync in test postgres (#16384)
twm Aug 5, 2024
4ca7e31
feat: add origin to API-submitted payloads (#16400)
miketheman Aug 6, 2024
655886c
chore: assorted nits (#16383)
miketheman Aug 6, 2024
d4606e0
Combined PRs (#16412)
pypi-combine-prs[bot] Aug 6, 2024
a2e7a8a
Translations update from Weblate (#16253)
weblate Aug 6, 2024
e79f6ad
Ignore disconnection errors (#16376)
di Aug 7, 2024
ae5e8aa
Clarify account recovery help to include verification issues (#16415)
di Aug 7, 2024
d386f5b
feat: append task name to SQS Message (#16413)
miketheman Aug 7, 2024
754886c
Remove vestigial 2FA admin flag (#16427)
di Aug 7, 2024
a395858
Bump sync_file_to_cache time_limit to 60s (#16428)
di Aug 7, 2024
a0a6509
chore: add tracing to worker (#16429)
miketheman Aug 7, 2024
a75c68c
chore(deps): bump pyjwt[crypto] from 2.8.0 to 2.9.0 (#16378)
dependabot[bot] Aug 7, 2024
d5c0db7
oidc/services: use PyJWK directly (#16430)
woodruffw Aug 7, 2024
f5d2bda
Replace doc8 with sphinx-lint (#16431)
miketheman Aug 8, 2024
1b09028
feat: add admin malware URL to helpscout message (#16432)
miketheman Aug 8, 2024
c37aa98
fix(admin): use correct route method (#16436)
miketheman Aug 8, 2024
bd29f06
Bump sync_file_to_cache time_limit to 120s (#16437)
di Aug 8, 2024
1ee8091
Add TOTP QR code to dev docs (#16438)
di Aug 9, 2024
fb1b567
Speed up `make tests` (#16295)
twm Aug 9, 2024
6eea442
docs(dev): add copy button for code blocks (#15746)
miketheman Aug 9, 2024
8a44d6d
fix(dev): restore default behavior of debugtoolbar (#16447)
miketheman Aug 9, 2024
34a24ce
feat: introduce Release.keywords_array (#13001)
miketheman Aug 9, 2024
87e863e
fix: don't try to unpack what's already a list (#16449)
miketheman Aug 9, 2024
94cd484
fix: use output from packaging.metadata parsed (#16450)
miketheman Aug 9, 2024
cc96064
Add metrics for GH Trusted Publishers with reusable workflows (#16364)
facutuesca Aug 9, 2024
c8171f0
Bump mypy and mypy-zope (#16458)
DarkaMaul Aug 12, 2024
4b8bb2d
Combined PRs (#16459)
pypi-combine-prs[bot] Aug 12, 2024
af9e88a
Trusted publishing: prevent OIDC credential re-use (#16254)
DarkaMaul Aug 12, 2024
20a9597
Remove sentry message on password token use after login (#16461)
di Aug 12, 2024
6d7511b
fix(admin): need to pass host for background tasks (#16463)
miketheman Aug 12, 2024
a34c271
fix(admin): disable account recovery if user frozen (#16464)
miketheman Aug 12, 2024
84e9d1b
Avoid n+1 queries on Release.description (#16448)
dstufft Aug 12, 2024
f09c95f
Verify release URLs using Trusted Publisher information (#16205)
facutuesca Aug 12, 2024
85feba0
Added missing JSON API reference information on metadata 2.2 and 2.3 …
samjove Aug 12, 2024
4fe6a65
Disallow trailing new line in `PROJECT_NAME_RE` (redux) (#16465)
di Aug 13, 2024
a971bd9
Support pre-filling Trusted Publisher form via URL params (#16399)
facutuesca Aug 13, 2024
647c42c
Remove the fallback to rendering descriptions inline (#16274)
di Aug 13, 2024
641487c
Move verified Release URLs to the Verified section (#16472)
facutuesca Aug 13, 2024
293a230
Move URLs to top of verified section (#16473)
facutuesca Aug 13, 2024
efe40f0
GitHub, GitLab: improve claim matching during lookup (#16462)
woodruffw Aug 13, 2024
855d5f2
Combined PRs (#16482)
pypi-combine-prs[bot] Aug 14, 2024
d6625ad
chore(deps): bump setuptools from 72.1.0 to 72.2.0 (#16480)
dependabot[bot] Aug 14, 2024
1185eef
Make ReleaseURL model consistent with DB (#16484)
facutuesca Aug 14, 2024
42a6ad1
feat(dev): alembic check (#16483)
miketheman Aug 15, 2024
b4b0424
Verify URLs that link to the project page on PyPI (#16485)
facutuesca Aug 15, 2024
b419f32
Include filename and hash in duplicate file error message (#16488)
di Aug 15, 2024
f9c0c8c
blog: year in review (#16498)
miketheman Aug 16, 2024
7541f85
Add CORS headers to HTTP exceptions (#16339)
ryanking13 Aug 19, 2024
965cc22
Combined PRs (#16511)
pypi-combine-prs[bot] Aug 19, 2024
c94a0aa
Translations update from Weblate (#16426)
weblate Aug 19, 2024
9b02147
Update services recognized in detail.html (#16512)
DarkaMaul Aug 19, 2024
28639bb
Add tests for the Google Trusted Publisher form (#16514)
facutuesca Aug 19, 2024
9d559e1
Verify github.io URLs with Trusted Publishing (#16499)
facutuesca Aug 19, 2024
d502d5e
Improve error messages when creating pending Trusted Publishers (#16515)
facutuesca Aug 19, 2024
16da5e0
Improve test collect time (#16523)
DarkaMaul Aug 20, 2024
bfe6dc7
Disable test coverage report / failure when passing an explicit test …
DarkaMaul Aug 20, 2024
ef3379b
Add missing translation for Trusted Publishing error (#16526)
facutuesca Aug 20, 2024
fe295ca
Verify URLs ending with .git for GitHub and GitLab (#16525)
facutuesca Aug 20, 2024
8a5ad08
lint: run mypy with correct Python 3.12 version (#16527)
miketheman Aug 20, 2024
9de75b8
Fix warning in tests for URL verification (#16528)
facutuesca Aug 20, 2024
aa13cca
Treat SA cartesian products as warnings under test (#16529)
twm Aug 20, 2024
a66646d
feat(admin): set primary email after recovery complete (#16516)
miketheman Aug 20, 2024
c1dffa9
Documentation on Project-Urls (#16513)
DarkaMaul Aug 20, 2024
bc45671
Adopt a linter for pytest style & fix linting issues (#16530)
di Aug 21, 2024
6ab6250
Fix error when trying to verify Google TP URLs (#16538)
facutuesca Aug 21, 2024
24fca7f
Verified GitHub stats (#16532)
di Aug 21, 2024
98b4b84
Fix missing unverified URLs (#16531)
facutuesca Aug 21, 2024
e13f5be
Add publisher_url to the github_reusable_workflow metric. (#16497)
DarkaMaul Aug 21, 2024
54fda81
docs: Add more details on how URLs are verified (#16539)
facutuesca Aug 21, 2024
5545884
Store attestations for PEP740 (#16302)
DarkaMaul Aug 21, 2024
5a39e80
register IntegrityService correctly (#16543)
woodruffw Aug 21, 2024
da7e1ed
Revert "Store attestations for PEP740 (#16302)" (#16545)
di Aug 21, 2024
1e0b30a
test: basic functional tests for simple API (#16547)
miketheman Aug 21, 2024
38b3f3f
Combined PRs (#16554)
pypi-combine-prs[bot] Aug 22, 2024
ca2781e
fix: also remove normalized docs (#16555)
miketheman Aug 22, 2024
e8195e4
Add some releases to the Simple API functional test (#16556)
di Aug 22, 2024
e784619
Combined PRs (#16570)
pypi-combine-prs[bot] Aug 26, 2024
c9f1f3b
Remove Depot registry pull token auth (#16575)
jacobwgillespie Aug 27, 2024
0d4245d
docs: Clarify URL verification time validity (#16576)
facutuesca Aug 27, 2024
b3f8a92
feat: create helpdesk service interface (#16571)
miketheman Aug 27, 2024
7f35592
test: compare output by ids instead of object (#16577)
miketheman Aug 27, 2024
52ad957
docs: link to docs in Verified Details section (#16578)
facutuesca Aug 27, 2024
70d6f8d
Update icons reference in doc metadata docs (#16584)
DarkaMaul Aug 28, 2024
05eebe9
fix: account for second-level domain names (#16586)
miketheman Aug 29, 2024
be8e7fb
Combined PRs (#16594)
pypi-combine-prs[bot] Aug 29, 2024
1e0357d
Verify `Home-Page` and `Download-URL` metadata URLs (#16568)
facutuesca Aug 29, 2024
ccff649
Move URL verification logic into its own file (#16592)
facutuesca Aug 29, 2024
3f21aa3
Add a functional test for file uploads (#16598)
di Aug 29, 2024
18cfed5
Combined PRs (#16607)
pypi-combine-prs[bot] Aug 30, 2024
a2effd7
add a new Procfile entry for web-api (#16608)
ewdurbin Aug 30, 2024
6ce90e9
Add deletion FAQ to help page. (#16609)
di Aug 30, 2024
d1c1161
Reapply "Store attestations for PEP740 (#16302)" (#16545) (#16546)
woodruffw Sep 3, 2024
16b49a1
services: don't send a Path where a str is expected (#16622)
woodruffw Sep 3, 2024
b6cf775
Revert PEP 740 persistence (#16623)
woodruffw Sep 3, 2024
7c4f2ff
feat(dev): enable session panel in debug toolbar (#16630)
miketheman Sep 4, 2024
5add108
Remove dep on types-boto3 (#16633)
DarkaMaul Sep 5, 2024
3c2496e
Document upcoming XMLRPC deprecations (#16641)
ewdurbin Sep 5, 2024
d2c36d9
docs: typos (#16644)
ewdurbin Sep 5, 2024
465079f
Update tests to use sysmon (#16621)
DarkaMaul Sep 5, 2024
edec519
test: ensure links are created per-file (#16646)
miketheman Sep 6, 2024
f6cfcb2
Combined PRs (#16651)
pypi-combine-prs[bot] Sep 6, 2024
d619efe
Translations update from Hosted Weblate (#16518)
weblate Sep 6, 2024
4eb7661
remove documented but non-existent endpoints (#16652)
ewdurbin Sep 6, 2024
ad5763d
refactor: extract validator from form class (#16599)
miketheman Sep 6, 2024
26db37d
fix: disallow urls in `full_name` during registration (#16663)
miketheman Sep 9, 2024
2d515e6
Combined PRs (#16673)
pypi-combine-prs[bot] Sep 10, 2024
5292182
feat(admin): load recent journal entries for user (#16674)
miketheman Sep 10, 2024
9d93f86
feat(admin): make copying the input value simpler (#16675)
miketheman Sep 11, 2024
15524b3
Combined PRs (#16681)
pypi-combine-prs[bot] Sep 11, 2024
8947dd8
chore: remove obsolete csp header (#16664)
miketheman Sep 11, 2024
cc0b96d
warehouse: PEP 740 models (#16625)
woodruffw Sep 11, 2024
33049d1
use sentry_sdk.new_scope (#16682)
woodruffw Sep 11, 2024
7bd9b13
Add verification date to Verified Details section (#16585)
facutuesca Sep 11, 2024
ff3e5d4
requirements: bump sigstore, pypi-attestations (#16683)
woodruffw Sep 11, 2024
1a5b9b1
Ignore worker kill exceptions (#16686)
di Sep 11, 2024
740c072
fix: delete org apps for user (#16685)
miketheman Sep 11, 2024
ee9abaf
Combined PRs (#16695)
pypi-combine-prs[bot] Sep 12, 2024
8099a59
revert kombu upgrade from #16695 (#16696)
ewdurbin Sep 12, 2024
3c8a4b8
feat: check MX records against prohibited domains (#16596)
miketheman Sep 12, 2024
f603a93
Configuration of discrete Redis databases (#16697)
ewdurbin Sep 12, 2024
6b5f6bf
chore(deps): upgrade cryptography to latest (#16699)
miketheman Sep 12, 2024
55ccaf7
chore: update Python 3.12.6 (#16700)
miketheman Sep 13, 2024
80144c2
PEP 740: add IntegrityService and interface (#16684)
woodruffw Sep 13, 2024
738267a
Add a new flag to disable PEP 740 support. (#16645)
DarkaMaul Sep 13, 2024
8353b39
chore(deps): bump msgpack-types from 0.3.0 to 0.4.0 (#16718)
dependabot[bot] Sep 16, 2024
a8f3141
feat(admin): prohibited usernames list (#16710)
miketheman Sep 16, 2024
17103e0
Verify emails in release metadata using PyPI user information (#16631)
facutuesca Sep 16, 2024
6eb044f
Add timeouts to migration (#16721)
di Sep 16, 2024
ffebdad
Try Mike's Magic Migration Method (#16722)
di Sep 16, 2024
2743811
refactor: replace integers with durations in seconds (#16562)
miketheman Sep 16, 2024
d9bf24e
Refactor `_is_valid_dist_file` (#16703)
di Sep 16, 2024
0682057
fix: ensure the input to redis sessions is an integer (#16723)
miketheman Sep 16, 2024
5a4d2ca
Revert changes related to integer maths (#16726)
miketheman Sep 16, 2024
e900d74
chore(deps): bump the psycopg group with 3 updates (#16713)
dependabot[bot] Sep 17, 2024
98174db
packaging: add initial hints to storage services (#16709)
woodruffw Sep 17, 2024
d3c4d7f
Translations update from Weblate (#16653)
weblate Sep 17, 2024
35c0f16
Combined PRs (#16731)
pypi-combine-prs[bot] Sep 17, 2024
a36ae29
test(functional): log in, change password (#16724)
miketheman Sep 17, 2024
001165f
feat: capture metrics during email validation (#16739)
miketheman Sep 18, 2024
a908ffd
Prevent duplicate `POST` keys in requests (#16732)
di Sep 18, 2024
5574f8a
Ensure formdata gets a multidict (#16741)
di Sep 18, 2024
f3dcfcc
Add new HCaptcha error codes (#16742)
di Sep 18, 2024
888e1b6
Documentation on how to implement a new service (#16595)
DarkaMaul Sep 18, 2024
73165b8
Fix project detail sidebar issues. (#16746)
di Sep 18, 2024
c979275
oidc: add missing claims check in publisher lookup (#16698)
facutuesca Sep 18, 2024
453244f
More fixes for project details sidebar (#16754)
di Sep 19, 2024
d3ed6e0
Implement Alternate Repository Location for PEP 708 (#15716)
cofiem Sep 19, 2024
dcadf7a
Debug issues with duplicate POST keys (#16755)
di Sep 19, 2024
0a0b7e0
Don't wrap exception views (#16759)
di Sep 19, 2024
bdb71dc
requirements: bump pypi-attestations to 0.0.12 (#16757)
woodruffw Sep 19, 2024
dccf3ee
Initial implementation of GitLab statistics (#15931)
nE0sIghT Sep 19, 2024
f2150d1
Only count unapproved pending organization applications (#16760)
di Sep 19, 2024
362f6b7
feat(admin): add prohibited email domains (#16747)
miketheman Sep 20, 2024
30846f6
feat: add notes to registration page (#16765)
miketheman Sep 20, 2024
5e05c1e
Combined PRs (#16776)
pypi-combine-prs[bot] Sep 23, 2024
0d7cb20
test_simple: fix accidentally skipped test (#16777)
woodruffw Sep 23, 2024
0a0a403
Make migration to redis as a broker possible. (#16744)
ewdurbin Sep 24, 2024
2c337ea
Revert "Make migration to redis as a broker possible. (#16744)" (#16783)
ewdurbin Sep 24, 2024
85bb371
Make migration to redis as a broker possible. (#16784)
ewdurbin Sep 24, 2024
30bca25
fix: place user reset after new email logic (#16786)
miketheman Sep 24, 2024
e3bd3c3
Combined PRs (#16790)
pypi-combine-prs[bot] Sep 25, 2024
684ff39
finalize deprecation of xmlrpc list_packages, package_releases, relea…
ewdurbin Sep 26, 2024
1b33b28
Remove invalid PEP 708 JournalEntry (#16797)
di Sep 27, 2024
bed12d9
Combined PRs (#16811)
pypi-combine-prs[bot] Sep 30, 2024
126ac91
implement some basic guards on our /search endpoint (#16812)
ewdurbin Sep 30, 2024
a0571da
chore(deps): update hiredis manually (#16818)
miketheman Oct 1, 2024
658f7a2
chore(deps): bump uplot from 1.6.30 to 1.6.31 in the npm_and_yarn gro…
dependabot[bot] Oct 1, 2024
dc5b0e4
conftest: put transaction manager in its own fixture (#16796)
woodruffw Oct 2, 2024
2706bfb
Combined PRs (#16830)
pypi-combine-prs[bot] Oct 3, 2024
50a58f3
Provenance retrieval route (#16778)
woodruffw Oct 3, 2024
da7b53d
docs/dev: add destructive migration docs (#16831)
woodruffw Oct 3, 2024
9b82274
update link to new privacy notice (#16835)
ewdurbin Oct 4, 2024
b365b53
Combined PRs (#16845)
pypi-combine-prs[bot] Oct 7, 2024
caa4526
chore(deps): bump cookie from 0.5.0 to 0.7.0 in the npm_and_yarn grou…
dependabot[bot] Oct 7, 2024
eff39c8
Combined PRs (#16859)
pypi-combine-prs[bot] Oct 9, 2024
7194600
feat: follow mx records back to pointers (#16814)
miketheman Oct 10, 2024
10570d1
Combined PRs (#16870)
pypi-combine-prs[bot] Oct 10, 2024
cafec72
Combined PRs (#16892)
pypi-combine-prs[bot] Oct 15, 2024
e7762bb
fix: suppress more DNS errors (#16893)
miketheman Oct 16, 2024
17f7255
allow uploads of wheels targeting macosx 15 (#16877)
LeoHsiao1 Oct 16, 2024
6f1a2fb
Combined PRs (#16904)
pypi-combine-prs[bot] Oct 16, 2024
694286e
Update to Ubuntu 24.04 for readthedocs (#16891)
radarhere Oct 16, 2024
d36b981
Combined PRs (#16917)
pypi-combine-prs[bot] Oct 18, 2024
f978eec
chore(deps): manually update dependabot-failing (#16919)
miketheman Oct 18, 2024
c29d254
chore(deps): bump types-setuptools (#16925)
dependabot[bot] Oct 21, 2024
6587ace
chore(deps): bump cryptography from 43.0.1 to 43.0.3 (#16930)
dependabot[bot] Oct 21, 2024
08aedde
test/oidc: rename TestPublisher, mark as abstract (#16921)
woodruffw Oct 21, 2024
e04b7bb
PEP 740: add provenance to simple API (#16801)
woodruffw Oct 21, 2024
5369a5a
feat: add tags to conversations on removal (#16933)
miketheman Oct 21, 2024
102f1fa
attestations: provenance added metric (#16934)
woodruffw Oct 22, 2024
d1c002e
detail: fix spacing (#16947)
woodruffw Oct 22, 2024
7405bda
oidc: move reusable_worfklow_used field to the correct event (#16935)
woodruffw Oct 22, 2024
be5f770
Guard our BigQuery release metadata sync against upcoming schema chan…
ewdurbin Oct 23, 2024
41b9c91
fix: retry token on error (#16957)
miketheman Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 0 additions & 30 deletions .coveragerc

This file was deleted.

1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dev/*
**/*.pyc
htmlcov
warehouse/static/dist
.venv
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ insert_final_newline = true

[*.py]
indent_size = 4
# handled by black config
max_line_length = off

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
16 changes: 14 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,26 @@ updates:
- dependency-type: indirect
rebase-strategy: "disabled"
ignore:
# Always ignore elasticsearch, future versions are always incompatible with our provider
- dependency-name: "elasticsearch"
# These update basically every day, and 99.9% of the time we don't care
- dependency-name: "boto3"
- dependency-name: "boto3-stubs"
- dependency-name: "botocore"
- dependency-name: "botocore-stubs"
groups:
celery:
# Keep both celery and kombu together
patterns:
- "celery"
- "kombu"
psycopg:
# Keep both psycopg and psycopg-c together
patterns:
- "psycopg*"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: docker
directory: "/"
schedule:
interval: "daily"
117 changes: 84 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,71 +6,122 @@ on:
pull_request:
merge_group:
types: [checks_requested]
workflow_dispatch: # generally only for the "combine-prs" workflow
permissions:
id-token: write
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
if: github.repository == 'pypi/warehouse'
runs-on: depot-ubuntu-22.04-arm
outputs:
buildId: ${{ steps.build.outputs.build-id}}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Depot CLI
uses: depot/setup-action@v1
- name: Build image
id: build
uses: depot/build-push-action@v1
with:
save: true
build-args: |
DEVEL=yes
CI=yes
tags: pypi/warehouse:ci-${{ github.run_id }}
test:
# Time out if our test suite has gotten hung
timeout-minutes: 15
needs: build
strategy:
matrix:
include:
- name: Tests
command: bin/tests --postgresql-host localhost
command: bin/tests --postgresql-host postgres
- name: Lint
command: bin/lint
- name: Documentation
command: bin/docs
- name: User Documentation
command: bin/user-docs
- name: Developer Documentation
command: bin/dev-docs
- name: Dependencies
command: bin/github-actions-deps
command: bin/deps
- name: Licenses
command: bin/licenses
- name: Translations
command: bin/translations
runs-on: ubuntu-latest
runs-on: depot-ubuntu-22.04-arm
container:
image: registry.depot.dev/rltf7cln5v:${{ needs.build.outputs.buildId }}
env:
BILLING_BACKEND: warehouse.subscriptions.services.MockStripeBillingService api_base=http://stripe:12111 api_version=2020-08-27
services:
postgres:
image: postgres:14.4
image: ${{ (matrix.name == 'Tests') && 'postgres:16.1' || '' }}
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust # never do this in production!
POSTGRES_INITDB_ARGS: '--no-sync --set fsync=off --set full_page_writes=off'
# Set health checks to wait until postgres has started
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
options: --health-cmd "pg_isready --username=postgres --dbname=postgres" --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: ${{ (matrix.name == 'Tests') && 'redis:7.0' || '' }}
ports:
- 6379:6379
stripe:
image: stripe/stripe-mock:v0.140.0
image: ${{ (matrix.name == 'Tests') && 'stripe/stripe-mock:v0.162.0' || '' }}
ports:
- 12111:12111
name: ${{ matrix.name }}
env:
BILLING_BACKEND: warehouse.subscriptions.services.MockStripeBillingService api_base=http://localhost:12111 api_version=2020-08-27
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install platform dependencies
run: |
sudo apt -y update
sudo apt -y install libcurl4-openssl-dev libssl-dev pkg-config
- uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: |
requirements.txt
requirements/*.txt
- name: Cache common Python cache paths
uses: actions/cache@v3
uses: actions/checkout@v4
- name: Cache mypy results
if: ${{ (matrix.name == 'Lint') }}
uses: actions/cache@v4
with:
path: |
.cache
.mypy_cache
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt', 'requirements/lint.txt') }}
- name: Install Python dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt --no-deps
pip install -r requirements/dev.txt
pip check
dev/.mypy_cache
key: ${{ runner.os }}-mypy-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt', 'requirements/*.txt') }}
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}

check_db:
name: Check Database Consistency
needs: build
runs-on: depot-ubuntu-22.04-arm
continue-on-error: true
container:
image: registry.depot.dev/rltf7cln5v:${{ needs.build.outputs.buildId }}
services:
postgres:
image: postgres:16.1
ports:
- 5432:5432
env:
POSTGRES_DB: warehouse
POSTGRES_HOST_AUTH_METHOD: trust # never do this in production!
POSTGRES_INITDB_ARGS: '--no-sync --set fsync=off --set full_page_writes=off'
# Set health checks to wait until postgres has started
options: --health-cmd "pg_isready --username=postgres --dbname=postgres" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Dotenv Action
# We need to load the environment variables to run the CLI
id: dotenv
uses: falti/dotenv-action@v1
with:
path: dev/environment
export-variables: true
keys-case: upper
- name: Check Database
run: bin/db-check
env:
# override the hostname set in `dev/environment`
DATABASE_URL: 'postgresql+psycopg://postgres@postgres/warehouse'
28 changes: 19 additions & 9 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,49 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3

uses: actions/checkout@v4

- name: Set up Python
if: matrix.language == 'python'
uses: actions/setup-python@v5
with:
python-version-file: '.python-version'

- name: Install dependencies
# Needed for pycurl
run: sudo apt install libcurl4-openssl-dev libssl-dev
run: |
sudo apt-get update
sudo apt install libcurl4-openssl-dev libssl-dev

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
Loading