Skip to content

Commit ab214e4

Browse files
committed
Merge remote-tracking branch 'origin/main' into requests-inline-types
2 parents 149e57a + 5d6af09 commit ab214e4

7 files changed

Lines changed: 18 additions & 10 deletions

File tree

.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@5337cb91e0fa35a7ff31b9ca345126d8bbbcdf16 # v2.0.6
23+
- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
2424

2525
- name: Install dependencies
2626
run: |

mypy-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
aiohttp==3.14.3
22
alive_progress>=3.3.0
3-
mypy==2.3.0
3+
mypy==2.3.1
44
pyfakefs
55
pytest
66
pytest-mock
77
python-gnupg # untyped :(
88
requests>=2.34
9-
sigstore==4.4.0
9+
sigstore==4.5.0
1010
types-paramiko

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ python-gnupg
66
aiohttp
77
blurb>=1.2.1
88
requests>=2.34
9-
sigstore>=4.4.0
9+
sigstore>=4.5.0

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,8 @@ rich==13.9.4 \
925925
securesystemslib==1.2.0 \
926926
--hash=sha256:fa63abcb1cf4dba4f2df964f623baa45bc39029980d7a0a2119d90731942afc6
927927
# via tuf
928-
sigstore==4.4.0 \
929-
--hash=sha256:80c36d08b02479e2a282d0bea93de68fe0d43a93b0d58e4d9ac6bb9f8425957c
928+
sigstore==4.5.0 \
929+
--hash=sha256:f045b207f2e12605cf775ec38e89c5eda625d71ffa7830477db65e47ec2bc8b2
930930
# via -r requirements.in
931931
sigstore-models==0.0.6 \
932932
--hash=sha256:5201a68f4d7d0f8bec1e2f4378eb646b084c52609a4e31db8c385095fff68b2e

run_release.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,12 +1090,18 @@ def run_add_to_python_dot_org(db: ReleaseShelf) -> None:
10901090
stdin, stdout, stderr = client.exec_command(
10911091
f"AUTH_INFO={auth_info} SIGSTORE_IDENTITY_TOKEN={identity_token} python3 add_to_pydotorg.py {db['release']}"
10921092
)
1093-
stderr_text = stderr.read().decode()
1094-
if stderr_text:
1095-
raise paramiko.SSHException(f"Failed to execute the command: {stderr_text}")
10961093
stdout_text = stdout.read().decode()
1094+
stderr_text = stderr.read().decode()
1095+
exit_status = stdout.channel.recv_exit_status()
1096+
if exit_status != 0:
1097+
raise paramiko.SSHException(
1098+
f"Failed to execute the command (exit code {exit_status}): {stderr_text}"
1099+
)
10971100
print("-- Command output --")
10981101
print(stdout_text)
1102+
if stderr_text:
1103+
print("-- Command stderr --")
1104+
print(stderr_text)
10991105
print("-- End of command output --")
11001106

11011107

tests/test_update_version_next.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
1919
.. deprecated-removed:: next 4.0
2020
21+
.. soft-deprecated:: next
22+
2123
whitespace:
2224
2325
.. versionchanged:: next

update_version_next.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
r"""
2222
(?P<before>
2323
\s*\.\.\s+
24-
(version(added|changed|removed)|deprecated(-removed)?)
24+
(version(added|changed|removed)|deprecated(-removed)?|soft-deprecated)
2525
\s*::\s*
2626
)
2727
next

0 commit comments

Comments
 (0)