from pathlib import Path from setuptools import setup, find_packages import atexit from setuptools.command.install import install import subprocess import shlex import glob NAME = 'autokara' DESCRIPTION = 'Automatic karaoke timing' URL = 'https://git.iiens.net/bakaclub/autokara' AUTHOR = 'Loïc "Sting" Allègre' REQUIRES_PYTHON = '>=3.8.0' HERE = Path(__file__).parent # Get version without explicitly loading the module. for line in open('autokara/__init__.py'): line = line.strip() if '__version__' in line: context = {} exec(line, context) VERSION = context['__version__'] def load_requirements(name): required = [i.strip() for i in open(HERE / name)] required = [i for i in required if not i.startswith('#')] print(required) return required REQUIRED = load_requirements('requirements.txt') ALL_REQUIRED = load_requirements('requirements.txt') setup( name=NAME, version=VERSION, description=DESCRIPTION, author=AUTHOR, python_requires=REQUIRES_PYTHON, url=URL, packages=find_packages(), install_requires=REQUIRED, include_package_data=True, entry_points={ 'console_scripts': ['autokara=autokara.autokara:main', 'autokara-plot=autokara.plot_syls:main', 'autokara-gen-lang=autokara.update_lang_db:main', 'autokara-preprocess=autokara.preprocess_media:main' ], }, scripts=[], license='MIT License', classifiers=[ # Trove classifiers # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers 'License :: OSI Approved :: MIT License', 'Topic :: Multimedia :: Sound/Audio', 'Topic :: Scientific/Engineering :: Artificial Intelligence', ], )