From e7c57e38924a4faa94aa623dbb9e947ff1bab0ae Mon Sep 17 00:00:00 2001 From: Victor Kuznetsov Date: Sun, 31 May 2026 12:57:46 -0700 Subject: [PATCH] =?UTF-8?q?chore(release):=20v0.8.1=20=E2=80=94=20exclude?= =?UTF-8?q?=20data/=20from=20sdist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 0.8.0 PyPI publish uploaded the wheel but the sdist was rejected (400 File too large): hatchling's default sdist bundled the committed data/ test corpora (synthid_corpus images + the new visible-mark captures), pushing it past PyPI's per-project file-size limit. Add a sdist target that excludes /data, dropping it ~85 MB -> 9.8 MB. The wheel already ships only src/ and is unaffected. Co-Authored-By: Claude Opus 4.8 --- pyproject.toml | 9 ++++++++- src/remove_ai_watermarks/__init__.py | 2 +- uv.lock | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b446f71..bc56280 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "remove-ai-watermarks" -version = "0.8.0" +version = "0.8.1" description = "Remove visible and invisible AI watermarks from images (Gemini / Nano Banana, ChatGPT, Stable Diffusion)" readme = "README.md" requires-python = ">=3.10" @@ -118,6 +118,13 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/remove_ai_watermarks"] +[tool.hatch.build.targets.sdist] +# Keep the source distribution small: ship the package + metadata, not the +# committed test corpora / calibration captures under data/ (tens of MB -- +# synthid_corpus images + the visible-mark captures), which pushed the 0.8.0 +# sdist past PyPI's per-project file-size limit (the wheel ships only src/). +exclude = ["/data"] + [tool.pytest.ini_options] testpaths = ["tests"] pythonpath = ["src"] diff --git a/src/remove_ai_watermarks/__init__.py b/src/remove_ai_watermarks/__init__.py index ad5db47..0673b90 100644 --- a/src/remove_ai_watermarks/__init__.py +++ b/src/remove_ai_watermarks/__init__.py @@ -1,3 +1,3 @@ """Remove-AI-Watermarks: Unified tool for removing visible and invisible AI watermarks.""" -__version__ = "0.8.0" +__version__ = "0.8.1" diff --git a/uv.lock b/uv.lock index a87a3dd..f70ebd7 100644 --- a/uv.lock +++ b/uv.lock @@ -2865,7 +2865,7 @@ wheels = [ [[package]] name = "remove-ai-watermarks" -version = "0.8.0" +version = "0.8.1" source = { editable = "." } dependencies = [ { name = "click" },