diff --git a/pyproject.toml b/pyproject.toml index 02e5251..b2d1169 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ # We use the pyproject.toml package specification. # See https://packaging.python.org/en/latest/guides/section-build-and-publish/ # See https://github.com/collective/icalendar/issues/686 -# See https://packaging.python.org/en/latest/specifications/pyproject-toml/#license +# See https://packaging.python.org/en/latest/specifications/pyproject-toml/ # [build-system] @@ -86,6 +86,17 @@ test = [ [project.scripts] icalendar = "icalendar.cli:main" +[tool.hatch.build] +exclude = [ + "/.*", + "/*.*", + "/src/icalendar/fuzzing", + "/docs", + "/dist", + "/build", + "/htmlcov", +] + [tool.hatch.metadata.hooks.vcs.urls] # This is a dynamic generation of [project.urls] Homepage = "https://icalendar.readthedocs.io/" diff --git a/src/icalendar/tests/test_create_release.sh b/src/icalendar/tests/test_create_release.sh index 3f7f66a..447694d 100755 --- a/src/icalendar/tests/test_create_release.sh +++ b/src/icalendar/tests/test_create_release.sh @@ -7,7 +7,9 @@ set -e cd "`dirname \"$0\"`" cd "../../.." -python3 setup.py sdist +rm -rf dist +pip3 install build +python3 -m build archive=`echo dist/icalendar-*.tar.gz` if ! [ -f "$archive" ]; then