forked from 6gsn/marine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
101 lines (94 loc) · 3.09 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
94
95
96
97
98
99
100
101
import codecs
import re
from os.path import exists, join
from setuptools import find_packages, setup
def find_version(*file_paths: str) -> str:
with codecs.open(join(*file_paths), "r") as fp:
version_file = fp.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
if exists("README.md"):
with open("README.md", "r", encoding="utf-8") as fh:
LONG_DESC = LONG_DESC = fh.read()
else:
LONG_DESC = ""
setup(
name="marine-plus",
version=find_version("marine", "__init__.py"),
description="Marine: Multi-task learning based on Japanese accent estimation (Also supports Windows and Python 3.12)", # noqa
packages=find_packages(),
author="Byeongseon Park",
author_email="[email protected]",
long_description=LONG_DESC,
long_description_content_type="text/markdown",
include_package_data=True,
install_requires=[
"importlib_resources; python_version<'3.9'",
"numpy >= 1.21.0, <2",
"torch >= 1.7.0",
"hydra-core >= 1.1.0",
"hydra_colorlog >= 1.1.0",
"tqdm",
"joblib",
"pykakasi >= 2.3.0",
],
extras_require={
"dev": [
"torchmetrics",
"scikit-learn",
"docstr-coverage",
"tensorboard",
"matplotlib",
"pytest",
"pytest-cov",
"docstr-coverage",
"pysen",
"black>=19.19b0",
"flake8>=3.7",
"flake8-bugbear",
"isort>=4.3,<6",
"click",
"pandas",
"httpx",
],
"docs": [
"sphinx",
"sphinx-autobuild",
"sphinx_rtd_theme",
"nbsphinx>=0.8.6",
"Jinja2>=3.0.1",
"pandoc",
"ipython",
"jupyter",
],
"pyopenjtalk": ["pyopenjtalk-plus"],
},
entry_points={
"console_scripts": [
"marine-make-raw-corpus = marine.bin.make_raw_corpus:entry",
"marine-jsut2corpus = marine.bin.jsut2corpus:entry",
"marine-build-vocab = marine.bin.build_vocab:entry",
"marine-pack-corpus = marine.bin.pack_corpus:entry",
"marine-train = marine.bin.train:entry",
"marine-test = marine.bin.test:entry",
],
},
classifiers=[
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
],
)