Skip to content

Commit 38f176c

Browse files
aeoessclaude
andcommitted
fix(packaging): bump __version__ to 2.4.0a2 + explicit hatch sdist target
Two related cleanups to packaging metadata: 1. src/agent_passport/__init__.py declared __version__ = "2.4.0a1" while pyproject.toml + dist/ artifacts are 2.4.0a2. Module constant now matches. 2. Add [tool.hatch.build.targets.sdist] with explicit include/exclude lists. Hatch's default sweep would otherwise pull in tests/, papers/, drafts/, .github/, etc. — none of which belong on PyPI. This is the hatch-native equivalent of a setuptools MANIFEST.in. 518 tests still pass. Surfaced by AUDIT-2026-05-12-fullsweep.md A8 + B5. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 50fd804 commit 38f176c

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,29 @@ Documentation = "https://aeoess.com/llms-full.txt"
3838
[tool.hatch.build.targets.wheel]
3939
packages = ["src/agent_passport"]
4040

41+
# Explicit sdist contents. Hatch's default sdist sweep would otherwise pull
42+
# in tests/, papers/, drafts/, working-group dossiers, and other repo-local
43+
# material that has no business shipping to PyPI consumers. This is the
44+
# hatch-native equivalent of a setuptools MANIFEST.in — explicit beats
45+
# implicit at audit time.
46+
[tool.hatch.build.targets.sdist]
47+
include = [
48+
"src/agent_passport/**",
49+
"README.md",
50+
"LICENSE",
51+
"NOTICE",
52+
"pyproject.toml",
53+
"CHANGELOG.md",
54+
]
55+
exclude = [
56+
"tests/**",
57+
"papers/**",
58+
"drafts/**",
59+
"docs/drafts/**",
60+
".github/**",
61+
"*.log",
62+
"*.tgz",
63+
]
64+
4165
[tool.pytest.ini_options]
4266
testpaths = ["tests"]

src/agent_passport/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Docs: https://aeoess.com/llms-full.txt
2929
"""
3030

31-
__version__ = "2.4.0a1"
31+
__version__ = "2.4.0a2"
3232

3333
# Crypto
3434
from .crypto import generate_key_pair, sign, verify, public_key_from_private

0 commit comments

Comments
 (0)