chainsyncer

Blockchain syncer driver
Log | Files | Refs | LICENSE

commit c738563d89c5b79e8f0d44133a81723b11f7afc9
parent 7f0936b3e4c40ec8b64ca073176ef8dd2fbeb559
Author: nolash <dev@holbrook.no>
Date:   Tue, 13 Apr 2021 15:28:52 +0200

Factor out sql requirements

Diffstat:
MMANIFEST.in | 2+-
Mrequirements.txt | 2--
Msetup.py | 14++++++++++++++
3 files changed, 15 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 @@ -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, + } )