Skip to content

Commit 03b4585

Browse files
kenibrewerclaude
andcommitted
🔧 fix: configure modern Python packaging with hatchling
- Add proper build-system configuration with hatchling backend - Configure explicit file selection for wheel packaging - Remove deprecated setuptools configuration - Ensures proper package building in CI environment 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f857028 commit 03b4585

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/lib/pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "github-approval-automation"
37
version = "1.0.0"
@@ -8,17 +12,17 @@ dependencies = [
812
"click>=8.0.0",
913
]
1014

11-
[tool.setuptools]
12-
py-modules = ["approval"]
13-
packages = ["scripts"]
14-
1515
[project.optional-dependencies]
1616
test = [
1717
"pytest>=7.4.4",
1818
"pytest-cov>=4.1.0",
1919
"pytest-asyncio>=0.21.1",
2020
]
2121

22+
[tool.hatch.build.targets.wheel]
23+
packages = ["scripts"]
24+
py-modules = ["approval"]
25+
2226
[project.scripts]
2327
sig-approval = "scripts.sig_approval:main"
2428
rfc-approval = "scripts.rfc_approval:main"

0 commit comments

Comments
 (0)