-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (55 loc) · 2.11 KB
/
setup.py
File metadata and controls
61 lines (55 loc) · 2.11 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
import os.path as osp
from setuptools import setup, find_packages
import sys
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
def readme():
with open('README.rst') as f:
return f.read()
# read the version from version.py
with open(osp.join('psyplot', 'version.py')) as f:
exec(f.read())
setup(name='psyplot',
version=__version__,
description='Python package for interactive data visualization',
long_description=readme(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
],
keywords='visualization netcdf raster cartopy earth-sciences',
url='https://github.com/Chilipp/psyplot',
author='Philipp Sommer',
author_email='philipp.sommer@unil.ch',
license="GPLv2",
packages=find_packages(exclude=['docs', 'tests*', 'examples']),
install_requires=[
'matplotlib',
'docrep',
'funcargparse',
'xarray',
'PyYAML'
],
package_data={'psyplot': [
osp.join('psyplot', 'plugin-template-files', '*'),
osp.join('psyplot', 'plugin-template-files', 'plugin_template', '*'),
]},
include_package_data=True,
setup_requires=pytest_runner,
tests_require=['pytest'],
entry_points={'console_scripts': [
'psyplot=psyplot.__main__:main',
'psyplot-plugin=psyplot.plugin_template:main']},
zip_safe=False)