-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
49 lines (43 loc) · 1.46 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
from setuptools import setup, find_packages
try:
# pip >=20
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
except ImportError:
try:
# 10.0.0 <= pip <= 19.3.1
from pip._internal.download import PipSession
from pip._internal.req import parse_requirements
except ImportError:
# pip <= 9.0.3
from pip.download import PipSession
from pip.req import parse_requirements
def load_requirements(file_name):
requirements = parse_requirements(file_name, session=PipSession())
try:
return [str(item.req) for item in requirements]
except:
return [str(item.requirement) for item in requirements]
def load_readme():
with open("README.md", 'r') as f:
long_description = f.read()
return long_description
setup(
name="osms",
version="1.0.0",
description="OSM: One-Shot Multi-speaker",
long_description=load_readme(),
author="Nikolay Kozyrskiy, Gleb Balitskiy",
author_email="nikolay.kozyrskiy@skoltech.ru",
url="https://github.com/adasegroup/OSM-one-shot-multispeaker",
packages=find_packages(where="src"),
package_dir={"": "src"},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
license="MIT",
install_requires=load_requirements("requirements.txt"),
python_requires=">=3.6"
)