migrate setup.py to pyproject.toml #61
Open
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.
Overview
Installing
json2html
on pip 25.x raises the following warning:This pull request provides pyproject.toml support.
What has changed?
setup.py
,setup.cfg
andMANIFEST.in
have been removed and swapped to usepyproject.toml
with a setuptools build backend.Will this change functionality?
Yes, in the following ways
pyproject.toml
based builds do not support python2, so this will have to be dropped.The
requires-python >= 3.6
is arbitrary, this can be adjusted if you believe older versions still need support.How do I build and deploy this now?
Using build and twine
pip install build twine
python -m build .
Test
coverage run --source=json2html setup.py test
?Upload the package
twine upload dist/*
Did you test this?
Yes, in the following manner:
python -m build .
pip install ./dist/progress-1.3.1-py3-none-any.whl
python run_tests.py
Closes #60