Skip to content

Commit 7ccd684

Browse files
committed
chore: Template upgrade
1 parent 6413894 commit 7ccd684

13 files changed

Lines changed: 253 additions & 236 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 1.4.1
2+
_commit: 1.5.4
33
_src_path: gh:pawamoy/copier-uv
44
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli

.github/workflows/ci.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,20 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
fetch-tags: true
2831

29-
- name: Fetch all tags
30-
run: git fetch --depth=1 --tags
31-
32-
- name: Set up Python
32+
- name: Setup Python
3333
uses: actions/setup-python@v5
3434
with:
35-
python-version: "3.11"
35+
python-version: "3.12"
3636

37-
- name: Install uv
38-
run: pip install uv
37+
- name: Setup uv
38+
uses: astral-sh/setup-uv@v3
39+
with:
40+
enable-cache: true
41+
cache-dependency-glob: pyproject.toml
3942

4043
- name: Install dependencies
4144
run: make setup
@@ -61,12 +64,12 @@ jobs:
6164
- macos-latest
6265
- windows-latest
6366
python-version:
64-
- "3.8"
6567
- "3.9"
6668
- "3.10"
6769
- "3.11"
6870
- "3.12"
6971
- "3.13"
72+
- "3.14"
7073
resolution:
7174
- highest
7275
- lowest-direct
@@ -76,22 +79,27 @@ jobs:
7679
- os: windows-latest
7780
resolution: lowest-direct
7881
runs-on: ${{ matrix.os }}
79-
continue-on-error: ${{ matrix.python-version == '3.13' }}
82+
continue-on-error: ${{ matrix.python-version == '3.14' }}
8083

8184
steps:
8285
- name: Checkout
8386
uses: actions/checkout@v4
87+
with:
88+
fetch-depth: 0
89+
fetch-tags: true
8490

85-
- name: Set up Python
91+
- name: Setup Python
8692
uses: actions/setup-python@v5
8793
with:
8894
python-version: ${{ matrix.python-version }}
8995
allow-prereleases: true
9096

9197
- name: Setup uv
92-
uses: astral-sh/setup-uv@v1
98+
uses: astral-sh/setup-uv@v3
9399
with:
94100
enable-cache: true
101+
cache-dependency-glob: pyproject.toml
102+
cache-suffix: py${{ matrix.python-version }}
95103

96104
- name: Install dependencies
97105
env:

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14-
- name: Fetch all tags
15-
run: git fetch --depth=1 --tags
14+
with:
15+
fetch-depth: 0
16+
fetch-tags: true
1617
- name: Setup Python
17-
uses: actions/setup-python@v4
18-
- name: Install git-changelog
19-
run: pip install git-changelog
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.12"
21+
- name: Setup uv
22+
uses: astral-sh/setup-uv@v3
2023
- name: Prepare release notes
21-
run: git-changelog --release-notes > release-notes.md
24+
run: uv tool run git-changelog --release-notes > release-notes.md
2225
- name: Create release
23-
uses: softprops/action-gh-release@v1
26+
uses: softprops/action-gh-release@v2
2427
with:
2528
body_path: release-notes.md

.gitpod.dockerfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

.gitpod.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ make setup
2323
> You can install it with:
2424
>
2525
> ```bash
26-
> python3 -m pip install --user pipx
27-
> pipx install uv
26+
> curl -LsSf https://astral.sh/uv/install.sh | sh
2827
> ```
2928
>
3029
> Now you can try running `make setup` again,
31-
> or simply `uv install`.
30+
> or simply `uv sync`.
3231
3332
You now have the dependencies installed.
3433

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,23 @@
55
[![pypi version](https://img.shields.io/pypi/v/mkdocs-autorefs.svg)](https://pypi.org/project/mkdocs-autorefs/)
66
[![conda version](https://img.shields.io/conda/vn/conda-forge/mkdocs-autorefs.svg)](https://anaconda.org/conda-forge/mkdocs-autorefs)
77
[![gitpod](https://img.shields.io/badge/gitpod-workspace-708FCC.svg?style=flat)](https://gitpod.io/#https://github.com/mkdocstrings/autorefs)
8-
[![gitter](https://badges.gitter.im/join%20chat.svg)](https://app.gitter.im/#/room/#mkdocstrings/autorefs:gitter.im)
8+
[![gitter](https://badges.gitter.im/join%20chat.svg)](https://app.gitter.im/#/room/#autorefs:gitter.im)
99

1010
Automatically link across pages in MkDocs.
1111

1212
## Installation
1313

14-
With `pip`:
15-
1614
```bash
17-
python3 -m pip install mkdocs-autorefs
15+
pip install mkdocs-autorefs
1816
```
1917

2018
## Usage
2119

2220
```yaml
2321
# mkdocs.yml
2422
plugins:
25-
- search
26-
- autorefs
23+
- search
24+
- autorefs
2725
```
2826
2927
In one of your Markdown files (e.g. `doc1.md`) create some headings:
@@ -97,11 +95,11 @@ The `attr_list` extension must be enabled for the Markdown anchors feature to wo
9795
```yaml
9896
# mkdocs.yml
9997
plugins:
100-
- search
101-
- autorefs
98+
- search
99+
- autorefs
102100
103101
markdown_extensions:
104-
- attr_list
102+
- attr_list
105103
```
106104

107105
Now, you can add anchors to documents:

config/ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
target-version = "py38"
1+
target-version = "py39"
22
line-length = 120
33

44
[lint]

duties.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
from contextlib import contextmanager
88
from importlib.metadata import version as pkgversion
99
from pathlib import Path
10-
from typing import TYPE_CHECKING, Iterator
10+
from typing import TYPE_CHECKING
1111

1212
from duty import duty, tools
1313

1414
if TYPE_CHECKING:
15+
from collections.abc import Iterator
16+
1517
from duty.context import Context
1618

1719

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3.11",
2828
"Programming Language :: Python :: 3.12",
2929
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python :: 3.14",
3031
"Topic :: Documentation",
3132
"Topic :: Software Development",
3233
"Topic :: Software Development :: Documentation",
@@ -57,6 +58,8 @@ version = {source = "scm"}
5758
[tool.pdm.build]
5859
package-dir = "src"
5960
editable-backend = "editables"
61+
62+
# Include as much as possible in the source distribution, to help redistributors.
6063
excludes = ["**/.pytest_cache"]
6164
source-includes = [
6265
"config",
@@ -71,19 +74,22 @@ source-includes = [
7174
]
7275

7376
[tool.pdm.build.wheel-data]
77+
# Manual pages can be included in the wheel.
78+
# Depending on the installation tool, they will be accessible to users.
79+
# pipx supports it, uv does not yet, see https://github.com/astral-sh/uv/issues/4731.
7480
data = [
7581
{path = "share/**/*", relative-to = "."},
7682
]
7783

78-
[tool.uv]
79-
dev-dependencies = [
84+
[dependency-groups]
85+
dev = [
8086
# dev
8187
"editables>=0.5",
8288

8389
# maintenance
8490
"build>=1.2",
8591
"git-changelog>=2.5",
86-
"twine>=5.0; python_version < '3.13'",
92+
"twine>=5.1",
8793

8894
# ci
8995
"duty>=1.4",
@@ -108,5 +114,6 @@ dev-dependencies = [
108114
"mkdocs-material>=9.5",
109115
"mkdocs-minify-plugin>=0.8",
110116
"mkdocstrings[python]>=0.25",
117+
# YORE: EOL 3.10: Remove line.
111118
"tomli>=2.0; python_version < '3.11'",
112119
]

0 commit comments

Comments
 (0)