from setuptools import setup, find_packages from ows_analytics_common import __version__ def read_requirements(path): """Read requirements from file based on file path provided. Lines beginning with a dash are excluded, e.g. references to an interal PyPI server url (-i). Args: path (str): File path for requirements text file. Returns: Array of requirements libraries.""" requirements = [] with open(path, 'r') as fd: requirements = [ req.strip() for req in fd.readlines() if not req.startswith('-')] return requirements setup( name='ows-analytics-common', version=__version__, description='Shared util functions for ows-analytics services.', author='The Orchard', author_email='webdev@theorchard.com', url='https://github.com/theorchard/docs', packages=find_packages(), include_package_data=True, test_suite='tests', zip_safe=False, install_requires=[], tests_require=[] )