forked from psyplot/psyplot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
106 lines (94 loc) · 3.67 KB
/
setup.py
File metadata and controls
106 lines (94 loc) · 3.67 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
"""Setup script for the psyplot package."""
# Disclaimer
# ----------
#
# Copyright (C) 2021 Helmholtz-Zentrum Hereon
# Copyright (C) 2020-2021 Helmholtz-Zentrum Geesthacht
# Copyright (C) 2016-2021 University of Lausanne
#
# This file is part of psyplot and is released under the GNU LGPL-3.O license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3.0 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LGPL-3.0 license for more details.
#
# You should have received a copy of the GNU LGPL-3.0 license
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import os.path as osp
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
import versioneer
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ''
def run_tests(self):
import shlex
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
version = versioneer.get_version()
def readme():
with open('README.rst') as f:
return f.read()
cmdclass = versioneer.get_cmdclass({'test': PyTest})
setup(name='psyplot',
version=version,
description='Python package for interactive data visualization',
long_description=readme(),
long_description_content_type="text/x-rst",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Operating System :: OS Independent',
],
python_requires=">=3.6",
keywords='visualization netcdf raster cartopy earth-sciences',
project_urls={
'Documentation': 'https://psyplot.github.io',
'Source': 'https://github.com/psyplot/psyplot',
'Tracker': 'https://github.com/psyplot/psyplot/issues',
},
url='https://github.com/psyplot/psyplot',
author='Philipp S. Sommer',
author_email='psyplot@hereon.de',
license="LGPL-3.0-only",
packages=find_packages(exclude=['docs', 'tests*', 'examples']),
install_requires=[
'matplotlib',
'docrep>=0.3',
'funcargparse',
'xarray>=0.17',
'PyYAML>=4.2b4'
],
package_data={'psyplot': [
osp.join('psyplot', 'plugin-template-files', '*'),
osp.join('psyplot', 'plugin-template-files', 'plugin_template', '*'),
]},
include_package_data=True,
tests_require=['pytest'],
cmdclass=cmdclass,
entry_points={'console_scripts': [
'psyplot=psyplot.__main__:main',
'psyplot-plugin=psyplot.plugin_template:main']},
zip_safe=False)