Commit a6e7484a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Moved folium and geojson to optional dependencies. Revised 'extras_require'...


Moved folium and geojson to optional dependencies. Revised 'extras_require' key parameter in setup.py.
Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent ea30983a
Pipeline #18472 passed with stage
in 2 minutes and 8 seconds
cartopy
dill
folium
# folium # optional
gdal>=2.1.0
geojson
# geojson # optional
# holoviews # optional
matplotlib
numpy
......
six
dill
geojson
folium
# geojson # optional
# folium # optional
......@@ -35,12 +35,10 @@ version = {}
with open("geoarray/version.py") as version_file:
exec(version_file.read(), version)
requirements = [
req = [
'cartopy',
'dill',
'folium',
'gdal>=2.1.0',
'geojson',
'matplotlib',
'numpy',
'pandas',
......@@ -50,8 +48,22 @@ requirements = [
'shapely',
'six',
]
setup_requirements = ['setuptools-git']
test_requirements = requirements + ["coverage", "nose", "nose2", "nose-htmloutput", "rednose", "urlchecker"]
req_interactive_plotting = [
'folium',
'geojson',
'holoviews'
]
req_setup = ['setuptools-git']
req_test = req + ["coverage", "nose", "nose2", "nose-htmloutput", "rednose", "urlchecker"]
req_doc = ['sphinx-argparse', 'sphinx_rtd_theme']
req_lint = ['flake8', 'pycodestyle', 'pydocstyle', 'pylint']
req_dev = req_setup + req_test + req_doc + req_lint
setup(
name='geoarray',
......@@ -64,7 +76,7 @@ setup(
packages=find_packages(exclude=['tests*']), # searches for packages with an __init__.py and returns a list
package_dir={'geoarray': 'geoarray'},
include_package_data=True,
install_requires=requirements,
install_requires=req,
license="GPL-3.0-or-later",
zip_safe=False,
keywords=['geoarray', 'geoprocessing', 'gdal', 'numpy'],
......@@ -82,7 +94,13 @@ setup(
'Programming Language :: Python :: 3.9',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements,
extras_require={'interactive_plotting': ["holoviews"]}
tests_require=req_test,
setup_requires=req_setup,
extras_require={
"interactive_plotting": req_interactive_plotting,
"doc": req_doc,
"test": req_test,
"lint": req_lint,
"dev": req_dev
}
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment