2021-02-11 10:14:28 +01:00
|
|
|
from setuptools import setup
|
|
|
|
import configparser
|
|
|
|
import os
|
|
|
|
|
2021-04-13 15:28:52 +02:00
|
|
|
|
2021-02-11 10:14:28 +01:00
|
|
|
requirements = []
|
|
|
|
f = open('requirements.txt', 'r')
|
|
|
|
while True:
|
|
|
|
l = f.readline()
|
|
|
|
if l == '':
|
|
|
|
break
|
|
|
|
requirements.append(l.rstrip())
|
|
|
|
f.close()
|
|
|
|
|
2021-04-13 15:28:52 +02:00
|
|
|
sql_requirements = []
|
|
|
|
f = open('sql_requirements.txt', 'r')
|
|
|
|
while True:
|
|
|
|
l = f.readline()
|
|
|
|
if l == '':
|
|
|
|
break
|
|
|
|
sql_requirements.append(l.rstrip())
|
|
|
|
f.close()
|
|
|
|
|
|
|
|
|
2021-02-11 10:14:28 +01:00
|
|
|
setup(
|
|
|
|
install_requires=requirements,
|
2021-04-13 15:28:52 +02:00
|
|
|
extras_require={
|
|
|
|
'sql': sql_requirements,
|
|
|
|
}
|
2021-02-11 10:14:28 +01:00
|
|
|
)
|