Skip to content

Commit f5981e8

Browse files
authored
Merge pull request #51 from python-project-templates/copier-update-2026-02-22T04-26-43
Update from copier (2026-02-22T04:26:43)
2 parents 0774554 + 18b3a63 commit f5981e8

File tree

7 files changed

+20
-33
lines changed

7 files changed

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

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,12 @@ js/node_modules
141141
js/test-results
142142
js/playwright-report
143143
js/*.tgz
144-
python_template_rust/extension
145144

146145
# Jupyter
147146
.ipynb_checkpoints
148147
.autoversion
149148
Untitled*.ipynb
150-
!python_template_rust/extension/python_template_rust.json
151-
!python_template_rust/extension/install.json
149+
python_template_rust/extension
152150
python_template_rust/nbextension
153151
python_template_rust/labextension
154152

@@ -157,3 +155,7 @@ python_template_rust/labextension
157155

158156
# Rust
159157
target
158+
159+
# Hydra
160+
outputs/
161+
multirun/

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ publish = false
66

77
[lib]
88
name = "python_template_rust"
9-
path = "src/lib.rs"
9+
path = "rust/python/lib.rs"
1010
crate-type = ["cdylib"]
1111

1212
[dependencies]
1313
python_template_rust = { path = "./rust", version = "*" }
14-
pyo3 = { version = "0.27.2", features = ["abi3-py39", "extension-module", "multiple-pymethods"] }
14+
pyo3 = { version = "0.28.2", features = ["abi3", "extension-module", "multiple-pymethods"] }
1515

1616
[profile.release]
1717
panic = 'abort'

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,15 @@ format: fix
8888
################
8989
# Other Checks #
9090
################
91-
.PHONY: check-manifest checks check
91+
.PHONY: check-dist check-types checks check
9292

93-
check-manifest: ## check python sdist manifest with check-manifest
94-
check-manifest -v
93+
check-dist: ## check python sdist and wheel with check-dist
94+
check-dist -v
9595

96-
checks: check-manifest
96+
check-types: ## check python types with ty
97+
ty check --python $$(which python)
98+
99+
checks: check-dist
97100

98101
# alias
99102
check: checks

pyproject.toml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ dependencies = []
3838
develop = [
3939
"build",
4040
"bump-my-version",
41-
"check-manifest",
41+
"check-dist",
4242
"cibuildwheel",
43-
"codespell>=2.4,<2.5",
43+
"codespell",
4444
"hatch-js",
4545
"hatch-rs",
4646
"hatchling",
47-
"mdformat>=0.7.22,<1.1",
47+
"mdformat",
4848
"mdformat-tables>=1",
4949
"pytest",
5050
"pytest-cov",
51-
"ruff>=0.9,<0.15",
51+
"ruff",
5252
"twine",
5353
"ty",
5454
"uv",
@@ -97,21 +97,6 @@ filename = "rust/Cargo.toml"
9797
search = 'version = "{current_version}"'
9898
replace = 'version = "{new_version}"'
9999

100-
[tool.check-manifest]
101-
ignore = [
102-
".copier-answers.yaml",
103-
"Cargo.toml",
104-
"Cargo.lock",
105-
"js/pnpm-lock.yaml",
106-
"Makefile",
107-
".vscode/*",
108-
"python_template_rust/extension/**/*",
109-
"docs/**/*",
110-
"js/**/*",
111-
"rust/**/*",
112-
"src/**/*",
113-
]
114-
115100
[tool.cibuildwheel]
116101
build = "cp310-*"
117102
test-command = "pytest -vvv {project}/python_template_rust/tests"
@@ -164,16 +149,14 @@ path = "."
164149
[tool.hatch.build.targets.sdist]
165150
packages = [
166151
"python_template_rust",
167-
]
168-
include = [
169152
"js",
170153
"rust",
171-
"src",
172154
"Cargo.toml",
173155
"Cargo.lock",
174156
]
175157
exclude = [
176158
"js/node_modules",
159+
"rust/Makefile",
177160
"target",
178161
]
179162

@@ -184,7 +167,6 @@ packages = [
184167
exclude = [
185168
"js",
186169
"rust",
187-
"src",
188170
]
189171

190172
[tool.pytest.ini_options]
File renamed without changes.

0 commit comments

Comments
 (0)