diff --git a/MANIFEST.in b/MANIFEST.in index ffe1ce6..54f05fe 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1 @@ -include requirements.txt LICENSE.txt sql/**/* +include *requirements.txt LICENSE.txt sql/**/* diff --git a/requirements.txt b/requirements.txt index 52f23b7..248b898 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,3 @@ -psycopg2==2.8.6 -SQLAlchemy==1.3.20 confini~=0.3.6rc3 semver==2.13.0 hexathon~=0.0.1a7 diff --git a/setup.py b/setup.py index 54e70e7..464cb73 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ from setuptools import setup import configparser import os + requirements = [] f = open('requirements.txt', 'r') while True: @@ -11,6 +12,19 @@ while True: requirements.append(l.rstrip()) 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( install_requires=requirements, + extras_require={ + 'sql': sql_requirements, + } )