Skip to content

Commit

Permalink
The 'pykrige', 'pyfftw' and 'basemap' requirements are no longer opti…
Browse files Browse the repository at this point in the history
…onal since they are easily installable from conda-forge now. Updated requirements and installation instructions. Updated version info.

Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
  • Loading branch information
danschef committed Sep 28, 2020
1 parent 37ca24a commit 1e4c71c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test_arosics_install:
- source activate arosics_testinstall

# resolve some requirements with conda
- conda install --yes -q -c conda-forge numpy gdal scikit-image matplotlib 'pyproj>2.2.0' shapely geopandas pandas
- conda install --yes -q -c conda-forge numpy gdal scikit-image matplotlib 'pyproj>2.2.0' shapely geopandas pandas pykrige pyfftw basemap

# run installer
- python setup.py install
Expand Down
2 changes: 1 addition & 1 deletion arosics/CoReg.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def show_matchWin(self, figsize=(15, 15), interactive=True, after_correction=Non
if not hv:
raise ImportError(
"This method requires the library 'holoviews'. It can be installed for Anaconda with "
"the shell command 'conda install -c ioam holoviews bokeh'.")
"the shell command 'conda install -c conda-forge holoviews bokeh'.")

hv.notebook_extension('matplotlib')
hv.Store.add_style_opts(hv.Image, ['vmin', 'vmax'])
Expand Down
4 changes: 2 additions & 2 deletions arosics/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.


__version__ = '0.9.23'
__versionalias__ = '2020-09-25_02'
__version__ = '0.9.24'
__versionalias__ = '2020-09-28_01'
11 changes: 2 additions & 9 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,10 @@ Using conda_, the recommended approach is:

.. code-block:: bash
$ conda install -c conda-forge numpy gdal scikit-image matplotlib 'pyproj>2.2.0' shapely geopandas pandas cmocean
$ conda install -c conda-forge numpy gdal scikit-image matplotlib 'pyproj>2.2.0' shapely geopandas pandas cmocean basemap pykrige pyfftw
3. Install optional libraries for AROSICS (only needed for some specific functions):

.. code-block:: bash
$ conda install -c conda-forge basemap pykrige pyfftw
4. Then install AROSICS using the pip installer:
3. Then install AROSICS using the pip installer:

.. code-block:: bash
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ plotly
six
folium>=0.6.0
geojson
pykrige
pyfftw
basemap
32 changes: 6 additions & 26 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"""The setup script."""

from setuptools import setup, find_packages
import warnings
from pkgutil import find_loader


with open('README.rst') as readme_file:
Expand All @@ -39,12 +37,10 @@
with open("arosics/version.py") as version_file:
exec(version_file.read(), version)

requirements = ['numpy', 'gdal', 'shapely', 'scikit-image', 'matplotlib', 'geopandas', 'pandas',
'geoarray>=0.8.30', 'py_tools_ds>=0.14.28', 'plotly', 'cmocean', 'six', 'folium>=0.6.0', 'geojson'
# 'pykrige' # conda install --yes -c conda-forge pykrige
# 'pyfftw', # conda install --yes -c conda-forge pyfftw=0.10.4 ; \
# 'basemap', # conda install --yes -c conda-forge basemap; \
]
requirements = [
'numpy', 'gdal', 'shapely', 'scikit-image', 'matplotlib', 'geopandas', 'pandas', 'plotly', 'cmocean', 'six',
'folium>=0.6.0', 'geojson', 'pykrige', 'pyfftw', 'basemap', 'geoarray>=0.8.30', 'py_tools_ds>=0.14.28'
]

setup_requirements = [
'setuptools'
Expand Down Expand Up @@ -73,31 +69,15 @@
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements,
)


# check for pyfftw
if not find_loader('pyfftw'):
warnings.warn('You need to install pyfftw manually (see https://pypi.python.org/pypi/pyFFTW) for speeding up '
'the computation. It is not automatically installed.')

# check for basemap
if not find_loader('mpl_toolkits.basemap'):
warnings.warn('You need to install basemap manually if you want to plot maps (see www./matplotlib.org/basemap). '
'It is not automatically installed.')

# check for pykrige
if not find_loader('pykrige'):
warnings.warn('You need to install pykrige manually if you want to interpolate tie point grids produced by AROSICS '
'(see https://github.com/bsmurphy/PyKrige). It is not automatically installed.')
2 changes: 1 addition & 1 deletion tests/CI_docker/context/environment_arosics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ channels: &id1
dependencies:
- python=3.*.*
- pip
- pyqt
- numpy
- gdal
- scikit-image
Expand All @@ -20,6 +19,7 @@ dependencies:
- holoviews
- bokeh
- pykrige
- pyfftw
- cmocean

- pip:
Expand Down

0 comments on commit 1e4c71c

Please sign in to comment.