Skip to content

Commit 8edcb95

Browse files
committed
chore: Template upgrade
1 parent 6c7da38 commit 8edcb95

14 files changed

Lines changed: 139 additions & 141 deletions

File tree

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 1.4.0
2+
_commit: 1.4.8
33
_src_path: gh:pawamoy/copier-uv
44
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli
@@ -13,7 +13,7 @@ insiders_email: insiders@pawamoy.fr
1313
insiders_repository_name: griffe-warnings-deprecated
1414
project_description: Griffe extension for `@warnings.deprecated` (PEP 702).
1515
project_name: griffe-warnings-deprecated
16-
public_release: false
16+
public_release: true
1717
python_package_command_line_name: ''
1818
python_package_distribution_name: griffe-warnings-deprecated
1919
python_package_import_name: griffe_warnings_deprecated

.github/workflows/ci.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ jobs:
2929
- name: Fetch all tags
3030
run: git fetch --depth=1 --tags
3131

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
@@ -63,11 +66,11 @@ jobs:
6366
echo 'jobs=[
6467
{"os": "macos-latest"},
6568
{"os": "windows-latest"},
66-
{"python-version": "3.9"},
6769
{"python-version": "3.10"},
6870
{"python-version": "3.11"},
6971
{"python-version": "3.12"},
70-
{"python-version": "3.13"}
72+
{"python-version": "3.13"},
73+
{"python-version": "3.14"}
7174
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
7275
else
7376
echo 'jobs=[
@@ -86,31 +89,35 @@ jobs:
8689
- macos-latest
8790
- windows-latest
8891
python-version:
89-
- "3.8"
9092
- "3.9"
9193
- "3.10"
9294
- "3.11"
9395
- "3.12"
9496
- "3.13"
97+
- "3.14"
9598
resolution:
9699
- highest
97100
- lowest-direct
98101
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
99102
runs-on: ${{ matrix.os }}
100-
continue-on-error: ${{ matrix.python-version == '3.13' }}
103+
continue-on-error: ${{ matrix.python-version == '3.14' }}
101104

102105
steps:
103106
- name: Checkout
104107
uses: actions/checkout@v4
105108

106-
- name: Set up Python
109+
- name: Setup Python
107110
uses: actions/setup-python@v5
108111
with:
109112
python-version: ${{ matrix.python-version }}
110113
allow-prereleases: true
111114

112-
- name: Install uv
113-
run: pip install uv
115+
- name: Setup uv
116+
uses: astral-sh/setup-uv@v3
117+
with:
118+
enable-cache: true
119+
cache-dependency-glob: pyproject.toml
120+
cache-suffix: py${{ matrix.python-version }}
114121

