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