-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
72 lines (56 loc) · 2.35 KB
/
setup.py
File metadata and controls
72 lines (56 loc) · 2.35 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
# -*- coding: utf-8 -*-
"""
Copyright (c) 2020 MeteoSwiss, contributors listed in AUTHORS.
Distributed under the terms of the BSD 3-Clause License.
SPDX-License-Identifier: BSD-3-Clause
"""
from pathlib import Path
from setuptools import setup, find_packages # Always prefer setuptools over distutils
# Get the VERSION from the dedicate file
with open(Path('.') / 'src' / 'mannkendall' / 'mk_version.py') as fid:
version = next(line.split("'")[1] for line in fid.readlines() if 'VERSION' in line)
# Extract the long description from the README
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
dependency_links=[],
name="mannkendall",
version=version,
license='BSD 3-Clause',
# Include all packages under src
packages=find_packages("src"),
# Tell setuptools packages are under src
package_dir={"": "src"},
url="https://github.com/MeteoSwiss-MDA/mannkendall",
author="MeteoSwiss",
author_email="fpavogt@users.noreply.github.com",
description="Implementation of the Mann-Kendall statistical test associated with " + \
"the Sen's slope, following the prescriptions of " + \
"Collaud Coen et al., 2020, Atmos. Meas. Tech., 13, 6945–6964, " + \
"https://doi.org/10.5194/amt-2020-178.",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires='>=3.8.0',
install_requires=["numpy>=1.19.2",
"scipy>=1.5.0",
"statsmodels>=0.12.0"],
extras_require={
'dev': ['sphinx', 'sphinx-rtd-theme', 'pylint', 'pytest']
},
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Atmospheric Science',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: BSD License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.8',
],
include_package_data=True, # If True, non .py files make it onto pypi !
)