Factor out sql requirements

This commit is contained in:
nolash 2021-04-13 15:28:52 +02:00
parent 7f0936b3e4
commit c738563d89
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 15 additions and 3 deletions

View File

@ -1 +1 @@
include requirements.txt LICENSE.txt sql/**/* include *requirements.txt LICENSE.txt sql/**/*

View File

@ -1,5 +1,3 @@
psycopg2==2.8.6
SQLAlchemy==1.3.20
confini~=0.3.6rc3 confini~=0.3.6rc3
semver==2.13.0 semver==2.13.0
hexathon~=0.0.1a7 hexathon~=0.0.1a7

View File

@ -2,6 +2,7 @@ from setuptools import setup
import configparser import configparser
import os import os
requirements = [] requirements = []
f = open('requirements.txt', 'r') f = open('requirements.txt', 'r')
while True: while True:
@ -11,6 +12,19 @@ while True:
requirements.append(l.rstrip()) requirements.append(l.rstrip())
f.close() f.close()
sql_requirements = []
f = open('sql_requirements.txt', 'r')
while True:
l = f.readline()
if l == '':
break
sql_requirements.append(l.rstrip())
f.close()
setup( setup(
install_requires=requirements, install_requires=requirements,
extras_require={
'sql': sql_requirements,
}
) )