mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +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 {} +
|
||||
|
||||
lint:
|
||||
tox -elint
|
||||
tox -e lint
|
||||
|
||||
lint-roll:
|
||||
isort --recursive <MODULE_NAME> tests
|
||||
@ -83,11 +83,11 @@ release: check-bump clean
|
||||
git config commit.gpgSign true
|
||||
bumpversion $(bump)
|
||||
git push upstream && git push upstream --tags
|
||||
python setup.py sdist bdist_wheel
|
||||
python -m build
|
||||
twine upload dist/*
|
||||
git config commit.gpgSign "$(CURRENT_SIGN_SETTING)"
|
||||
|
||||
|
||||
dist: clean
|
||||
python setup.py sdist bdist_wheel
|
||||
python -m build
|
||||
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