This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
90 lines (80 loc) · 3.06 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
# Copyright (c) 2021 Philip May
# This software is distributed under the terms of the MIT license
# which is available at https://opensource.org/licenses/MIT
"""Build script for setuptools."""
import os
import setuptools
project_name = "transformer_tools"
source_code = "https://github.com/telekom/transformer-tools"
keywords = "torch pytorch transformers nlp nlu"
install_requires = ["torch", "transformers", "scikit-learn", "pandas", "numpy"]
extras_require = {
"checking": [
"black",
"flake8",
"isort",
"mdformat",
"pydocstyle",
"mypy",
"pylint",
"pylintfileheader",
],
"optional": ["ml-cloud-tools", "mlflow<2", "seldon_core", "cloudpickle", "pyyaml"],
"testing": ["pytest", "packaging"],
"doc": ["sphinx", "sphinx_rtd_theme", "myst_parser", "sphinx_copybutton"],
}
def get_version():
"""Read version from ``__init__.py``."""
version_filepath = os.path.join(os.path.dirname(__file__), project_name, "__init__.py")
with open(version_filepath) as f:
for line in f:
if line.startswith("__version__"):
return line.strip().split()[-1][1:-1]
assert False
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name=project_name,
version=get_version(),
maintainer="Philip May",
author="Philip May",
author_email="[email protected]",
description="Tools for Transformers",
long_description=long_description,
long_description_content_type="text/markdown",
url=source_code,
project_urls={
"Bug Tracker": source_code + "/issues",
"Code Doc": "https://telekom.github.io/transformer-tools/",
"Source Code": source_code,
"Contributing": source_code + "/blob/main/CONTRIBUTING.md",
"Code of Conduct": source_code + "/blob/main/CODE_OF_CONDUCT.md",
},
packages=setuptools.find_packages(),
python_requires=">=3.6",
install_requires=install_requires,
extras_require=extras_require,
keywords=keywords,
classifiers=[
"Development Status :: 3 - Alpha",
# "Development Status :: 4 - Beta",
# "Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
],
)