from os import path from pathlib import Path from setuptools import find_packages, setup PACKAGE_NAME = path.basename(Path.cwd()) install_requires = [] with open('./requirements/base.pip', 'r') as f: install_requires = [x.strip() for x in f.readlines()] tests_require = [] 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 = { 'version': version, 'name': PACKAGE_NAME, 'description': "Apple Music Charts public API Scraper", 'tests_require': tests_require, 'install_requires': install_requires, 'packages': find_packages(), 'include_package_data': True, 'package_data': {'slz_apple_music_charts_scrapper': ['static/*']}, 'zip_safe': False, 'entry_points': { 'console_scripts': [ 'AppleMusicChartsScraper=slz_apple_music_charts_scrapper.entry:run', '{0}=slz_apple_music_charts_scrapper.entry:run'.format(PACKAGE_NAME.replace('_', '-')), ] } } setup(**config)