Skip to content

Commit 5348946

Browse files
authored
Merge branch 'main' into signing-certificate-force-source-commit
2 parents 2573599 + b8a8924 commit 5348946

19 files changed

Lines changed: 245 additions & 158 deletions

‎.github/workflows/build-release.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
python ../release.py --export "$CPYTHON_RELEASE" --skip-docs
148148
149149
- name: "Upload the source artifacts"
150-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
150+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
151151
with:
152152
name: source
153153
path: |
@@ -187,7 +187,7 @@ jobs:
187187
make dist-text
188188
189189
- name: "Upload the docs artifacts"
190-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
190+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
191191
with:
192192
name: docs
193193
path: |
@@ -296,7 +296,7 @@ jobs:
296296
- name: Build and test
297297
run: python3 Platforms/Android ci --fast-ci "$triplet"
298298

299-
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
299+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
300300
with:
301301
name: ${{ env.triplet }}
302302
path: cross-build/${{ env.triplet }}/dist/*
@@ -320,7 +320,8 @@ jobs:
320320
- name: Build and test
321321
run: python3 Platforms/Apple ci iOS --slow-ci
322322

323-
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
323+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
324324
with:
325+
name: ios
325326
path: cross-build/dist/*
326327
if-no-files-found: error

‎.github/workflows/lint.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
python-version: "3.x"
2222
cache: pip
23-
- uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
23+
- uses: j178/prek-action@cbc2f23eb5539cf20d82d1aabd0d0ecbcc56f4e3 # v2.0.2
2424

2525
- name: Install dependencies
2626
run: |

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
tox -e py
3232
3333
- name: Upload coverage
34-
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
34+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
3535
with:
3636
token: ${{ secrets.CODECOV_ORG_TOKEN }}

‎add_to_pydotorg.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import subprocess
3131
import sys
3232
from collections.abc import Generator
33+
from functools import cache
3334
from os import path
3435
from typing import Any, NoReturn
3536

@@ -293,6 +294,7 @@ def list_files(
293294
continue
294295

295296

297+
@cache
296298
def query_object(base_url: str, objtype: str, **params: Any) -> int:
297299
"""Find an API object by query parameters."""
298300
uri = base_url + f"downloads/{objtype}/"
@@ -366,9 +368,9 @@ def has_sigstore_signature(filename: str) -> bool:
366368
]
367369
)
368370

369-
run_cmd(["chmod", "644", sig_file])
370-
run_cmd(["chmod", "644", cert_file])
371-
run_cmd(["chmod", "644", bundle_file])
371+
os.chmod(sig_file, 0o644)
372+
os.chmod(cert_file, 0o644)
373+
os.chmod(bundle_file, 0o644)
372374
else:
373375
print("All release files already signed with Sigstore")
374376

‎dev-requirements.txt‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ frozenlist==1.5.0 \
340340
# via
341341
# aiohttp
342342
# aiosignal
343-
idna==3.10 \
344-
--hash=sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9 \
345-
--hash=sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3
343+
idna==3.15 \
344+
--hash=sha256:048adeaf8c2d788c40fee287673ccaa74c24ffd8dcf09ffa555a2fbb59f10ac8 \
345+
--hash=sha256:ca962446ea538f7092a95e057da437618e886f4d349216d2b1e294abfdb65fdc
346346
# via yarl
347347
iniconfig==2.0.0 \
348348
--hash=sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3 \
@@ -540,9 +540,9 @@ propcache==0.2.1 \
540540
# via
541541
# aiohttp
542542
# yarl
543-
pyfakefs==6.1.6 \
544-
--hash=sha256:28e620e117b9728d7f8ebb50f9537da6ab36ef9c0bebc12469aaba3c72759ff7 \
545-
--hash=sha256:dcdfc09b13f3fd464142e20ef6154639bd26fb0890572c5dd869339a083e2903
543+
pyfakefs==6.2.0 \
544+
--hash=sha256:0968a49db692694ffed420e54a9f1cbae4636637b880e8ab09c8ccc0f11bd7ae \
545+
--hash=sha256:e59a36db447bf509ce9c97ab3d1510c08cc51895c5311325a560a5e5b5dc1940
546546
# via -r dev-requirements.in
547547
pygments==2.20.0 \
548548
--hash=sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f \

‎mypy-requirements.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
aiohttp==3.13.4
1+
aiohttp==3.13.5
22
alive_progress>=3.3.0
3-
mypy==1.19.1
3+
mypy==1.20.2
44
pyfakefs
55
pytest
66
pytest-mock

‎release.py‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ def normalized(self) -> str:
193193

194194
@property
195195
def branch(self) -> str:
196-
return "main" if self.is_alpha_release else f"{self.major}.{self.minor}"
196+
if self.is_alpha_release or self.is_feature_freeze_release:
197+
return "main"
198+
return f"{self.major}.{self.minor}"
197199

198200
@property
199201
def is_alpha_release(self) -> bool:
@@ -553,11 +555,18 @@ def bump(tag: Tag) -> None:
553555
"Doc/tutorial/interpreter.rst",
554556
"Doc/tutorial/stdlib.rst",
555557
"Doc/tutorial/stdlib2.rst",
556-
"PC/pyconfig.h.in",
557-
"PCbuild/rt.bat",
558+
"Include/internal/pycore_magic_number.h",
559+
"PC/launcher.c",
560+
"PC/pyconfig.h",
558561
".github/ISSUE_TEMPLATE/bug.yml",
559562
".github/ISSUE_TEMPLATE/crash.yml",
560563
]
564+
565+
if extra_work:
566+
print(
567+
"\n*** configure.ac will be edited; you must re-run autotools afterwards! ***"
568+
)
569+
561570
print("\nManual editing time...")
562571
for filename in other_files:
563572
if os.path.exists(filename):
@@ -568,7 +577,12 @@ def bump(tag: Tag) -> None:
568577

569578
print("Bumped revision")
570579
if extra_work:
571-
print("configure.ac has changed; re-run autotools!")
580+
if ask_question(
581+
"configure.ac has changed; run 'Tools/build/regen-configure.sh'?"
582+
):
583+
run_cmd(["Tools/build/regen-configure.sh"])
584+
else:
585+
print("configure.ac has changed; re-run autotools!")
572586
print("Please commit and use --tag")
573587

574588

‎requirements.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ hyperframe==6.1.0 \
533533
id==1.5.0 \
534534
--hash=sha256:f1434e1cef91f2cbb8a4ec64663d5a23b9ed43ef44c4c957d02583d61714c658
535535
# via sigstore
536-
idna==3.10 \
537-
--hash=sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3
536+
idna==3.15 \
537+
--hash=sha256:048adeaf8c2d788c40fee287673ccaa74c24ffd8dcf09ffa555a2fbb59f10ac8
538538
# via
539539
# email-validator
540540
# requests
@@ -969,8 +969,8 @@ typing-extensions==4.15.0 \
969969
typing-inspection==0.4.2 \
970970
--hash=sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7
971971
# via pydantic
972-
urllib3==2.6.3 \
973-
--hash=sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4
972+
urllib3==2.7.0 \
973+
--hash=sha256:9fb4c81ebbb1ce9531cce37674bbc6f1360472bc18ca9a553ede278ef7276897
974974
# via
975975
# requests
976976
# tuf

0 commit comments

Comments
 (0)