From 444929d5fc47599a8883ab925655c9ec58e070a1 Mon Sep 17 00:00:00 2001 From: Jason Carver Date: Thu, 14 Nov 2019 12:47:21 -0800 Subject: [PATCH] Add tool to make package for smoke test --- Makefile | 12 ++++++++++-- setup.py | 12 +++++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1d386387..8f1d1bfc 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/setup.py b/setup.py index 3a430c37..3229a49e 100644 --- a/setup.py +++ b/setup.py @@ -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,