Skip to content

Commit ae462e0

Browse files
authored
Merge branch 'main' into windows_apps
2 parents f196cea + fcaaf74 commit ae462e0

106 files changed

Lines changed: 4965 additions & 3165 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/CODEOWNERS‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
source/guides/github-actions-ci-cd-sample/* @webknjaz
22
source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst @webknjaz
3+
4+
# Sphinx extension
5+
pug_sphinx_extensions/ @FFY00
6+
7+
# build-details.json
8+
source/specifications/build-details/ @FFY00
9+
source/specifications/specs/build-details-*.json @FFY00

‎.github/CONTRIBUTING.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributing
2+
3+
Please see the [contributing guide](https://packaging.python.org/en/latest/contribute/)
4+
for how to contribute to the Python Packaging User Guide, including our writing
5+
style, translation instructions, and how to build the guide locally.

‎.github/workflows/pr-preview-links.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
documentation-links:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: readthedocs/actions/preview@v1
20+
- uses: readthedocs/actions/preview@b8bba1484329bda1a3abe986df7ebc80a8950333 # v1.5
2121
with:
2222
project-slug: "python-packaging-user-guide"

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

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131

3232
steps:
3333
- name: Grab the repo src
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3535
with:
3636
ref: ${{ env.I18N_BRANCH }}
37+
persist-credentials: false
3738

3839
- name: List languages
3940
id: languages
@@ -53,29 +54,34 @@ jobs:
5354

5455
steps:
5556
- name: Grab the repo src
56-
uses: actions/checkout@v4
57+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5758
with:
5859
ref: ${{ env.I18N_BRANCH }}
60+
persist-credentials: false
5961

6062
- name: Set up Python
61-
uses: actions/setup-python@v5
63+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6264
with:
6365
python-version: >-
64-
3.10
66+
3.14
6567
6668
- name: Install Python tooling
6769
run: python -m pip install --upgrade nox virtualenv sphinx-lint
6870

6971
- name: Set Sphinx problem matcher
70-
uses: sphinx-doc/github-problem-matcher@v1.0
72+
uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1
7173

7274
- name: Build translated docs in ${{ matrix.language }}
73-
run: nox -s build -- -q -D language=${{ matrix.language }}
75+
run: nox -s build -- -q -D language=${LANGUAGE}
76+
env:
77+
LANGUAGE: ${{ matrix.language }}
7478

7579
- name: Set Sphinx Lint problem matcher
7680
if: always()
7781
run: echo '::add-matcher::.github/sphinx_lint_matcher.json'
7882

7983
- name: Lint translation file
8084
if: always()
81-
run: sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po
85+
run: sphinx-lint locales/${LANGUAGE}/LC_MESSAGES/messages.po
86+
env:
87+
LANGUAGE: ${{ matrix.language }}

‎.github/workflows/test.yml‎

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,49 @@ on:
66
branches-ignore:
77
- gh-readonly-queue/** # Temporary merge queue-related GH-made branches
88
pull_request:
9+
types:
10+
- opened # default
11+
- synchronize # default
12+
- reopened # default
13+
- ready_for_review # used in PRs created from GitHub Actions workflows
914
workflow_call:
1015

1116
concurrency:
1217
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
1318
cancel-in-progress: true
1419

20+
permissions: {}
21+
1522
jobs:
1623
build:
1724
name: ${{ matrix.noxenv }}
1825
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
1926
runs-on: ubuntu-latest
27+
timeout-minutes: 20
28+
continue-on-error: >-
29+
${{ fromJSON(matrix.continue-on-error) }}
2030
strategy:
2131
matrix:
2232
noxenv:
2333
- build
24-
- 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)) }}
2542
2643
steps:
27-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
45+
with:
46+
persist-credentials: false
2847

2948
- name: Set up Python
30-
uses: actions/setup-python@v4
49+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3150
with:
32-
python-version: "3.11"
51+
python-version: "3.14"
3352
cache: 'pip'
3453
cache-dependency-path: 'requirements.txt'
3554

@@ -38,6 +57,9 @@ jobs:
3857
python -m pip install --upgrade nox virtualenv
3958
4059
- 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 || '' }}
4163
run: |
4264
python -m nox -s ${{ matrix.noxenv }}
4365
@@ -55,6 +77,6 @@ jobs:
5577

5678
steps:
5779
- name: Decide whether the needed jobs succeeded or failed
58-
uses: re-actors/alls-green@release/v1
80+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
5981
with:
6082
jobs: ${{ toJSON(needs) }}

‎.github/workflows/translation.yml‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: github.repository_owner == 'pypa'
1919

20+
permissions:
21+
contents: write # to push to I18N_BRANCH
22+
2023
steps:
2124
- name: Grab the repo src
22-
uses: actions/checkout@v3
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2326
with:
2427
fetch-depth: 0 # To reach the common commit
28+
persist-credentials: true # For `git push`
2529
- name: Set up git user as [bot]
2630
# Refs:
2731
# * https://github.community/t/github-actions-bot-email-address/17204/6
2832
# * https://github.com/actions/checkout/issues/13#issuecomment-724415212
29-
uses: fregante/setup-git-user@v1.1.0
33+
uses: fregante/setup-git-user@024bc0b8e177d7e77203b48dab6fb45666854b35 # v2.0.2
3034

3135
- name: Switch to the translation source branch
3236
run: |
@@ -48,13 +52,15 @@ jobs:
4852
run: |
4953
sh -x
5054
51-
git merge '${{ github.event.repository.default_branch }}'
55+
git merge "${DEFAULT_BRANCH}"
56+
env:
57+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
5258
5359
- name: Set up Python
54-
uses: actions/setup-python@v4
60+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
5561
with:
5662
python-version: >-
57-
3.10
63+
3.14
5864
5965
- name: Install Python tooling
6066
run: python -m pip install --upgrade nox virtualenv
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
3+
name: Update uv build version
4+
5+
on:
6+
schedule:
7+
- cron: "0 6 * * 1" # mondays at 6am
8+
workflow_dispatch:
9+
10+
jobs:
11+
update-uv-build-version:
12+
name: Update uv_build version
13+
if: github.repository_owner == 'pypa' # suppress noise in forks
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
with:
22+
persist-credentials: false
23+
- name: Set up uv
24+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
25+
- name: Update uv_build version
26+
id: update_script
27+
run: uv run scripts/update_uv_build_version.py
28+
- # If there are no changes, no pull request will be created and the action exits silently.
29+
name: Create Pull Request
30+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
commit-message: Update uv_build version to ${{ steps.update_script.outputs.version }}
34+
title: Update uv_build version to ${{ steps.update_script.outputs.version }}
35+
draft: true # Trigger CI by un-drafting the PR, otherwise `GITHUB_TOKEN` PRs don't trigger CI.
36+
body: |
37+
Automated update of uv_build version bounds for uv ${{ steps.update_script.outputs.version }}.
38+
39+
This PR was created automatically by the cron workflow, ping `@konstin` for problems.
40+
branch: bot/update-uv-build-version
41+
delete-branch: true
42+
43+
...

‎.github/workflows/zizmor.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ jobs:
1919
actions: read
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323
with:
2424
persist-credentials: false
2525

2626
- name: Install the latest version of uv
27-
uses: astral-sh/setup-uv@v5
27+
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
2828

2929
- name: Run zizmor 🌈
3030
run: uvx zizmor --format sarif source/guides/github-actions-ci-cd-sample/* > results.sarif
3131
env:
3232
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333

3434
- name: Upload SARIF file
35-
uses: github/codeql-action/upload-sarif@v3
35+
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
3636
with:
3737
sarif_file: results.sarif
3838
category: zizmor

‎.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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v5.0.0
6+
rev: v6.0.0
77
hooks:
88
- id: check-added-large-files
99
- id: check-case-conflict
@@ -15,7 +15,7 @@ repos:
1515
- id: trailing-whitespace
1616

1717
- repo: https://github.com/codespell-project/codespell
18-
rev: v2.3.0
18+
rev: v2.4.3
1919
hooks:
2020
- id: codespell
2121
args: ["-L", "ned,ist,oder,Fo", "--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.7.1
40+
rev: v0.16.10
4141
hooks:
42-
- id: ruff
42+
- id: ruff-check
4343
- id: ruff-format

0 commit comments

Comments
 (0)