forked from corteva/rioxarray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (63 loc) · 1.99 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
# -*- coding: utf-8 -*-
"""The setup script."""
import os
import sys
from itertools import chain
from setuptools import find_packages, setup
def get_version():
"""
retreive rioxarray version information in version variable
(taken from pyproj)
"""
with open(os.path.join("rioxarray", "_version.py")) as vfh:
for line in vfh:
if line.find("__version__") >= 0:
# parse __version__ and remove surrounding " or '
return line.split("=")[1].strip()[1:-1]
sys.exit("ERROR: pyproj version not fount.")
with open("README.rst") as readme_file:
readme = readme_file.read()
requirements = ["rasterio", "scipy", "xarray"]
test_requirements = ["pytest>=3.6", "pytest-cov", "mock"]
extras_require = {
"dev": test_requirements
+ [
"sphinx-click==1.1.0",
"nbsphinx",
"sphinx_rtd_theme",
"black",
"flake8",
"pylint",
"isort",
]
}
extras_require["all"] = list(chain.from_iterable(extras_require.values()))
setup(
author="rioxarray Contributors",
author_email="alansnow21@gmail.com",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
description="rasterio xarray extension.",
install_requires=requirements,
license="BSD license",
long_description=readme + "\n\n",
include_package_data=True,
keywords="rioxarray,xarray,rasterio",
name="rioxarray",
packages=find_packages(include=["rioxarray*"]),
test_suite="test",
tests_require=test_requirements,
extras_require=extras_require,
url="https://github.com/corteva/rioxarray",
version=get_version(),
zip_safe=False,
python_requires=">=3",
)