-
Notifications
You must be signed in to change notification settings - Fork 47
chore: consolidate package metadata into pyproject.toml (PEP 621) #471
Copy link
Copy link
Open
Labels
Description
Context
Raised as a follow-up from PR #468.
Currently, package metadata (version, dependencies, etc.) is duplicated across setup.py and pyproject.toml, which led to the inconsistency fixed in PR #468 where pydantic>=2.0 was missing from setup.py.
Proposed Change
Consolidate all package metadata into pyproject.toml as the single source of truth, following modern Python packaging standards (PEP 621).
Steps:
- Move package discovery logic into
pyproject.tomlvia a[tool.setuptools.packages.find]section - Simplify
setup.pyto justfrom setuptools import setup; setup() - Update
build-system.requiresinpyproject.tomltosetuptools>=61.0.0
Example configuration:
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
[tool.setuptools.packages.find]
include = ["Adyen*"]
exclude = ["tests", "tests.*"]Benefit
Prevents metadata from becoming out of sync in the future.
Reactions are currently unavailable