File tree Expand file tree Collapse file tree 5 files changed +25
-9
lines changed
Expand file tree Collapse file tree 5 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -31,21 +31,27 @@ jobs:
3131 runs-on : ubuntu-latest
3232 steps :
3333 - uses : actions/checkout@v4
34- - uses : actions/setup-python@v5
34+
35+ - uses : actions-ext/python/setup@main
3536 with :
36- python-version : ' 3.11'
37+ version : ' 3.11'
38+
3739 - run : pip install copier
40+
3841 - uses : actions/setup-node@v4
3942 with :
4043 node-version : 20.x
44+
4145 - uses : pnpm/action-setup@v4
4246 with :
4347 version : 9
48+
4449 - name : Set up Rust
4550 uses : dtolnay/rust-toolchain@stable
4651 with :
4752 toolchain : stable
4853 components : clippy, rustfmt
54+
4955 - run : |
5056 make gen-${{matrix.template}}
5157 make test-${{matrix.template}}
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " python-project-templates"
3+ readme = " README.md"
4+ license = { text = " Apache-2.0" }
5+ version = " 0.1.0"
6+ requires-python = " >=3.9"
7+ dependencies = []
8+
9+ [project .optional-dependencies ]
10+ develop = [
11+ " copier" ,
12+ ]
Original file line number Diff line number Diff line change 3535 steps:
3636 - uses: actions/checkout@v4
3737
38- - name: Set up Python {% raw %} ${{ matrix.python-version }}{% endraw %}
39- uses: actions/setup-python@v5
38+ - uses: actions-ext/python/setup@main
4039 with:
41- python-version: {% raw %} ${{ matrix.python-version }}{% endraw %}
42- cache: 'pip'
43- cache-dependency-path: 'pyproject.toml'
40+ version: {% raw %} ${{ matrix.python-version }}{% endraw %}
4441
4542 - name: Install dependencies
4643 run: make develop
Original file line number Diff line number Diff line change 44.PHONY: develop build install
55
66develop: ## install dependencies and build library
7- python -m pip install -e .[develop]
7+ uv pip install -e .[develop]
88
99build: ## build the python library
1010 python -m build -n
1111
1212install: ## install library
13- python -m pip install .
13+ uv pip install .
1414
1515#########
1616# LINTS #
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ develop = [
3636 "pytest-cov",
3737 "ruff",
3838 "twine",
39+ "uv",
3940 "wheel",
4041]
4142
You can’t perform that action at this time.
0 commit comments