From 717156b0134b772cebe19707a17b9b3b572d42dd Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 24 Mar 2021 07:05:30 +0100 Subject: [PATCH] Use requirements file for deps --- python/requirements.txt | 5 +++-- python/setup.cfg | 7 ++----- python/setup.py | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/python/requirements.txt b/python/requirements.txt index 5122abb..19718a3 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,2 +1,3 @@ -web3==5.12.2 -chainlib~=0.0.1a15 +confini~=0.3.6rc3 +crypto-dev-signer~=0.4.14a5 +chainlib~=0.0.1a28 diff --git a/python/setup.cfg b/python/setup.cfg index b8bb35b..ed73643 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = giftable-erc20-token -version = 0.0.8a1 +version = 0.0.8a2 description = Simple ERC20 contract with deployment script that lets any address mint and gift itself tokens. author = Louis Holbrook author_email = dev@holbrook.no @@ -26,10 +26,7 @@ python_requires = >= 3.6 packages = giftable_erc20_token giftable_erc20_token.runnable -install_requires = - web3==5.12.2 - crypto-dev-signer~=0.4.13rc2 - chainlib~=0.0.1a15 + giftable_erc20_token.data [options.package_data] * = diff --git a/python/setup.py b/python/setup.py index 2641a95..8203876 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,5 +1,24 @@ from setuptools import setup +requirements = [] +f = open('requirements.txt', 'r') +while True: + l = f.readline() + if l == '': + break + requirements.append(l.rstrip()) +f.close() + +test_requirements = [] +f = open('test_requirements.txt', 'r') +while True: + l = f.readline() + if l == '': + break + test_requirements.append(l.rstrip()) +f.close() + + setup( package_data={ '': [ @@ -8,4 +27,6 @@ setup( ], }, include_package_data=True, + install_requires=requirements, + tests_require=test_requirements, )