Skip to content

Commit 2959ffa

Browse files
committed
chore: swap setup.py for pyproject.toml
1 parent 4ff322d commit 2959ffa

File tree

3 files changed

+39
-67
lines changed

3 files changed

+39
-67
lines changed

.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
htmlcov
910
venv

pyproject.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
[build-system]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "PROJECT_NAME_URL"
7+
description = "Your project description here"
8+
dynamic = ["version"]
9+
readme = "README.md"
10+
requires-python = ">=3.10,<4"
11+
license = { text = "MIT" }
12+
authors = [{ name = "USERNAME" }]
13+
urls = { Homepage = "http://github.com/USERNAME/PROJECT_NAME_URL" }
14+
scripts = { PROJECT_NAME_URL = "project_name.my_module:main" }
15+
dependencies = [
16+
# Add your list of production dependencies here, eg:
17+
# "requests == 2.*",
18+
]
19+
optional-dependencies = { dev = [
20+
"bandit == 1.9.*",
21+
"black == 25.*",
22+
"build == 1.3.*",
23+
"flake8 == 7.*",
24+
"isort == 7.*",
25+
"mypy == 1.18.*",
26+
"pytest == 9.*",
27+
"pytest-cov == 7.*",
28+
] }
29+
30+
[tool.setuptools.dynamic]
31+
version = { attr = "project_name._version.__version__" }
32+
33+
[tool.setuptools.packages.find]
34+
exclude = ["examples", "test"]
35+
36+
[tool.setuptools.package-data]
37+
project_name = ["py.typed"]
38+
139
[tool.black]
240
line-length = 120
341

setup.py

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

0 commit comments

Comments
 (0)