Skip to content

Commit d5bceb1

Browse files
committed
chore: swap setup.py for pyproject.toml
1 parent 88fb75f commit d5bceb1

3 files changed

Lines changed: 40 additions & 64 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __pycache__
44
.env
55
*.egg-info
66
*.lcov
7+
build
78
dist
89
homebrew-formulas
910
htmlcov

pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "homebrew-releaser"
7+
description = "Release scripts, binaries, and executables directly to Homebrew via GitHub Actions."
8+
dynamic = ["version"]
9+
readme = "README.md"
10+
requires-python = "==3.13.*"
11+
license = { text = "MIT" }
12+
authors = [{ name = "Justintime50" }]
13+
urls = { Homepage = "http://github.com/Justintime50/homebrew-releaser" }
14+
scripts = { homebrew-releaser = "homebrew_releaser.releaser:main" }
15+
dependencies = [
16+
"chevron == 0.14.*",
17+
"pretty-tables == 2.*",
18+
"requests == 2.*",
19+
"woodchips == 1.*",
20+
]
21+
optional-dependencies = { dev = [
22+
"bandit == 1.8.*",
23+
"black == 25.*",
24+
"flake8 == 7.*",
25+
"isort == 7.*",
26+
"mypy == 1.18.*",
27+
"pytest == 8.*",
28+
"pytest-cov == 7.*",
29+
] }
30+
31+
[tool.setuptools.dynamic]
32+
version = { attr = "homebrew_releaser._version.__version__" }
33+
34+
[tool.setuptools.packages.find]
35+
exclude = ["examples", "test"]
36+
37+
[tool.setuptools.package-data]
38+
homebrew_releaser = ["py.typed"]
39+
140
[tool.black]
241
line-length = 120
342

setup.py

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)