From 70147dfe674166d88672400e4383e2a59dac9dc8 Mon Sep 17 00:00:00 2001 From: "python-templates-copier-update[bot]" Date: Sun, 18 Oct 2026 09:34:24 +0000 Subject: [PATCH] Update from Copier (2026-10-18T09-34-21Z) Signed-off-by: python-templates-copier-update[bot] --- .copier-answers.yaml | 2 +- .github/workflows/build.yaml | 6 +++--- .github/workflows/docs.yaml | 2 ++ Cargo.lock | 12 ++++++------ Makefile | 10 +++++----- pyproject.toml | 22 +++++++++++++--------- 6 files changed, 30 insertions(+), 24 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 3c30d7b..de232c7 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: ebb6e1c +_commit: 162463c _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: rust diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 77d1b1e..7d620c6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,7 +15,7 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: @@ -97,7 +97,7 @@ jobs: if: matrix.target == 'pyodide' - name: Upload test results (Python) - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: test-results-${{ matrix.name }} path: '**/junit.xml' @@ -167,7 +167,7 @@ jobs: if: matrix.name == 'ubuntu-24.04' - name: Upload distributions - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: dist-${{ matrix.name }} path: ${{ matrix.dist_path }} diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 38ab261..e3b71f6 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -23,6 +23,8 @@ jobs: - name: Setup Python uses: actions-ext/python/setup@c8228d827a81b9f8c808825328af361c45461ba3 + with: + version: "3.11" - name: Download distributions uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 diff --git a/Cargo.lock b/Cargo.lock index 97403d9..90fcd24 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,18 +10,18 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "inventory" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b" +checksum = "6928282826c822ad91bf1c9a1cb90a30ba1c26770749929b4656cd6be829cd7c" dependencies = [ "rustversion", ] [[package]] name = "libc" -version = "0.2.189" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "once_cell" @@ -148,6 +148,6 @@ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" [[package]] name = "unicode-ident" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" diff --git a/Makefile b/Makefile index fa79300..b75e439 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,8 @@ lint-rs: ## run rust linter make -C rust lint lint-docs: ## lint docs with mdformat and codespell - python -m mdformat --check README.md docs/wiki/ - python -m codespell_lib README.md docs/wiki/ + python -m mdformat --check README.md $(wildcard docs/src) docs/wiki/ + python -m codespell_lib README.md $(wildcard docs/src) docs/wiki/ lint: lint-rs lint-py lint-docs ## run project linters @@ -61,8 +61,8 @@ fix-rs: ## fix rust formatting make -C rust fix fix-docs: ## autoformat docs with mdformat and codespell - python -m mdformat README.md docs/wiki/ - python -m codespell_lib --write README.md docs/wiki/ + python -m mdformat README.md $(wildcard docs/src) docs/wiki/ + python -m codespell_lib --write README.md $(wildcard docs/src) docs/wiki/ fix: fix-rs fix-py fix-docs ## run project autoformatters @@ -80,7 +80,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/pyproject.toml b/pyproject.toml index a72fb04..a87084f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ develop = [ "hatch-rs>=0.3.0", "hatchling", "mdformat", + "mdformat-frontmatter", "mdformat-tables>=1", "pytest", "pytest-cov", @@ -65,7 +66,8 @@ tag = true commit_args = "-s" pre_commit_hooks = [ "cargo update --workspace", - "git add Cargo.lock", + "cargo update --manifest-path rust/Cargo.toml --workspace", + "git add Cargo.lock rust/Cargo.lock", ] [[tool.bumpversion.files]] @@ -121,7 +123,7 @@ xbuild-tools = ["cargo", "rustc", "rustup"] [tool.coverage.run] branch = true omit = [ - "python_template_rust/tests/integration/", + "python_template_rust/tests/integration/*", ] [tool.coverage.report] @@ -133,13 +135,6 @@ exclude_also = [ ignore_errors = true fail_under = 50 -[tool.hatch.build] -artifacts = [ - "python_template_rust/*.dll", - "python_template_rust/*.dylib", - "python_template_rust/*.so", -] - [tool.hatch.build.sources] src = "/" @@ -157,11 +152,20 @@ packages = [ "Cargo.lock", ] exclude = [ + "*.dll", + "*.dylib", + "*.so", + "*.pyd", "rust/Makefile", "target", ] [tool.hatch.build.targets.wheel] +artifacts = [ + "python_template_rust/*.dll", + "python_template_rust/*.dylib", + "python_template_rust/*.so", +] packages = [ "python_template_rust", ]