forked from cokelaer/colormap
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (59 loc) · 2.51 KB
/
setup.py
File metadata and controls
71 lines (59 loc) · 2.51 KB
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
# -*- coding: utf-8 -*-
__revision__ = "$Id: setup.py 3170 2013-01-16 14:57:19Z cokelaer $"
import sys
import os
from setuptools import setup, find_packages
import glob
_MAJOR = 1
_MINOR = 0
_MICRO = 2
version = '%d.%d.%d' % (_MAJOR, _MINOR, _MICRO)
release = '%d.%d' % (_MAJOR, _MINOR)
metainfo = {
'authors': {'Cokelaer':('Thomas Cokelaer','cokelaer@ebi.ac.uk')},
'version': version,
'license' : 'LGPL',
'download_url' : ['http://pypi.python.org/pypi/colormap'],
'url' : ["http://packages.python.org/colormap/"],
'description':'Utilities to ease manipulation of matplotlib colormaps and color codecs (e.g., hex2rgb)',
'platforms' : ['Linux', 'Unix', 'MacOsX', 'Windows'],
'keywords' : ["hex2web", "web2hex", "hex2rgb", "rgb2hex", "rgb2hsv", "hsv2rgb",
"rgb2hls", "hls2rgb", "colormap", 'colors'],
'classifiers' : [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules'
]
}
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd is True: # only import and set the theme if we're building docs
install_requires = ['matplotlib', 'easydev', "numpydoc"]
else:
install_requires = ['matplotlib', 'easydev']
setup(
name = 'colormap',
version = version,
maintainer = metainfo['authors']['Cokelaer'][0],
maintainer_email = metainfo['authors']['Cokelaer'][1],
author = metainfo['authors']['Cokelaer'][0],
author_email = metainfo['authors']['Cokelaer'][1],
long_description = open("README.rst").read(),
keywords = metainfo['keywords'],
description = metainfo['description'],
license = metainfo['license'],
platforms = metainfo['platforms'],
url = metainfo['url'],
download_url = metainfo['download_url'],
classifiers = metainfo['classifiers'],
# package installation
package_dir = {'':'src'},
packages = ['colormap'],
requires = install_requires,
)