Skip to content

Commit ca0accb

Browse files
committed
Move rustjswas, js, and jupyter to check-dist
1 parent 16b43c2 commit ca0accb

8 files changed

Lines changed: 23 additions & 68 deletions

File tree

examples/rustjswasm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ add_wiki: true
44
add_extension: rustjswasm
55
email: 3105306+timkpaine@users.noreply.github.com
66
github: python-project-templates
7-
project_description: A Rust-Python project template
7+
project_description: A Rust-JavaScript-Python project template
88
project_name: python template rustjswasm
99
python_version_primary: '3.11'
1010
team: Python Project Template Authors

js/Makefile.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ format: fix
7373
################
7474
# Other Checks #
7575
################
76-
.PHONY: check-manifest check-dist checks check
77-
78-
check-manifest: ## check python sdist manifest with check-manifest
79-
check-manifest -v
76+
.PHONY: check-dist check-types checks check
8077

8178
check-dist: ## check python sdist and wheel with check-dist
8279
check-dist -v
8380

84-
checks: check-manifest
81+
check-types: ## check python types with ty
82+
ty check --python $$(which python)
83+
84+
checks: check-dist
8585

8686
# alias
8787
check: checks

js/pyproject.toml.jinja

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ develop = [
3737
"build",
3838
"bump-my-version",
3939
"check-dist",
40-
"check-manifest",
4140
"codespell",
4241
"hatch-js",
4342
"hatchling",
@@ -79,17 +78,6 @@ filename = "js/package.json"
7978
search = '"version": "{current_version}"'
8079
replace = '"version": "{new_version}"'
8180

82-
[tool.check-manifest]
83-
ignore = [
84-
".copier-answers.yaml",
85-
"js/pnpm-lock.yaml",
86-
"Makefile",
87-
".vscode/*",
88-
"{{module}}/extension/**/*",
89-
"docs/**/*",
90-
"js/dist/**/*",
91-
]
92-
9381
[tool.coverage.run]
9482
branch = true
9583
omit = [
@@ -118,16 +106,16 @@ packages = [
118106
"js",
119107
]
120108
exclude = [
121-
"/js/dist",
122-
"/js/node_modules",
109+
"js/dist",
110+
"js/node_modules",
123111
]
124112

125113
[tool.hatch.build.targets.wheel]
126114
packages = [
127115
"{{module}}",
128116
]
129117
exclude = [
130-
"/js",
118+
"js",
131119
]
132120

133121
[tool.hatch.build.hooks.hatch-js]

jupyter/Makefile.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ format: fix
7373
################
7474
# Other Checks #
7575
################
76-
.PHONY: check-manifest check-dist checks check
77-
78-
check-manifest: ## check python sdist manifest with check-manifest
79-
check-manifest -v
76+
.PHONY: check-dist check-types checks check
8077

8178
check-dist: ## check python sdist and wheel with check-dist
8279
check-dist -v
8380

84-
checks: check-manifest
81+
check-types: ## check python types with ty
82+
ty check --python $$(which python)
83+
84+
checks: check-dist
8585

8686
# alias
8787
check: checks

jupyter/pyproject.toml.jinja

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ develop = [
4040
"build",
4141
"bump-my-version",
4242
"check-dist",
43-
"check-manifest",
4443
"codespell",
4544
"hatch-js",
4645
"hatchling",
@@ -83,20 +82,6 @@ filename = "js/package.json"
8382
search = '"version": "{current_version}"'
8483
replace = '"version": "{new_version}"'
8584
86-
[tool.check-manifest]
87-
ignore = [
88-
".copier-answers.yaml",
89-
"js/pnpm-lock.yaml",
90-
"Makefile",
91-
".vscode/*",
92-
"{{module}}/extension/**",
93-
"{{module}}/labextension/**",
94-
"{{module}}/nbextension/**",
95-
"docs/**/*",
96-
"js/dist/**/*",
97-
"js/lib/*",
98-
]
99-
10085
[tool.coverage.run]
10186
branch = true
10287
omit = [
@@ -126,16 +111,16 @@ packages = [
126111
"js",
127112
]
128113
exclude = [
129-
"/js/dist",
130-
"/js/node_modules",
114+
"js/dist",
115+
"js/node_modules",
131116
]
132117
133118
[tool.hatch.build.targets.wheel]
134119
packages = [
135120
"{{module}}",
136121
]
137122
exclude = [
138-
"/js"
123+
"js"
139124
]
140125
141126
[tool.hatch.build.targets.wheel.shared-data]

rust/pyproject.toml.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ develop = [
3838
"build",
3939
"bump-my-version",
4040
"check-dist",
41-
"check-manifest",
4241
"cibuildwheel",
4342
"codespell",
4443
"hatch-rs",

rustjswasm/Makefile.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ format: fix
8888
################
8989
# Other Checks #
9090
################
91-
.PHONY: check-manifest check-dist checks check
92-
93-
check-manifest: ## check python sdist manifest with check-manifest
94-
check-manifest -v
91+
.PHONY: check-dist check-types checks check
9592

9693
check-dist: ## check python sdist and wheel with check-dist
9794
check-dist -v
9895

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

101101
# alias
102102
check: checks

rustjswasm/pyproject.toml.jinja

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ develop = [
3939
"build",
4040
"bump-my-version",
4141
"check-dist",
42-
"check-manifest",
4342
"cibuildwheel",
4443
"codespell",
4544
"hatch-js",
@@ -98,21 +97,6 @@ filename = "rust/Cargo.toml"
9897
search = 'version = "{current_version}"'
9998
replace = 'version = "{new_version}"'
10099

101-
[tool.check-manifest]
102-
ignore = [
103-
".copier-answers.yaml",
104-
"Cargo.toml",
105-
"Cargo.lock",
106-
"js/pnpm-lock.yaml",
107-
"Makefile",
108-
".vscode/*",
109-
"{{module}}/extension/**/*",
110-
"docs/**/*",
111-
"js/**/*",
112-
"rust/**/*",
113-
"src/**/*",
114-
]
115-
116100
[tool.cibuildwheel]
117101
build = "cp310-*"
118102
test-command = "pytest -vvv {project}/{{module}}/tests"
@@ -165,8 +149,6 @@ path = "."
165149
[tool.hatch.build.targets.sdist]
166150
packages = [
167151
"{{module}}",
168-
]
169-
include = [
170152
"js",
171153
"rust",
172154
"src",
@@ -175,6 +157,7 @@ include = [
175157
]
176158
exclude = [
177159
"js/node_modules",
160+
"rust/Makefile",
178161
"target",
179162
]
180163

0 commit comments

Comments
 (0)