From 2a73a9ae3f6a6a3ac30fea01174ecdc3cfa97694 Mon Sep 17 00:00:00 2001 From: Tao Feng Date: Tue, 6 Aug 2019 15:35:25 -0700 Subject: [PATCH] Fix setup script for databuilder repo (#127) --- setup.py | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/setup.py b/setup.py index 26529e434..5ce16b3bd 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,14 @@ +import os from setuptools import setup, find_packages -__version__ = '1.4.0' +__version__ = '1.4.1' +requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt') +with open(requirements_path) as requirements_file: + requirements = requirements_file.readlines() + setup( name='amundsen-databuilder', version=__version__, @@ -13,30 +18,7 @@ maintainer_email='dev@lyft.com', packages=find_packages(exclude=['tests*']), dependency_links=[], - install_requires=[ - # Packages in here should rarely be pinned. This is because these - # packages (at the specified version) are required for project - # consuming this library. By pinning to a specific version you are the - # number of projects that can consume this or forcing them to - # upgrade/downgrade any dependencies pinned here in their project. - # - # Generally packages listed here are pinned to a major version range. - # - # e.g. - # Python FooBar package for foobaring - # pyfoobar>=1.0, <2.0 - # - # This will allow for any consuming projects to use this library as - # long as they have a version of pyfoobar equal to or greater than 1.x - # and less than 2.x installed. - 'pyhocon==0.3.42', - 'pytest==3.6.0', - 'six', - 'neo4j-driver==1.7.2', - 'antlr4-python2-runtime==4.7.1', - 'statsd==3.2.1', - 'retrying==1.3.3', - ], + install_requires=requirements, extras_require={ ':python_version=="2.7"': ['typing>=3.6'], # allow typehinting PY2 'kafka': ['confluent-kafka==1.0.0'], # To use with Kafka source extractor