Skip to content

Commit be56f5b

Browse files
committed
update project metadata
- Use uv build system - static version - list dependencies - list dependency groups with developer dependencies
1 parent 8ce63e8 commit be56f5b

File tree

1 file changed

+31
-12
lines changed

1 file changed

+31
-12
lines changed

pyproject.toml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,58 @@
11
[build-system]
2-
requires = [ "setuptools>=64" ]
3-
build-backend = "setuptools.build_meta"
2+
requires = ["uv_build>=0.8.7"]
3+
build-backend = "uv_build"
44

55
[project]
66
name = "module-name"
77
requires-python = ">=3.9"
8-
version = "0.1.0"
8+
version = "2.3.0"
99
description = "Module Description"
1010
readme = "README.md"
11-
license = "MIT"
11+
license = { file = "LICENSE" }
1212
authors = [
1313
{ email = "yourname@email.invalid", name = "[YOUR NAME]" },
1414
]
1515
maintainers = []
1616
keywords = []
1717
classifiers = [
18+
"License :: OSI Approved :: MIT License",
1819
"Programming Language :: Python :: 3",
1920
"Programming Language :: Python :: 3 :: Only",
2021
"Programming Language :: Python :: Implementation :: CPython",
2122
]
22-
dynamic = [ "dependencies", "optional-dependencies" ]
23-
24-
[tool.setuptools.dynamic.dependencies]
25-
file = [ "requirements/requirements.txt" ]
23+
dependencies = [
24+
"requests",
25+
]
2626

27-
[tool.setuptools.dynamic.optional-dependencies]
28-
dev = { file = [ "requirements/requirements-dev.txt" ] }
29-
test = { file = [ "requirements/requirements-test.txt" ] }
27+
[dependency-groups]
28+
lint = [
29+
"black",
30+
"isort",
31+
"flake8",
32+
"flake8-builtins",
33+
"flake8-pep585",
34+
"mypy",
35+
"types-requests",
36+
]
37+
tool = [
38+
"pre-commit",
39+
"nox",
40+
]
41+
test = [
42+
"pytest",
43+
"pytest-randomly",
44+
"coverage",
45+
]
3046

3147
[project.urls]
3248
homepage = "https://github.com/[ORG NAME]/[REPO NAME]"
3349

3450
# [project.scripts]
3551
# python-src-example = "module_name.sample:main"
3652

53+
[tool.black]
54+
line-length = 100
55+
3756
[tool.setuptools.package-data]
3857
"module_name" = ["py.typed"]
3958

@@ -58,7 +77,7 @@ source = ["tests"]
5877
source_pkgs = ["module_name"]
5978

6079
[tool.coverage.paths]
61-
source = ["src/", "*/site-packages"]
80+
source = ["src/", "*/site-packages", "*/src"]
6281
test = ["tests/", "*/tests"]
6382

6483
[tool.coverage.report]

0 commit comments

Comments
 (0)