diff --git a/Makefile b/Makefile index 899a80a..0cdf113 100644 --- a/Makefile +++ b/Makefile @@ -106,7 +106,7 @@ major: ## bump a major version .PHONY: dist dist-build dist-sdist dist-local-wheel publish dist-build: # build python dists - python -m build -w + python -m build -w -s dist-check: ## run python dist checker with twine python -m twine check dist/* diff --git a/pyproject.toml b/pyproject.toml index d3de83d..de67852 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,6 +115,25 @@ artifacts = [ [tool.hatch.build.sources] src = "/" +[tool.hatch.build.targets.sdist] +packages = [ + "verilator", + "hatch_plugin.py", + "src", +] +include = [ + "LICENSE", + "README.md", +] +exclude = [ + "/.github", + "/scripts", + "/src", + "/.gitmodules", + "/.gitignore", + "/pyproject.toml", +] + [tool.hatch.build.targets.wheel.hooks.custom] [tool.hatch.build.targets.wheel]