2021-06-03 11:03:17 +02:00
|
|
|
from setuptools import setup
|
|
|
|
import configparser
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
2022-04-26 12:10:04 +02:00
|
|
|
erc20_requirements = []
|
|
|
|
f = open('erc20_requirements.txt', 'r')
|
|
|
|
while True:
|
|
|
|
l = f.readline()
|
|
|
|
if l == '':
|
|
|
|
break
|
|
|
|
test_requirements.append(l.rstrip())
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
|
2021-06-03 11:03:17 +02:00
|
|
|
postgres_requirements = [
|
|
|
|
'psycopg2==2.8.6',
|
|
|
|
] + requirements
|
|
|
|
sqlite_requirements = [
|
|
|
|
] + requirements
|
|
|
|
setup(
|
|
|
|
install_requires=requirements,
|
|
|
|
tests_require=test_requirements,
|
|
|
|
extras_require={
|
2022-04-10 21:13:46 +02:00
|
|
|
#'postgres': postgres_requirements,
|
|
|
|
#'sqlite': sqlite_requirements,
|
2022-04-10 21:03:23 +02:00
|
|
|
'erc20': erc20_requirements,
|
2021-06-03 11:03:17 +02:00
|
|
|
}
|
|
|
|
)
|