Use requirements file for deps

This commit is contained in:
nolash 2021-03-24 07:05:30 +01:00
parent 861a9b032a
commit 717156b013
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 26 additions and 7 deletions

View File

@ -1,2 +1,3 @@
web3==5.12.2 confini~=0.3.6rc3
chainlib~=0.0.1a15 crypto-dev-signer~=0.4.14a5
chainlib~=0.0.1a28

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = giftable-erc20-token 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. description = Simple ERC20 contract with deployment script that lets any address mint and gift itself tokens.
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no
@ -26,10 +26,7 @@ python_requires = >= 3.6
packages = packages =
giftable_erc20_token giftable_erc20_token
giftable_erc20_token.runnable giftable_erc20_token.runnable
install_requires = giftable_erc20_token.data
web3==5.12.2
crypto-dev-signer~=0.4.13rc2
chainlib~=0.0.1a15
[options.package_data] [options.package_data]
* = * =

View File

@ -1,5 +1,24 @@
from setuptools import setup 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( setup(
package_data={ package_data={
'': [ '': [
@ -8,4 +27,6 @@ setup(
], ],
}, },
include_package_data=True, include_package_data=True,
install_requires=requirements,
tests_require=test_requirements,
) )