Skip to content

Commit e3037ea

Browse files
authored
Merge pull request #50 from python-project-templates/copier-update-2026-02-15T05-53-57
Update from copier (2026-02-15T05:53:57)
2 parents 4e7d51d + 951608f commit e3037ea

File tree

5 files changed

+57
-18
lines changed

5 files changed

+57
-18
lines changed

.copier-answers.yaml

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: b74d698
2+
_commit: 37f89c1
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rustjswasm

js/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ crate-type = ["cdylib"]
1313

1414
[dependencies]
1515
python_template_rust = { path = "../rust", version = "*" }
16-
wasm-bindgen = "0.2.106"
16+
wasm-bindgen = "0.2.108"

js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"access": "public"
2727
},
2828
"scripts": {
29-
"setup": "cargo install -f wasm-bindgen-cli --version 0.2.106",
29+
"setup": "cargo install -f wasm-bindgen-cli --version 0.2.108",
3030
"build:debug": "node build.mjs --debug",
3131
"build:rust": "cargo build --release --all-features --target wasm32-unknown-unknown",
3232
"build:wasm-bindgen": "wasm-bindgen ../target/wasm32-unknown-unknown/release/python_template_rust.wasm --out-dir ./dist/pkg --target web",

pyproject.toml

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
[build-system]
2-
requires = ["hatchling", "hatch-js", "hatch-rs"]
2+
requires = [
3+
"hatchling",
4+
"hatch-js",
5+
"hatch-rs",
6+
]
37
build-backend = "hatchling.build"
48

59
[project]
610
name = "python-template-rust"
7-
authors = [{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}]
11+
authors = [
12+
{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"},
13+
]
814
description = "A Rust-Python project template"
915
readme = "README.md"
1016
license = { text = "Apache-2.0" }
@@ -44,6 +50,8 @@ develop = [
4450
"pytest-cov",
4551
"ruff>=0.9,<0.15",
4652
"twine",
53+
"ty",
54+
"uv",
4755
"wheel",
4856
]
4957

@@ -108,7 +116,7 @@ ignore = [
108116
[tool.cibuildwheel]
109117
build = "cp310-*"
110118
test-command = "pytest -vvv {project}/python_template_rust/tests"
111-
test-requires = ["pytest", "pytest-cov", "pytest-sugar", "pytest-xdist"]
119+
test-extras = "develop"
112120

113121
[tool.cibuildwheel.linux]
114122
before-all = """
@@ -145,36 +153,67 @@ fail_under = 50
145153
path = "js"
146154
build_cmd = "build"
147155
tool = "pnpm"
148-
targets = ["python_template_rust/extension/cdn/index.js"]
156+
targets = [
157+
"python_template_rust/extension/cdn/index.js",
158+
]
149159

150160
[tool.hatch.build.hooks.hatch-rs]
151161
verbose = true
152162
module = "python_template_rust"
153163
path = "."
154164

155165
[tool.hatch.build.targets.sdist]
156-
packages = ["python_template_rust", "/js", "/rust", "/src"]
157-
sources = ["."]
166+
packages = [
167+
"python_template_rust",
168+
"/js",
169+
"/rust",
170+
"/src",
171+
]
172+
sources = [
173+
".",
174+
]
158175

159176
[tool.hatch.build.targets.wheel]
160-
packages = ["python_template_rust"]
161-
exclude = ["/js", "/rust", "/src"]
177+
packages = [
178+
"python_template_rust",
179+
]
180+
exclude = [
181+
"/js",
182+
"/rust",
183+
"/src",
184+
]
162185

163186
[tool.pytest.ini_options]
164-
addopts = ["-vvv", "--junitxml=junit.xml"]
187+
addopts = [
188+
"-vvv",
189+
"--junitxml=junit.xml",
190+
]
165191
testpaths = "python_template_rust/tests"
166192

167193
[tool.ruff]
168194
line-length = 150
169195

170196
[tool.ruff.lint]
171-
extend-select = ["I"]
197+
extend-select = [
198+
"I",
199+
]
172200

173201
[tool.ruff.lint.isort]
174202
combine-as-imports = true
175203
default-section = "third-party"
176-
known-first-party = ["python_template_rust"]
177-
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
204+
known-first-party = [
205+
"python_template_rust",
206+
]
207+
section-order = [
208+
"future",
209+
"standard-library",
210+
"third-party",
211+
"first-party",
212+
"local-folder",
213+
]
178214

179215
[tool.ruff.lint.per-file-ignores]
180-
"__init__.py" = ["F401", "F403"]
216+
"__init__.py" = [
217+
"F401",
218+
"F403",
219+
]

rust/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
requirements: ## install required dev dependencies
44
rustup component add rustfmt
55
rustup component add clippy
6-
cargo install -f cargo-nextest
6+
cargo install -f cargo-nextest --locked
77
cargo install -f cargo-llvm-cov
8-
cargo install -f wasm-bindgen-cli --version 0.2.106
8+
cargo install -f wasm-bindgen-cli --version 0.2.108
99
rustup target add wasm32-unknown-unknown
1010

1111
develop: requirements ## install required dev dependencies

0 commit comments

Comments
 (0)