Skip to content

Commit 54b2d36

Browse files
committed
Merge branch 'main' into patch-1
# Conflicts: # source/guides/packaging-namespace-packages.rst
2 parents a0c8b87 + 41f7052 commit 54b2d36

73 files changed

Lines changed: 959 additions & 1405 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/test-translations.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6464
with:
6565
python-version: >-
66-
3.10
66+
3.14
6767
6868
- name: Install Python tooling
6969
run: python -m pip install --upgrade nox virtualenv sphinx-lint

‎.github/workflows/test.yml‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,21 @@ jobs:
2424
name: ${{ matrix.noxenv }}
2525
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
2626
runs-on: ubuntu-latest
27+
timeout-minutes: 20
28+
continue-on-error: >-
29+
${{ fromJSON(matrix.continue-on-error) }}
2730
strategy:
2831
matrix:
2932
noxenv:
3033
- build
31-
- linkcheck
34+
continue-on-error:
35+
- false
36+
include:
37+
- noxenv: linkcheck
38+
# Don't block PRs, merge groups, or non-main pushes on unrelated linkcheck failures.
39+
continue-on-error: >-
40+
${{ toJSON(contains(fromJSON('["merge_group", "pull_request"]'), github.event_name) ||
41+
(github.event_name == 'push' && github.ref_name != github.event.repository.default_branch)) }}
3242
3343
steps:
3444
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -38,7 +48,7 @@ jobs:
3848
- name: Set up Python
3949
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4050
with:
41-
python-version: "3.11"
51+
python-version: "3.14"
4252
cache: 'pip'
4353
cache-dependency-path: 'requirements.txt'
4454

@@ -47,6 +57,9 @@ jobs:
4757
python -m pip install --upgrade nox virtualenv
4858
4959
- name: Nox ${{ matrix.noxenv }}
60+
env:
61+
# Authenticate github.com requests during linkcheck to avoid rate limits.
62+
GITHUB_TOKEN: ${{ matrix.noxenv == 'linkcheck' && github.token || '' }}
5063
run: |
5164
python -m nox -s ${{ matrix.noxenv }}
5265

‎.github/workflows/translation.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6161
with:
6262
python-version: >-
63-
3.10
63+
3.14
6464
6565
- name: Install Python tooling
6666
run: python -m pip install --upgrade nox virtualenv

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ build/
55
__pycache__
66
.DS_Store
77
/locales/
8+
9+
# pixi environments
10+
.pixi/*
11+
!.pixi/config.toml

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: trailing-whitespace
1616

1717
- repo: https://github.com/codespell-project/codespell
18-
rev: v2.4.1
18+
rev: v2.4.3
1919
hooks:
2020
- id: codespell
2121
args: ["-L", "ned,ist,oder", "--skip", "*.po"]
@@ -37,7 +37,7 @@ repos:
3737
- id: rst-inline-touching-normal
3838

3939
- repo: https://github.com/astral-sh/ruff-pre-commit
40-
rev: v0.14.10
40+
rev: v0.16.10
4141
hooks:
42-
- id: ruff
42+
- id: ruff-check
4343
- id: ruff-format

‎.readthedocs.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ sphinx:
1010
builder: dirhtml
1111

1212
build:
13-
os: ubuntu-22.04
13+
os: ubuntu-24.04
1414
tools:
15-
python: "3.11"
15+
python: "3.14"
1616

1717
python:
1818
install:

‎extra/specifications/schemas/direct-url.schema.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"type": "string",
99
"format": "uri"
1010
},
11+
"subdirectory": {
12+
"type": "string"
13+
},
1114
"DirInfo": {
1215
"type": "object",
1316
"properties": {
@@ -60,6 +63,9 @@
6063
"properties": {
6164
"url": {
6265
"$ref": "#/definitions/url"
66+
},
67+
"subdirectory": {
68+
"$ref": "#/definitions/subdirectory"
6369
}
6470
},
6571
"required": ["url"]

‎pug_sphinx_extensions/__init__.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import sphinx.application
66
import sphinx.util.logging
77

8-
98
DOMAIN = "packaging.python.org"
109

1110

‎requirements.txt‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
furo==2024.8.6
2-
sphinx==7.2.6
3-
sphinx-autobuild==2021.3.14
4-
sphinx-inline-tabs==2023.4.21
1+
furo==2025.12.19
2+
sphinx==9.2.0
3+
sphinx-autobuild==2025.8.25
4+
sphinx-inline-tabs==2025.12.21.14
55
sphinx-copybutton==0.5.2
6-
sphinx-toolbox==3.5.0
7-
sphinx-jsonschema==1.19.1
6+
sphinx-toolbox==4.3.1
7+
sphinx-jsonschema==1.20.1
8+
sphinx-notfound-page==1.1.0
9+
sphinx-reredirects==1.1.0

‎scripts/update_uv_build_version.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import httpx
1313
from packaging.utils import parse_wheel_filename
14-
from packaging.version import Version
1514

1615

1716
def main():
@@ -34,13 +33,14 @@ def main():
3433
[major, minor, _patch] = current_release.release
3534
if major != 0:
3635
raise NotImplementedError("The script needs to be updated for uv 1.x")
37-
upper_bound = Version(f"{major}.{minor + 1}.0")
36+
lower_bound = f"{major}.{minor}"
37+
upper_bound = f"{major}.{minor + 1}"
3838

3939
repository_root = Path(__file__).parent.parent
4040
existing = repository_root.joinpath(
4141
"source/shared/build-backend-tabs.rst"
4242
).read_text()
43-
replacement = f'requires = ["uv_build >= {current_release}, <{upper_bound}"]'
43+
replacement = f'requires = ["uv_build >= {lower_bound}, <{upper_bound}"]'
4444
searcher = re.compile(re.escape('requires = ["uv_build') + ".*" + re.escape('"]'))
4545
if not searcher.search(existing):
4646
raise RuntimeError("Could not `uv-build` entry")
@@ -51,7 +51,7 @@ def main():
5151
Path("source/shared/build-backend-tabs.rst").write_text(updated)
5252
if github_output := os.environ.get("GITHUB_OUTPUT"):
5353
with open(github_output, "a") as f:
54-
f.write(f"version={current_release}\n")
54+
f.write(f"version={lower_bound}\n")
5555
f.write("updated=true\n")
5656
else:
5757
print("Already up-to-date source/shared/build-backend-tabs.rst")

0 commit comments

Comments
 (0)