mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 23:20:55 +00:00
Do not invoke `setup.py` directly
- It is not recommended to invoke ``setup.py`` directly, instead opting for ``python -m build`` for the commands in this commit (see: https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html) - Add newsfragment for #70
This commit is contained in:
6
Makefile
6
Makefile
@ -28,7 +28,7 @@ clean-pyc:
|
|||||||
find . -name '__pycache__' -exec rm -rf {} +
|
find . -name '__pycache__' -exec rm -rf {} +
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
tox -elint
|
tox -e lint
|
||||||
|
|
||||||
lint-roll:
|
lint-roll:
|
||||||
isort --recursive <MODULE_NAME> tests
|
isort --recursive <MODULE_NAME> tests
|
||||||
@ -83,11 +83,11 @@ release: check-bump clean
|
|||||||
git config commit.gpgSign true
|
git config commit.gpgSign true
|
||||||
bumpversion $(bump)
|
bumpversion $(bump)
|
||||||
git push upstream && git push upstream --tags
|
git push upstream && git push upstream --tags
|
||||||
python setup.py sdist bdist_wheel
|
python -m build
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
git config commit.gpgSign "$(CURRENT_SIGN_SETTING)"
|
git config commit.gpgSign "$(CURRENT_SIGN_SETTING)"
|
||||||
|
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
python setup.py sdist bdist_wheel
|
python -m build
|
||||||
ls -l dist
|
ls -l dist
|
||||||
|
|||||||
1
newsfragments/70.internal.rst
Normal file
1
newsfragments/70.internal.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Do not invoke ``setup.py`` directly. Minor cleanup and refactors in newsfragment ``README.md`` and newsfragment validation. Minot cleanup in ``Makefile``.
|
||||||
Reference in New Issue
Block a user