Skip to content

Commit cf03f48

Browse files
Refactor pyproject.toml to use standard PEP 621 and setuptools
Migrated the package configuration to be fully compliant with modern Python packaging standards (PEP 621, PEP 517). - Replaced the Poetry-specific dependency management (`[tool.poetry]`) with the standard `[project].dependencies` and `[project.optional-dependencies]` tables. - Switched the build system from `poetry.core.masonry.api` to the standard `setuptools.build_meta`. - Ensured the `src` layout is correctly configured for package discovery using `[tool.setuptools.packages.find]`. - Verified that the package builds, installs, and tests correctly after the changes.
1 parent 3d96672 commit cf03f48

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

pyproject.toml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,26 @@ Homepage = "https://github.com/[USERNAME]/[REPO_NAME]"
2525
Repository = "https://github.com/[USERNAME]/[REPO_NAME]"
2626
Documentation = "https://github.com/[USERNAME]/[REPO_NAME]"
2727

28-
[tool.poetry.dependencies]
29-
python = "^3.10"
30-
31-
[tool.poetry.group.dev.dependencies]
32-
pytest = "^8.4.2"
33-
ruff = "^0.14.2"
34-
mypy = "^1.18.2"
35-
pre-commit = "^4.3.0"
36-
pytest-cov = "^5.0.0"
37-
mkdocs = "^1.6.1"
38-
mkdocs-material = "^9.6.22"
28+
[project.dependencies]
29+
python = ">=3.10"
30+
31+
[project.optional-dependencies]
32+
dev = [
33+
"pytest>=8.4.2",
34+
"ruff>=0.14.2",
35+
"mypy>=1.18.2",
36+
"pre-commit>=4.3.0",
37+
"pytest-cov>=5.0.0",
38+
"mkdocs>=1.6.1",
39+
"mkdocs-material>=9.6.22",
40+
]
3941

4042
[build-system]
41-
requires = ["poetry-core"]
42-
build-backend = "poetry.core.masonry.api"
43+
requires = ["setuptools>=61.0"]
44+
build-backend = "setuptools.build_meta"
45+
46+
[tool.setuptools.packages.find]
47+
where = ["src"]
4348

4449
[tool.pytest.ini_options]
4550
addopts = "--cov=src --cov-report=xml"

0 commit comments

Comments
 (0)