forked from OverLordGoldDragon/see-rnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (53 loc) · 2.21 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
import os
import re
from setuptools import setup, find_packages
current_path = os.path.abspath(os.path.dirname(__file__))
def read_file(*parts):
with open(os.path.join(current_path, *parts), encoding='utf-8') as reader:
return reader.read()
def get_requirements(*parts):
with open(os.path.join(current_path, *parts), encoding='utf-8') as reader:
return list(map(lambda x: x.strip(), reader.readlines()))
def find_version(*file_paths):
version_file = read_file(*file_paths)
version_matched = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_matched:
return version_matched.group(1)
raise RuntimeError('Unable to find version')
setup(
name="see-rnn",
version=find_version('see_rnn', '__init__.py'),
packages=find_packages(exclude=['tests']),
url="https://github.com/OverLordGoldDragon/see-rnn",
license="MIT",
author="OverLordGoldDragon",
author_email="[email protected]",
description=("RNN and general weights, gradients, & activations "
"visualization in Keras & TensorFlow"),
long_description=read_file('README.md'),
long_description_content_type="text/markdown",
keywords=(
"rnn tensorflow keras visualization deep-learning lstm gru "
),
install_requires=get_requirements('requirements.txt'),
include_package_data=True,
zip_safe=True,
tests_require=["pytest>=4.0", "pytest-cov"],
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Topic :: Utilities",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)