rstallman/MusicGen-Mayfair
0
1"""2 Copyright (c) Meta Platforms, Inc. and affiliates.3 All rights reserved.4 5 This source code is licensed under the license found in the6 LICENSE file in the root directory of this source tree.7 8"""9 10from pathlib import Path11 12from setuptools import setup, find_packages13 14 15NAME = 'audiocraft'16DESCRIPTION = 'Audio research library for PyTorch'17 18URL = 'https://github.com/fairinternal/audiocraft'19AUTHOR = 'FAIR Speech & Audio'20EMAIL = 'defossez@meta.com'21REQUIRES_PYTHON = '>=3.8.0'22 23for line in open('audiocraft/__init__.py'):24 line = line.strip()25 if '__version__' in line:26 context = {}27 exec(line, context)28 VERSION = context['__version__']29 30HERE = Path(__file__).parent31 32try:33 with open(HERE / "README.md", encoding='utf-8') as f:34 long_description = '\n' + f.read()35except FileNotFoundError:36 long_description = DESCRIPTION37 38REQUIRED = [i.strip() for i in open(HERE / 'requirements.txt') if not i.startswith('#')]39 40setup(41 name=NAME,42 version=VERSION,43 description=DESCRIPTION,44 author_email=EMAIL,45 long_description=long_description,46 long_description_content_type='text/markdown',47 author=AUTHOR,48 url=URL,49 python_requires=REQUIRES_PYTHON,50 install_requires=REQUIRED,51 extras_require={52 'dev': ['coverage', 'flake8', 'mypy', 'pdoc3', 'pytest'],53 },54 packages=find_packages(),55 package_data={'audiocraft': ['py.typed']},56 include_package_data=True,57 license='MIT License',58 classifiers=[59 # Trove classifiers60 # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers61 'License :: OSI Approved :: MIT License',62 'Topic :: Multimedia :: Sound/Audio',63 'Topic :: Scientific/Engineering :: Artificial Intelligence',64 ],65)66 