-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
36 lines (27 loc) · 1 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
import os.path as osp
from setuptools import find_packages, setup
def readme():
with open("README.md") as f:
content = f.read()
return content
def find_version():
version_file = "sciplotlib/__init__.py"
with open(version_file, "r") as f:
exec(compile(f.read(), version_file, "exec"))
return locals()["__version__"]
def get_requirements(filename="requirements.txt"):
here = osp.dirname(osp.realpath(__file__))
with open(osp.join(here, filename), "r") as f:
requires = [line.replace("\n", "") for line in f.readlines()]
return requires
setup(name="sciplotlib",
version=find_version(),
description="SciPlotLib: A toolbox for drawing figures commonly "
"found in journal or conference papers.",
author="MetaVisionLab",
license="GUN",
long_description=readme(),
url="https://github.com/MetaVisionLab/SciPlotLib",
packages=find_packages(),
install_requires=get_requirements(),
keywords=["visualization"])