-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
83 lines (68 loc) · 1.92 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
import os
import re
from setuptools import find_packages
from codecs import open
from setuptools import dist
dist.Distribution().fetch_build_eggs(["numpy"])
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
import GTS_encode
NAME = "GTS_encode"
CLASSIFIERS = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
HERE = os.path.dirname(os.path.abspath(__file__))
def read(fname):
with open(os.path.join(HERE, fname)) as openfile:
return openfile.read()
def getreq(fpath):
return read(fpath).splitlines()
def ext_configuration(parent_package="", top_path=None):
config = Configuration("", "", "")
config.add_data_files(
"LICENSE",
)
return config
install_requires = [
"matplotlib",
"python-dateutil",
"sortedcontainers",
"eccodes",
"eccodes-python",
"xarray",
"dask",
"netCDF4",
"bottleneck",
"numpy",
"pandas",
]
setup_requirements = ["pytest-runner"]
kwargs = ext_configuration(top_path="").todict()
setup(
name=NAME,
version=GTS_encode.__version__,
description=GTS_encode.__description__,
long_description=read("README.md"),
long_description_content_type="text/x-rst",
keywords=GTS_encode.__keywords__,
author=GTS_encode.__author__,
author_email=GTS_encode.__contact__,
license="MIT license",
packages=find_packages(),
platforms=["any"],
install_requires=install_requires,
setup_requires=setup_requirements,
test_require=getreq('requirements/tests.txt'),
test_suite='pytest',
python_requires=">=3.0",
classifiers=CLASSIFIERS,
zip_safe=False,
**kwargs
)