Skip to content

Commit 5e95fa0

Browse files
committed
use uvx
1 parent 159602f commit 5e95fa0

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A [Copier](https://github.com/copier-org/copier) template for a Python package b
77
## Usage
88

99
```sh
10-
pipx run copier copy --trust gh:branchvincent/python-template <dest>
10+
uvx copier copy --trust gh:branchvincent/python-template <dest>
1111
```
1212

1313
## Features

src/.github/workflows/{% if docs %}docs.yaml{% endif %}

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,15 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
15-
- uses: actions/setup-python@v2
16-
with:
17-
python-version: 3.9
18-
- name: Set up cache
19-
uses: actions/cache@v2
20-
with:
21-
path: .venv
22-
key: ${{ runner.os }}-venv-py3.9-${{ hashFiles('**/poetry.lock') }}
2315
- name: Set up Poetry
24-
run: |
25-
pip install poetry
26-
poetry config virtualenvs.in-project true
16+
run: pipx install poetry
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: 3.12
20+
cache: poetry
2721
- name: Install package
2822
run: poetry install
2923
- name: Publish docs

src/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ruff = "*"
2525
taskipy = "*"
2626

2727
[tool.taskipy.tasks]
28-
clean = { cmd = "rm -rf .mypy_cache/ .pytest_cache/ build/ dist/ *.egg-info", help = "Remove build artifacts" }
28+
clean = { cmd = "rm -rf .mypy_cache/ .pytest_cache/ .ruff_cache/ build/ dist/ *.egg-info", help = "Remove build artifacts" }
2929
{% if docs -%}
3030
docs = { cmd = "mkdocs serve -f docs/mkdocs.yaml", help = "Serve documentation"}
3131
{% endif -%}

0 commit comments

Comments
 (0)