This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (80 loc) · 2.91 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script."""
import importlib.util
from pathlib import Path
from setuptools import setup, find_packages
from codecs import open
# Get the long description from the relevant file
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
# Get the base version from the library. (We'll find it in the `version.py`
# file in the src directory, but we'll bypass actually loading up the library.)
vspec = importlib.util.spec_from_file_location(
"version",
str(Path(__file__).resolve().parent / "npc_engine_import_wizard" / "version.py"),
)
vmod = importlib.util.module_from_spec(vspec)
vspec.loader.exec_module(vmod)
version = getattr(vmod, "__version__")
# Define requirements here, dont forget to add them to the extras_require
requirements = ["npc-engine[cpu]>=0.0.1,<1.0.0"]
requirements_dev = [
"pip-check-reqs>=2.0.1,<3",
"black>=19.10b0",
"flake8>=3.7.9,<4",
"flake8-docstrings>=1.5.0,<2",
"pytest>=6.0.1",
"pytest-cov>=2.5.1,<3",
"pytest-pythonpath>=0.7.2,<1",
"setuptools>=38.4.0",
"tox>=3.0.0,<4",
"twine==3.2.0",
]
requirements_flowtron_tts = [
"torch>=1.0.0,<2.0.0",
"tensorboardX",
]
requirements_transformers = ["torch>=1.0.0,<2.0.0", "transformers>=4.0.0,<5.0.0"]
requirements_espnet = ["torch>=1.0.0,<2.0.0", "espnet"]
all = requirements_flowtron_tts + requirements_transformers + requirements_espnet
setup(
name="npc-engine-import-wizard",
description="Import wizard for npc-engine",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
version=version,
install_requires=requirements,
extras_require={
"dev": requirements_dev,
"flowtron-tts": requirements_flowtron_tts,
"transformers": requirements_transformers,
"espnet": requirements_espnet,
"all": all,
},
entry_points="""
[console_scripts]
npc-engine-import-wizard=npc_engine_import_wizard.cli:cli
""",
python_requires=">=3.7.0",
license="MIT",
author="eublefar",
author_email="[email protected]",
# Use the URL to the github repo.
url="https://github.com/npc-engine/npc-engine-import-wizard",
keywords=["npc", "AI", "inference", "deep-learning"],
# See https://PyPI.python.org/PyPI?%3Aaction=list_classifiers
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Multimedia :: Sound/Audio :: Speech",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
include_package_data=True,
)