-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (39 loc) · 1.58 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
from setuptools import setup, find_packages
from os import path
here = path.abspath(path.dirname(__file__))
def get_long_description(rel_path):
with open(path.join(here, rel_path)) as file:
return file.read()
def get_version(rel_path):
with open(path.join(here, rel_path)) as file:
lines = file.read().splitlines()
for line in lines:
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
setup(name='tol_colors',
version=get_version('src/tol_colors/__init__.py'),
description="Color schemes for lines and maps, color-blind safe",
long_description=get_long_description('README.md'),
long_description_content_type='text/markdown',
keywords='visualization colormap colorset',
url='https://personal.sron.nl/~pault',
project_urls={
'Source': 'https://github.com/Descanonge/tol_colors',
},
author="Clément Haëck",
author_email='[email protected]',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Visualization'
],
package_dir={'': 'src'},
packages=find_packages(where='src'),
include_package_data=True,
install_requires=['numpy', 'matplotlib'])