File tree Expand file tree Collapse file tree 7 files changed +1188
-24
lines changed Expand file tree Collapse file tree 7 files changed +1188
-24
lines changed Original file line number Diff line number Diff line change @@ -57,25 +57,30 @@ jobs:
5757 with :
5858 ref : ${{ env.I18N_BRANCH }}
5959
60- - name : Set up Python
61- uses : actions /setup-python @v5
60+ - name : Install uv
61+ uses : astral-sh /setup-uv @v5
6262 with :
6363 python-version : >-
6464 3.10
65+ enable-cache : true
66+ cache-dependency-glob : " requirements**.txt"
6567
6668 - name : Install Python tooling
67- run : python -m pip install --upgrade nox virtualenv sphinx-lint
69+ run : uv python install
70+
71+ - name : Install the project
72+ run : uv sync --all-extras --dev
6873
6974 - name : Set Sphinx problem matcher
7075 uses :
sphinx-doc/[email protected] 7176
7277 - name : Build translated docs in ${{ matrix.language }}
73- run : nox -s build -- -q -D language=${{ matrix.language }}
78+ run : uv run nox -s build -- -q -D language=${{ matrix.language }}
7479
7580 - name : Set Sphinx Lint problem matcher
7681 if : always()
7782 run : echo '::add-matcher::.github/sphinx_lint_matcher.json'
7883
7984 - name : Lint translation file
8085 if : always()
81- run : sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po
86+ run : uv run sphinx-lint locales/${{ matrix.language }}/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change @@ -26,20 +26,22 @@ jobs:
2626 steps :
2727 - uses : actions/checkout@v3
2828
29- - name : Set up Python
30- uses : actions /setup-python@v4
29+ - name : Install uv
30+ uses : astral-sh /setup-uv@v5
3131 with :
32- python-version : " 3.11 "
33- cache : ' pip '
34- cache-dependency-path : ' requirements.txt'
32+ python-version : ${{ matrix.python-version }}
33+ enable- cache : true
34+ cache-dependency-glob : " requirements** .txt"
3535
36- - name : Install dependencies
37- run : |
38- python -m pip install --upgrade nox virtualenv
36+ - name : Install Python tooling
37+ run : uv python install
38+
39+ - name : Install the project
40+ run : uv sync --all-extras --dev
3941
4042 - name : Nox ${{ matrix.noxenv }}
4143 run : |
42- python -m nox -s ${{ matrix.noxenv }}
44+ uv run nox -s ${{ matrix.noxenv }}
4345
4446
4547 check :
Original file line number Diff line number Diff line change @@ -50,17 +50,22 @@ jobs:
5050
5151 git merge '${{ github.event.repository.default_branch }}'
5252
53- - name : Set up Python
54- uses : actions /setup-python@v4
53+ - name : Install uv
54+ uses : astral-sh /setup-uv@v5
5555 with :
5656 python-version : >-
5757 3.10
58+ enable-cache : true
59+ cache-dependency-glob : " requirements**.txt"
5860
5961 - name : Install Python tooling
60- run : python -m pip install --upgrade nox virtualenv
62+ run : uv python install
63+
64+ - name : Install the project
65+ run : uv sync --all-extras --dev
6166
6267 - name : Generate a fresh POT file out of RST documents
63- run : python -m nox -s translation
68+ run : uv run nox -s translation
6469
6570 - name : Commit the POT file to Git
6671 run : |
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " packaging-python-org"
3+ version = " 0.1.0"
4+ description = " Add your description here"
5+ readme = " README.md"
6+ requires-python = " >=3.9"
7+ dependencies = [
8+ " furo==2024.8.6" ,
9+ " sphinx-autobuild==2021.3.14" ,
10+ " sphinx==7.2.6" ,
11+ " sphinx-inline-tabs==2023.4.21" ,
12+ " sphinx-copybutton==0.5.2" ,
13+ " sphinx-toolbox==3.5.0" ,
14+ ]
15+
16+ [dependency-groups ]
17+ dev = [
18+ " nox>=2024.10.9" ,
19+ " sphinx-lint>=1.0.0" ,
20+ " virtualenv>=20.28.1" ,
21+ ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments