Skip to content

Commit c92bfa5

Browse files
authored
feat: upgrade {root, template} x {project, CI} dependencies (#340)
1 parent ec640e3 commit c92bfa5

10 files changed

Lines changed: 339 additions & 249 deletions

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Set up uv
15-
uses: astral-sh/setup-uv@v7
15+
uses: astral-sh/setup-uv@v10.0.1
1616

1717
- name: Check PR title
1818
run: |

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
python-version: ["3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.11", "3.12", "3.13", "3.14"]
1717
project-type: ["app", "package"]
1818
typing: ["optional", "strict"]
1919

2020
name: "Python ${{ matrix.python-version }} ${{ matrix.project-type }} with ${{ matrix.typing }} typing"
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v6
24+
uses: actions/checkout@v7
2525
with:
2626
path: substrate
2727

2828
- name: Set up uv
29-
uses: astral-sh/setup-uv@v7
29+
uses: astral-sh/setup-uv@v10.0.1
3030
with:
3131
enable-cache: true
3232
cache-dependency-glob: "**/uv.lock"
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: Build app Docker image
6464
if: ${{ matrix.project-type == 'app' }}
65-
uses: docker/build-push-action@v6
65+
uses: docker/build-push-action@v7
6666
with:
6767
context: ./my-project/
6868
target: app

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name = "substrate"
33
version = "2.0.0"
44
requires-python = ">=3.13,<3.14"
55
dependencies = [
6-
"commitizen>=4.3.0",
7-
"copier>=9.4.1",
8-
"pre-commit>=4.1.0",
9-
"ruff>=0.9.3",
10-
"ty>=0.0.6",
6+
"commitizen>=4.17.1",
7+
"copier>=9.17.1",
8+
"pre-commit>=4.6.2",
9+
"ruff>=0.16.3",
10+
"ty>=0.0.73",
1111
]
1212

1313
[tool.commitizen]

template/pyproject.toml.jinja

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ authors = [
1313
requires-python = ">={{ python_version }},<4.0"
1414
dependencies = [
1515
{%- if with_fastapi_api %}
16-
"fastapi[all] (>=0.115.6)",
17-
"gunicorn (>=23.0.0)",
16+
"fastapi[standard]>=0.141.1",
17+
"gunicorn>=26.1.0",
1818
{%- endif %}
1919
{%- if project_type == 'app' %}
20-
"poethepoet (>=0.32.1)",
20+
"poethepoet>=0.48.0",
2121
{%- endif %}
2222
{%- if with_typer_cli %}
23-
"typer (>=0.15.1)",
23+
"typer>=0.27.1",
2424
{%- endif %}
2525
]
2626
{%- if with_typer_cli %}
@@ -41,27 +41,30 @@ issues = "{{ project_url.rstrip('/') }}/{% if ci == 'gitlab' %}-/{% endif %}issu
4141

4242
[dependency-groups] # https://docs.astral.sh/uv/concepts/projects/dependencies/#development-dependencies
4343
dev = [
44-
"codespell (>=2.4.1)",
44+
"codespell>=2.4.3",
4545
{%- if with_conventional_commits %}
46-
"commitizen (>=4.3.0)",
46+
"commitizen>=4.17.1",
4747
{%- endif %}
48-
"coverage[toml] (>=7.6.10)",
49-
"ipykernel (>=6.29.4)",
50-
"ipython (>=8.18.0)",
51-
"ipywidgets (>=8.1.2)",
52-
"mkdocs-material (>=9.5.21)",
48+
"coverage[toml]>=7.15.4",
49+
{%- if with_fastapi_api %}
50+
"httpx2>=2.12.0",
51+
{%- endif %}
52+
"ipykernel>=7.3.0",
53+
"ipython>=9.16.1",
54+
"ipywidgets>=8.1.9",
55+
"mkdocs-material>=9.7.7",
5356
{%- if project_type == 'package' %}
54-
"mkdocstrings[python] (>=0.26.2)",
55-
"poethepoet (>=0.32.1)",
57+
"mkdocstrings[python]>=1.0.6",
58+
"poethepoet>=0.48.0",
5659
{%- endif %}
57-
"pre-commit (>=4.0.1)",
58-
"pytest (>=8.3.4)",
59-
"pytest-mock (>=3.14.0)",
60-
"pytest-xdist (>=3.6.1)",
61-
"ruff (>=0.9.2)",
62-
"ty (>=0.0.6)",
60+
"pre-commit>=4.6.2",
61+
"pytest>=9.1.1",
62+
"pytest-mock>=3.15.1",
63+
"pytest-xdist>=3.8.0",
64+
"ruff>=0.16.3",
65+
"ty>=0.0.73",
6366
{%- if typing == 'strict' %}
64-
"typeguard (>=4.4.1)",
67+
"typeguard>=4.6.0",
6568
{%- endif %}
6669
]
6770

template/{% if ci == 'github' %}.github{% endif %}/workflows/docs.yml.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v5
26+
uses: actions/checkout@v7
2727

2828
- name: Install uv
29-
uses: astral-sh/setup-uv@v7
29+
uses: astral-sh/setup-uv@v10.0.1
3030

3131
- name: Build docs
3232
run: uv run mkdocs build
3333

3434
- name: Configure GitHub Pages
35-
uses: actions/configure-pages@v5
35+
uses: actions/configure-pages@v6
3636

3737
- name: Upload GitHub Pages artifact
38-
uses: actions/upload-pages-artifact@v4
38+
uses: actions/upload-pages-artifact@v5
3939
with:
4040
path: site
4141

4242
- name: Deploy to GitHub Pages
4343
id: deployment
44-
uses: actions/deploy-pages@v4
44+
uses: actions/deploy-pages@v5

template/{% if ci == 'github' %}.github{% endif %}/workflows/test.yml.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v6
26+
uses: actions/checkout@v7
2727

2828
- name: Set up Node.js
29-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@v7
3030
with:
31-
node-version: 23
31+
node-version: 24
3232

3333
- name: Install @devcontainers/cli
34-
run: npm install --location=global @devcontainers/cli@0.76.0
34+
run: npm install --location=global @devcontainers/cli@0.88.0
3535

3636
- name: Start Dev Container
3737
run: |

template/{% if ci == 'github' %}.github{% endif %}/workflows/{% if project_type == 'app' %}deploy.yml{% endif %}.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030

3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v6
33+
uses: actions/checkout@v7
3434

3535
- name: Log in to the Docker registry
36-
uses: docker/login-action@v3
36+
uses: docker/login-action@v4
3737
with:
3838
registry: {% raw %}${{ env.DOCKER_REGISTRY }}{% endraw %}
3939
username: {% raw %}${{ github.actor }}{% endraw %}
@@ -43,7 +43,7 @@ jobs:
4343
run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
4444

4545
- name: Build and push Docker image
46-
uses: docker/build-push-action@v5
46+
uses: docker/build-push-action@v7
4747
with:
4848
context: .
4949
push: true

template/{% if ci == 'github' %}.github{% endif %}/workflows/{% if project_type == 'package' %}publish.yml{% endif %}.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414

1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@v7
1818

1919
- name: Install uv
20-
uses: astral-sh/setup-uv@v7
20+
uses: astral-sh/setup-uv@v10.0.1
2121

2222
- name: Publish package
2323
run: |

template/{% if ci == 'github' %}.github{% endif %}/workflows/{% if with_conventional_commits %}pr.yml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Set up uv
15-
uses: astral-sh/setup-uv@v7
15+
uses: astral-sh/setup-uv@v10.0.1
1616

1717
- name: Check PR title
1818
run: |

0 commit comments

Comments
 (0)