forked from matplotlib/cmocean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (45 loc) · 1.4 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
#!/usr/bin/env python
"""
setup.py for cmocean
"""
import sys
from setuptools import setup # to support "develop" mode
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.verbose = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
extras_require={
'plots': ["colorspacious", "viscm"],
}
# # in case I add more later
# extras_require['complete'] = sorted(set(sum(extras_require.values(), [])))
setup(
name = "cmocean",
version = "2.0",
author = "Kristen Thyng",
author_email = "kthyng@gmail.com",
url = 'https://github.com/matplotlib/cmocean',
download_url = 'https://github.com/matplotlib/cmocean/tarball/2.0',
description = ("Colormaps for Oceanography"),
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
classifiers=[
"Development Status :: 3 - Alpha",
],
package_data={
'cmocean': ['rgb/*.txt'],
},
packages = ["cmocean"],
ext_package='cmocean',
scripts = [],
keywords = ['colormaps', 'oceanography', 'plotting', 'visualization'],
setup_requires=['setuptools'],
install_requires=['matplotlib', 'numpy'],
tests_require=['pytest'],
extras_require=extras_require
)