diff --git a/js/Makefile.jinja b/js/Makefile.jinja index c85e63d..b72a537 100644 --- a/js/Makefile.jinja +++ b/js/Makefile.jinja @@ -55,7 +55,7 @@ format: fix ################ # Other Checks # ################ -.PHONY: check-manifest checks check annotate +.PHONY: check-manifest checks check check-manifest: ## check python sdist manifest with check-manifest check-manifest -v @@ -65,9 +65,6 @@ checks: check-manifest # alias check: checks -annotate: ## run python type annotation checks with mypy - python -m mypy ./{{module}} - ######### # TESTS # ######### diff --git a/js/pyproject.toml.jinja b/js/pyproject.toml.jinja index babf01c..e6c66eb 100644 --- a/js/pyproject.toml.jinja +++ b/js/pyproject.toml.jinja @@ -102,34 +102,14 @@ artifacts = [ src = "/" [tool.hatch.build.targets.sdist] -include = [ - "/{{module}}", - "/js", - "LICENSE", - "README.md", -] +packages = ["{{module}}", "js"] exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", - "/docs", + "/js/dist", "/js/node_modules", ] [tool.hatch.build.targets.wheel] -include = [ - "/{{module}}", -] -exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", - "/pyproject.toml", - "/docs", - "/js/node_modules", -] +packages = ["{{module}}"] [tool.hatch.build.hooks.jupyter-builder] build-function = "hatch_jupyter_builder.npm_builder" diff --git a/jupyter/Makefile.jinja b/jupyter/Makefile.jinja index ebf8390..c1bf985 100644 --- a/jupyter/Makefile.jinja +++ b/jupyter/Makefile.jinja @@ -55,7 +55,7 @@ format: fix ################ # Other Checks # ################ -.PHONY: check-manifest checks check annotate +.PHONY: check-manifest checks check check-manifest: ## check python sdist manifest with check-manifest check-manifest -v @@ -65,9 +65,6 @@ checks: check-manifest # alias check: checks -annotate: ## run python type annotation checks with mypy - python -m mypy ./{{module}} - ######### # TESTS # ######### diff --git a/jupyter/pyproject.toml.jinja b/jupyter/pyproject.toml.jinja index 5d1d607..7bdcfcc 100644 --- a/jupyter/pyproject.toml.jinja +++ b/jupyter/pyproject.toml.jinja @@ -105,34 +105,14 @@ artifacts = [ src = "/" [tool.hatch.build.targets.sdist] -include = [ - "/{{module}}", - "/js", - "LICENSE", - "README.md", -] +packages = ["{{module}}", "js"] exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", + "/js/dist", "/js/node_modules", - "/docs", ] [tool.hatch.build.targets.wheel] -include = [ - "/{{module}}", -] -exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", - "/pyproject.toml", - "/docs", - "/js/node_modules", -] +packages = ["{{module}}"] [tool.hatch.build.targets.wheel.shared-data] "{{module}}/labextension" = "share/jupyter/labextensions/{{module}}" diff --git a/python/Makefile.jinja b/python/Makefile.jinja index 677775a..89158e3 100644 --- a/python/Makefile.jinja +++ b/python/Makefile.jinja @@ -7,7 +7,7 @@ develop: ## install dependencies and build library python -m pip install -e .[develop] build: ## build the python library - python setup.py build build_ext --inplace + python -m build -n install: ## install library python -m pip install . @@ -34,7 +34,7 @@ format: fix ################ # Other Checks # ################ -.PHONY: check-manifest checks check annotate +.PHONY: check-manifest checks check check-manifest: ## check python sdist manifest with check-manifest check-manifest -v @@ -44,9 +44,6 @@ checks: check-manifest # Alias check: checks -annotate: ## run python type annotation checks with mypy - python -m mypy ./{{module}} - ######### # TESTS # ######### diff --git a/python/pyproject.toml.jinja b/python/pyproject.toml.jinja index 2b82853..4f5db08 100644 --- a/python/pyproject.toml.jinja +++ b/python/pyproject.toml.jinja @@ -88,31 +88,10 @@ artifacts = [] src = "/" [tool.hatch.build.targets.sdist] -include = [ - "/{{module}}", - "LICENSE", - "README.md", -] -exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", - "/docs", -] +packages = ["{{module}}"] [tool.hatch.build.targets.wheel] -include = [ - "/{{module}}", -] -exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", - "/pyproject.toml", - "/docs", -] +packages = ["{{module}}"] [tool.hatch.build.targets.wheel.shared-data] diff --git a/rust/Makefile.jinja b/rust/Makefile.jinja index 0d84b94..9bf48ef 100644 --- a/rust/Makefile.jinja +++ b/rust/Makefile.jinja @@ -65,7 +65,7 @@ format: fix ################ # Other Checks # ################ -.PHONY: check-manifest checks check annotate +.PHONY: check-manifest checks check check-manifest: ## check python sdist manifest with check-manifest check-manifest -v @@ -75,9 +75,6 @@ checks: check-manifest # alias check: checks -annotate: ## run python type annotation checks with mypy - python -m mypy ./{{module}} - ######### # TESTS # #########