Skip to content

Commit

Permalink
Correct build for fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Sep 5, 2024
1 parent 40e0e43 commit c6804de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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/"
Expand Down
4 changes: 3 additions & 1 deletion src/icalendar/tests/test_create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6804de

Please sign in to comment.