from os import path from pathlib import Path from typing import List from setuptools import find_packages, setup PACKAGE_NAME = path.basename(Path.cwd()) install_requires: List[str] = [] with open('./requirements/base.pip', 'r') as f: install_requires = [x.strip() for x in f.readlines()] tests_require: List[str] = [] with open('./requirements/test.pip', 'r') as f: tests_require = [x.strip() for x in f.readlines()] with open('./VERSION', 'r') as f: version = f.read() config = { 'name': PACKAGE_NAME, 'description': '', 'version': version, 'tests_require': tests_require, 'install_requires': install_requires, 'packages': find_packages(), 'include_package_data': True, 'package_data': {'slz_downloader': ['dsp/appreciationengine/contexts/*']}, 'zip_safe': False, 'entry_points': { 'console_scripts': [ '{0}=slz_downloader.main:run'.format(PACKAGE_NAME.replace('_', '-')), 'apollo-backfill=slz_downloader.scripts.apollo_backfill:main', 'appreciationengine-backfill=slz_downloader.scripts.appreciationengine_backfill:main', ] } } setup(**config)