-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
93 lines (85 loc) · 2.43 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
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import find_packages, setup
NAME = "jsmetrics"
DESCRIPTION = "Library of algorithms and metrics used to characterise jet-streams."
URL = "https://github.com/Thomasjkeel/jsmetrics"
AUTHOR = "Thomas Keel"
AUTHOR_EMAIL = "[email protected]"
REQUIRES_PYTHON = ">=3.8.0"
VERSION = "0.2.7"
LICENSE = "MIT License"
KEYWORDS = "jet-stream climate metrics algorithms xarray"
with open("README.rst", encoding="utf-8") as file:
readme = file.read()
with open("HISTORY.rst", encoding="utf-8") as history_file:
history = history_file.read()
# dev_requirements = []
# with open("requirements_dev.txt") as dev:
# for dependency in dev.readlines():
# dev_requirements.append(dependency)
requirements = [
"numpy>=1.21.2,<=1.26.4",
"pandas>=1.4",
"matplotlib>=3.3.2",
"xarray>=2023.1.0",
"scipy>=1.5.3",
"dask[array]",
"netCDF4>=1.5.5.1",
"bottleneck",
"cf_xarray>=0.6.1",
"Shapely",
]
dev_requirements = [
"bump2version",
"black",
"pytest",
"pytest-cov",
"flake8",
"parameterized",
"pre_commit",
"pylint",
"pytest",
"sphinx",
"numpydoc",
"sphinx-rtd-theme",
]
setup(
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Atmospheric Science",
],
description=DESCRIPTION,
python_requires=REQUIRES_PYTHON,
install_requires=requirements,
license=LICENSE,
long_description=readme + "\n\n" + history,
long_description_content_type="text/x-rst",
include_package_data=True,
keywords=KEYWORDS,
name=NAME,
packages=find_packages(),
tests_require=["pytest", "parameterized"],
extras_require={
"dev": dev_requirements,
"data_install": [
"cdsapi>=0.5.1",
],
},
url=URL,
version=VERSION,
zip_safe=False,
)