diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcc6d692..23326f8c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,6 +52,7 @@ jobs: if unzip -l "$WHEEL" | grep -q "ably/sync/"; then echo "✅ Found ably/sync/ in wheel" else + unzip -l "$WHEEL" echo "❌ ably/sync/ not found in wheel" exit 1 fi @@ -62,6 +63,7 @@ jobs: if tar -tzf "$TARBALL" | grep -q "ably/sync/"; then echo "✅ Found ably/sync/ in tarball" else + tar -tzf "$TARBALL" echo "❌ ably/sync/ not found in tarball" exit 1 fi diff --git a/.gitignore b/.gitignore index 90697255..75ec0f34 100644 --- a/.gitignore +++ b/.gitignore @@ -55,4 +55,5 @@ ably/types/options.py.orig test/ably/restsetup.py.orig .idea/**/* -**/ably/sync/*** +ably/sync/** +test/ably/sync/** diff --git a/pyproject.toml b/pyproject.toml index 9f265656..a2d32fe0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,25 @@ Repository = "https://github.com/ably/ably-python" requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.build.targets.sdist] +ignore-vcs = true +include = [ + "/ably", + "/COPYRIGHT", + "/README.md", + "/LICENSE", + "/LONG_DESCRIPTION.rst", + "/images", + "/setup.cfg", + "/pyproject.toml" +] +exclude = [ + "**/*.pyc", + "**/__pycache__" +] + [tool.hatch.build.targets.wheel] +ignore-vcs = true packages = ["ably"] [tool.pytest.ini_options]