Factor out sql requirements
This commit is contained in:
parent
7f0936b3e4
commit
c738563d89
@ -1 +1 @@
|
|||||||
include requirements.txt LICENSE.txt sql/**/*
|
include *requirements.txt LICENSE.txt sql/**/*
|
||||||
|
@ -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
|
||||||
|
14
setup.py
14
setup.py
@ -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,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user