Repository navigation
Replace setup.py with declarative pyproject.toml packaging - #76
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
A complete migration to
pyproject.toml, offered as an alternative to the minimal build-system declaration in #75. This PR targets master independently; it does not require #75 to merge.setup.pyand move package metadata and the single-module declaration topyproject.toml.hsluv.__version__as the version source via setuptools' dynamic attribute support, rather than importing the module from a setup script.MITand explicitly includeLICENSE.txt. Require setuptools >=77.0.3 for modern license metadata support; the supported Python minimum remains 3.11.setup_requires,test_suite, andsetup.cfg's Python 2/3 universal-wheel setting. Wheels are now correctly taggedpy3-none-any.python -m unittest discover -v.python -m build, install the extracted source distribution, and install and test the wheel from outside the source tree.Validation
hsluv.__version__(5.0.4).python -m twine check dist/*: both artifacts pass.git diff --check: passes.Compatibility
Runtime code and the Python >=3.11 requirement are unchanged. Building from source requires a PEP 517-capable frontend and setuptools >=77.0.3 (normally supplied by pip's isolated build environment). Direct
python setup.py ...commands are no longer available; usepython -m build,python -m pip install ., or the documented unittest command instead. Installing published wheels does not require setuptools.