Migrate from setup.cfg
to pyproject.toml
#107
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request implements the migration from
setup.cfg
topyproject.toml
in compliance with PEP 621. This change simplifies the project configuration by consolidating it into a single file and utilizes the enhanced capabilities provided by setuptools version 61.0 or higher.Additionally, I have added myself as a maintainer in the PyPI metadata to reflect my role in project maintenance.
Key Changes
setup.cfg
have been moved topyproject.toml
.pyproject.toml
to requiresetuptools>=61.0
. Removed the dependency onwheel
as it is no longer necessary with the new setuptools capabilities.pyproject.toml
underproject.optional-dependencies
, making it easier to set up a development environment.python -m build
and verifying the package withpython -m twine check
.setup-cfg-fmt
from the pre-commit configuration as it is no longer needed.pyproject.toml
to reflect my maintenance role on PyPI.Motivation
The migration to
pyproject.toml
aligns with modern Python packaging practices and simplifies project maintenance. It also enhances the setup process for new contributors by defining all dependencies and configurations in a single file.Testing
python -m build
to ensure the package builds correctly with the new configuration.pip install dist/*.whl
to verify installation processes.python -m twine check dist/*
to verify that the package's long description renders correctly on PyPI.Additional Notes
pyproject.toml
configurations.Files Modified
.pre-commit-config.yaml
: Removed hooks related tosetup-cfg-fmt
.python/README.md
: Updated documentation to reflect new build and check commands.python/pyproject.toml
: Major updates to include all necessary project configurations.python/setup.cfg
: File removed as all configurations are now inpyproject.toml
.Please review the changes and provide your feedback.