diff --git a/.copier-answers.yml b/.copier-answers.yml index 1db976f..2d0ae61 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 325b8b8 +_commit: 37ad578 _src_path: https://github.com/python-project-templates/base.git add_extension: python email: 3105306+timkpaine@users.noreply.github.com diff --git a/Makefile b/Makefile index 35d6275..4d76b13 100644 --- a/Makefile +++ b/Makefile @@ -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 ./python_template - ######### # TESTS # ######### diff --git a/pyproject.toml b/pyproject.toml index 946af81..f09352b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,7 @@ ignore = [ ".copier-answers.yml", "Makefile", "setup.py", + "docs/**/*", ] [tool.coverage.run] @@ -87,29 +88,10 @@ artifacts = [] src = "/" [tool.hatch.build.targets.sdist] -include = [ - "/python_template", - "LICENSE", - "README.md", -] -exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", -] +packages = ["python_template"] [tool.hatch.build.targets.wheel] -include = [ - "/python_template", -] -exclude = [ - ".copier-answers.yml", - "/.github", - "/.gitattributes", - "/.gitignore", - "/pyproject.toml", -] +packages = ["python_template"] [tool.hatch.build.targets.wheel.shared-data]