2021-04-02 10:31:50 +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()
|
|
|
|
|
2022-02-09 10:56:02 +01:00
|
|
|
postgres_requirements = ['psycopg2==2.8.6'] + requirements
|
|
|
|
sqlite_requirements = [] + requirements
|
2021-04-02 10:31:50 +02:00
|
|
|
|
|
|
|
setup(
|
|
|
|
install_requires=requirements,
|
|
|
|
extras_require={
|
|
|
|
'postgres': postgres_requirements,
|
|
|
|
'sqlite': sqlite_requirements,
|
|
|
|
}
|
|
|
|
)
|