Add tool to make package for smoke test

This commit is contained in:
Jason Carver 2019-11-14 12:47:21 -08:00
parent 56d3e50267
commit 444929d5fc
2 changed files with 21 additions and 3 deletions

View File

@ -27,7 +27,15 @@ protobufs: $(PY)
%_pb2.py: %.proto
protoc --python_out=. --mypy_out=. $<
.PHONY: clean
clean-proto:
rm -f $(PY) $(PYI)
clean:
rm -f $(PY) $(PYI)
find . -name '__pycache__' -exec rm -rf {} +
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
package: clean
python setup.py sdist bdist_wheel
python scripts/release/test_package.py

View File

@ -18,7 +18,14 @@ extras_require = {
"flake8>=3.7.7,<4.0.0",
"flake8-bugbear",
],
"dev": ["tox>=3.13.2,<4.0.0", "docformatter"],
"dev": [
"bumpversion>=0.5.3,<1",
"docformatter",
"setuptools>=36.2.0",
"tox>=3.13.2,<4.0.0",
"twine",
"wheel",
],
}
extras_require["dev"] = (
@ -30,6 +37,9 @@ setuptools.setup(
name="libp2p",
description="libp2p implementation written in python",
version="0.1.2",
maintainer="The Ethereum Foundation",
maintainer_email="snakecharmers@ethereum.org",
url="https://github.com/ethereum/py-libp2p",
license="MIT/APACHE2.0",
platforms=["unix", "linux", "osx"],
classifiers=classifiers,