115122
- name: Install dependencies
116123
env:

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,30 @@ jobs:
1414
- name: Fetch all tags
1515
run: git fetch --depth=1 --tags
1616
- name: Setup Python
17-
uses: actions/setup-python@v4
18-
- name: Install build
19-
if: github.repository_owner == 'pawamoy-insiders'
20-
run: python -m pip install build
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
- name: Setup uv
21+
uses: astral-sh/setup-uv@v3
2122
- name: Build dists
2223
if: github.repository_owner == 'pawamoy-insiders'
23-
run: python -m build
24+
run: uv tool run --from build pyproject-build
2425
- name: Upload dists artifact
2526
uses: actions/upload-artifact@v4
2627
if: github.repository_owner == 'pawamoy-insiders'
2728
with:
2829
name: griffe-warnings-deprecated-insiders
2930
path: ./dist/*
30-
- name: Install git-changelog
31-
if: github.repository_owner != 'pawamoy-insiders'
32-
run: pip install git-changelog
3331
- name: Prepare release notes
3432
if: github.repository_owner != 'pawamoy-insiders'
35-
run: git-changelog --release-notes > release-notes.md
33+
run: uv tool run git-changelog --release-notes > release-notes.md
3634
- name: Create release with assets
37-
uses: softprops/action-gh-release@v1
35+
uses: softprops/action-gh-release@v2
3836
if: github.repository_owner == 'pawamoy-insiders'
3937
with:
4038
files: ./dist/*
4139
- name: Create release
42-
uses: softprops/action-gh-release@v1
40+
uses: softprops/action-gh-release@v2
4341
if: github.repository_owner != 'pawamoy-insiders'
4442
with:
4543
body_path: release-notes.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/.pdm-build/
1616
/htmlcov/
1717
/site/
18+
uv.lock
1819

1920
# cache
2021
.cache/

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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# griffe-warnings-deprecated
22

3+
[![ci](https://github.com/mkdocstrings/griffe-warnings-deprecated/workflows/ci/badge.svg)](https://github.com/mkdocstrings/griffe-warnings-deprecated/actions?query=workflow%3Aci)
34
[![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://mkdocstrings.github.io/griffe-warnings-deprecated/)
5+
[![pypi version](https://img.shields.io/pypi/v/griffe-warnings-deprecated.svg)](https://pypi.org/project/griffe-warnings-deprecated/)
46
[![gitpod](https://img.shields.io/badge/gitpod-workspace-708FCC.svg?style=flat)](https://gitpod.io/#https://github.com/mkdocstrings/griffe-warnings-deprecated)
57
[![gitter](https://badges.gitter.im/join%20chat.svg)](https://app.gitter.im/#/room/#griffe-warnings-deprecated:gitter.im)
68

@@ -9,9 +11,9 @@ Griffe extension for `@warnings.deprecated`
911

1012
## Installation
1113

12-
This project is available to sponsors only, through my Insiders program.
13-
See Insiders [explanation](https://mkdocstrings.github.io/griffe-warnings-deprecated/insiders/)
14-
and [installation instructions](https://mkdocstrings.github.io/griffe-warnings-deprecated/insiders/installation/).
14+
```bash
15+
pip install griffe-warnings-deprecated
16+
```
1517

1618
## Usage
1719

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]

devdeps.txt

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

duties.py

Lines changed: 7 additions & 4 deletions
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

@@ -53,8 +55,8 @@ def changelog(ctx: Context, bump: str = "") -> None:
5355
ctx.run(tools.git_changelog(bump=bump or None), title="Updating changelog")
5456

5557

56-
@duty(pre=["check_quality", "check_types", "check_docs", "check_dependencies", "check-api"])
57-
def check(ctx: Context) -> None: # noqa: ARG001
58+
@duty(pre=["check-quality", "check-types", "check-docs", "check-api"])
59+
def check(ctx: Context) -> None:
5860
"""Check it all!"""
5961

6062

@@ -121,12 +123,13 @@ def docs_deploy(ctx: Context) -> None:
121123
with material_insiders() as insiders:
122124
if not insiders:
123125
ctx.run(lambda: False, title="Not deploying docs without Material for MkDocs Insiders!")
124-
origin = ctx.run("git config --get remote.origin.url", silent=True)
126+
origin = ctx.run("git config --get remote.origin.url", silent=True, allow_overrides=False)
125127
if "pawamoy-insiders/griffe-warnings-deprecated" in origin:
126128
ctx.run(
127129
"git remote add upstream git@github.com:mkdocstrings/griffe-warnings-deprecated",
128130
silent=True,
129131
nofail=True,
132+
allow_overrides=False,
130133
)
131134
ctx.run(
132135
tools.mkdocs.gh_deploy(remote_name="upstream", force=True),

mkdocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ plugins:
137137
show_symbol_type_toc: true
138138
signature_crossrefs: true
139139
summary: true
140-
- git-committers:
140+
- git-revision-date-localized:
141141
enabled: !ENV [DEPLOY, false]
142-
repository: mkdocstrings/griffe-warnings-deprecated
142+
enable_creation_date: true
143+
type: timeago
143144
- minify:
144145
minify_html: !ENV [DEPLOY, false]
145146
- group:

0 commit comments

Comments
 (0)