-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
68 lines (64 loc) · 2.11 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
import re
from os import path
from setuptools import setup, find_packages
# read the contents of README file
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md"), encoding="utf-8") as f:
long_description = f.read()
# read the version file
VERSIONFILE = "termplot/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
mo = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", verstrline, re.M)
if not mo:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
version_str = mo.group(1)
setup(
name="terminal-plot",
version=version_str,
description="View plotted stats directly inside terminal.",
long_description=long_description,
long_description_content_type="text/markdown",
author="Tin Lai (@soraxas)",
author_email="[email protected]",
license="MIT",
url="https://github.com/soraxas/termplot",
keywords="tui termplot stats tensorboard csv",
python_requires=">=3.6",
packages=find_packages(),
install_requires=[
"tensorboard>=2.5",
"plotext==5.2.8",
"loguru",
"mock",
"pandas",
"numpy",
"scipy",
"argcomplete",
"watchdog",
],
extras_require={"matplotlib-backend": ["matplotlib", "pillow"]},
entry_points={
"console_scripts": [
"termplot=termplot.main:run",
"terminal-plot=termplot.main:run",
]
},
classifiers=[
"Environment :: Console",
"Framework :: Matplotlib",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Desktop Environment",
"Topic :: Terminals",
"Topic :: Utilities",
],
)