-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
95 lines (87 loc) · 2.66 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import find_packages, setup
from pathlib import Path
short_description = "No description has been added so far."
version = "0.4.9"
try:
if (Path().parent / "README.rst").is_file():
with open(str(Path().parent / "README.rst")) as readme_file:
long_description = readme_file.read()
elif (Path().parent / "README.md").is_file():
import m2r
long_description = m2r.parse_from_file(Path().parent / "README.md")
else:
raise AssertionError("No readme file")
except (ImportError, AssertionError):
long_description = short_description
requirements = ["numpy", "progressbar2", "requests"]
test_requirements = [
"tox",
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-sugar",
"mypy",
"pyfakefs",
"keras",
"tensorflow==2.1.0",
]
coverage_requirements = ["coverage", "codecov"]
docs_requirements = ["sphinx>=2.0", "romnnn_sphinx_press_theme", "sphinxemoji"]
formatting_requirements = ["flake8", "black==19.10b0", "isort"]
tool_requirements = [
"m2r",
"twine",
"invoke",
"ruamel.yaml",
"pre-commit",
"cookiecutter",
"bump2version",
]
dev_requirements = (
requirements
+ test_requirements
+ coverage_requirements
+ docs_requirements
+ formatting_requirements
+ tool_requirements
)
setup(
author="into-ai",
author_email="[email protected]",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Environment :: Console",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
python_requires=">=3.6",
install_requires=requirements,
setup_requires=tool_requirements,
tests_require=test_requirements,
extras_require=dict(
dev=dev_requirements, docs=docs_requirements, test=test_requirements
),
license="MIT",
description=short_description,
long_description=long_description,
include_package_data=True,
package_data={"kerasltisubmission": []},
keywords="kerasltisubmission",
name="kerasltisubmission",
packages=find_packages(include=["kerasltisubmission"]),
test_suite="tests",
url="https://github.com/into-ai/kerasltisubmission",
version=version,
zip_safe=False,
)