-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependency-specifiers-grammar-fixes
- Loading branch information
Showing
85 changed files
with
7,925 additions
and
2,445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1d7b1abd152e4cb5e6a46e52e6b7e3bf8d366486 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "sphinx-lint-problem-matcher", | ||
"pattern": [ | ||
{ | ||
"regexp": "^(.*):(\\d+):\\s+(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"message": 3 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
|
||
name: Cron | ||
|
||
on: | ||
schedule: | ||
- cron: "0 6 * * *" # daily at 6am | ||
|
||
jobs: | ||
test: | ||
if: github.repository_owner == 'pypa' # suppress noise in forks | ||
uses: ./.github/workflows/test.yml | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Read the Docs PR preview | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
documentation-links: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: readthedocs/actions/preview@v1 | ||
with: | ||
project-slug: "python-packaging-user-guide" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Test translations | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- '**.po' | ||
branches: | ||
- translation/source | ||
push: | ||
paths: | ||
- '**.po' | ||
branches: | ||
- translation/source | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
I18N_BRANCH: translation/source | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
languages: ${{ steps.languages.outputs.languages }} | ||
|
||
steps: | ||
- name: Grab the repo src | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.I18N_BRANCH }} | ||
|
||
- name: List languages | ||
id: languages | ||
working-directory: locales | ||
run: | | ||
list=$(find * -maxdepth 0 -type d | jq -nRc '[inputs]') | ||
echo "languages=$list" >> $GITHUB_OUTPUT | ||
test-translation: | ||
runs-on: ubuntu-latest | ||
needs: matrix | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ${{fromJson(needs.matrix.outputs.languages)}} | ||
|
||
steps: | ||
- name: Grab the repo src | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.I18N_BRANCH }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: >- | ||
3.10 | ||
- name: Install Python tooling | ||
run: python -m pip install --upgrade nox virtualenv sphinx-lint | ||
|
||
- name: Set Sphinx problem matcher | ||
uses: sphinx-doc/github-problem-matcher@v1.0 | ||
|
||
- name: Build translated docs in ${{ matrix.language }} | ||
run: nox -s build -- -q -D language=${{ matrix.language }} | ||
|
||
- name: Set Sphinx Lint problem matcher | ||
if: always() | ||
run: echo '::add-matcher::.github/sphinx_lint_matcher.json' | ||
|
||
- name: Lint translation file | ||
if: always() | ||
run: sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
hooks: | ||
- id: codespell | ||
args: ["-L", "ned,ist,oder", "--skip", "*.po"] | ||
|
||
- repo: local | ||
hooks: | ||
- id: disallow-caps | ||
name: Disallow improper capitalization | ||
language: pygrep | ||
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest | ||
exclude: .pre-commit-config.yaml | ||
exclude_types: ["pofile"] | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.10.0 | ||
hooks: | ||
- id: rst-backticks | ||
- id: rst-directive-colons | ||
- id: rst-inline-touching-normal | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.4.3 | ||
hooks: | ||
- id: ruff | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
sphinx==4.5.0 | ||
sphinx-autobuild==0.7.1 | ||
sphinx-inline-tabs==2021.4.11b9 | ||
python-docs-theme==2022.1 | ||
sphinx-copybutton==0.5.0 | ||
git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme | ||
furo==2023.9.10 | ||
sphinx==7.2.6 | ||
sphinx-autobuild==2021.3.14 | ||
sphinx-inline-tabs==2023.4.21 | ||
sphinx-copybutton==0.5.2 | ||
sphinx-toolbox==3.5.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.