Skip to content

Commit a15156f

Browse files
committed
chore: Template upgrade
1 parent a0dc4c3 commit a15156f

15 files changed

Lines changed: 70 additions & 64 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.1.5
2+
_commit: 1.2.1
33
_src_path: gh:mkdocstrings/handler-template
44
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28-
29-
- name: Fetch all tags
30-
run: git fetch --depth=1 --tags
28+
with:
29+
fetch-depth: 0
30+
fetch-tags: true
3131

3232
- name: Setup Python
3333
uses: actions/setup-python@v5
3434
with:
35-
python-version: "3.11"
35+
python-version: "3.12"
3636

3737
- name: Setup uv
3838
uses: astral-sh/setup-uv@v3
@@ -66,11 +66,11 @@ jobs:
6666
echo 'jobs=[
6767
{"os": "macos-latest"},
6868
{"os": "windows-latest"},
69-
{"python-version": "3.9"},
7069
{"python-version": "3.10"},
7170
{"python-version": "3.11"},
7271
{"python-version": "3.12"},
73-
{"python-version": "3.13"}
72+
{"python-version": "3.13"},
73+
{"python-version": "3.14"}
7474
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
7575
else
7676
echo 'jobs=[
@@ -89,22 +89,25 @@ jobs:
8989
- macos-latest
9090
- windows-latest
9191
python-version:
92-
- "3.8"
9392
- "3.9"
9493
- "3.10"
9594
- "3.11"
9695
- "3.12"
9796
- "3.13"
97+
- "3.14"
9898
resolution:
9999
- highest
100100
- lowest-direct
101101
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
102102
runs-on: ${{ matrix.os }}
103-
continue-on-error: ${{ matrix.python-version == '3.13' }}
103+
continue-on-error: ${{ matrix.python-version == '3.14' }}
104104

105105
steps:
106106
- name: Checkout
107107
uses: actions/checkout@v4
108+
with:
109+
fetch-depth: 0
110+
fetch-tags: true
108111

109112
- name: Setup Python
110113
uses: actions/setup-python@v5

.github/workflows/release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,27 @@ 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
1718
uses: actions/setup-python@v5
18-
- name: Install build
19-
if: github.repository_owner == 'pawamoy-insiders'
20-
run: pip install build
19+
with:
20+
python-version: "3.12"
21+
- name: Setup uv
22+
uses: astral-sh/setup-uv@v3
2123
- name: Build dists
2224
if: github.repository_owner == 'pawamoy-insiders'
23-
run: pyproject-build
25+
run: uv tool run --from build pyproject-build
2426
- name: Upload dists artifact
2527
uses: actions/upload-artifact@v4
2628
if: github.repository_owner == 'pawamoy-insiders'
2729
with:
2830
name: typescript-insiders
2931
path: ./dist/*
30-
- name: Install git-changelog
31-
if: github.repository_owner != 'pawamoy-insiders'
32-
run: pip install git-changelog
3332
- name: Prepare release notes
3433
if: github.repository_owner != 'pawamoy-insiders'
35-
run: git-changelog --release-notes > release-notes.md
34+
run: uv tool run git-changelog --release-notes > release-notes.md
3635
- name: Create release with assets
3736
uses: softprops/action-gh-release@v2
3837
if: github.repository_owner == 'pawamoy-insiders'

.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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# mkdocstrings-typescript
22

33
[![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://mkdocstrings.github.io/typescript/)
4-
[![gitpod](https://img.shields.io/badge/gitpod-workspace-708FCC.svg?style=flat)](https://gitpod.io/#https://github.com/mkdocstrings/typescript)
54
[![gitter](https://badges.gitter.im/join%20chat.svg)](https://app.gitter.im/#/room/#typescript:gitter.im)
65

76
A Typescript handler for mkdocstrings.

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: 14 additions & 3 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

@@ -116,8 +118,12 @@ def docs(ctx: Context, *cli_args: str, host: str = "127.0.0.1", port: int = 8000
116118

117119

118120
@duty
119-
def docs_deploy(ctx: Context) -> None:
120-
"""Deploy the documentation to GitHub pages."""
121+
def docs_deploy(ctx: Context, *, force: bool = False) -> None:
122+
"""Deploy the documentation to GitHub pages.
123+
124+
Parameters:
125+
force: Whether to force deployment, even from non-Insiders version.
126+
"""
121127
os.environ["DEPLOY"] = "true"
122128
with material_insiders() as insiders:
123129
if not insiders:
@@ -134,6 +140,11 @@ def docs_deploy(ctx: Context) -> None:
134140
tools.mkdocs.gh_deploy(remote_name="upstream", force=True),
135141
title="Deploying documentation",
136142
)
143+
elif force:
144+
ctx.run(
145+
tools.mkdocs.gh_deploy(force=True),
146+
title="Deploying documentation",
147+
)
137148
else:
138149
ctx.run(
139150
lambda: False,

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "A Typescript handler for mkdocstrings."
88
authors = [{name = "Timothée Mazzucotelli", email = "dev@pawamoy.fr"}]
99
license = {text = "ISC"}
1010
readme = "README.md"
11-
requires-python = ">=3.8"
11+
requires-python = ">=3.9"
1212
keywords = []
1313
dynamic = ["version"]
1414
classifiers = [
@@ -17,12 +17,12 @@ classifiers = [
1717
"Programming Language :: Python",
1818
"Programming Language :: Python :: 3",
1919
"Programming Language :: Python :: 3 :: Only",
20-
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
2423
"Programming Language :: Python :: 3.12",
2524
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.14",
2626
"Topic :: Documentation",
2727
"Topic :: Software Development",
2828
"Topic :: Utilities",
@@ -76,7 +76,7 @@ dev-dependencies = [
7676
# maintenance
7777
"build>=1.2",
7878
"git-changelog>=2.5",
79-
"twine>=5.0; python_version < '3.13'",
79+
"twine>=5.1",
8080

8181
# ci
8282
"duty>=1.4",
@@ -101,5 +101,6 @@ dev-dependencies = [
101101
"mkdocs-material>=9.5",
102102
"mkdocs-minify-plugin>=0.8",
103103
"mkdocstrings[python]>=0.25",
104+
# YORE: EOL 3.10: Remove line.
104105
"tomli>=2.0; python_version < '3.11'",
105106
]

0 commit comments

Comments
 (0)