Skip to content

Commit

Permalink
Release v0.3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaussion committed Jul 9, 2024
1 parent 327ea4b commit 820ec32
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 29 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Salem
:target: https://badge.fury.io/py/salem
.. image:: https://anaconda.org/conda-forge/salem/badges/version.svg
:target: https://anaconda.org/conda-forge/salem/
.. image:: https://travis-ci.com/fmaussion/salem.svg?branch=master
:target: https://travis-ci.com/fmaussion/salem
.. image:: https://github.com/OGGM/fmaussion/salem/workflows/run-tests.yml/badge.svg?branch=master
:target: https://github.com/fmaussion/salem/actions/workflows/run-tests.yml
.. image:: https://coveralls.io/repos/fmaussion/salem/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/fmaussion/salem?branch=master
.. image:: https://readthedocs.org/projects/salem/badge/?version=stable
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ About
:Status:
.. image:: https://badge.fury.io/py/salem.svg
:target: https://badge.fury.io/py/salem
.. image:: https://travis-ci.com/fmaussion/salem.svg?branch=master
:target: https://travis-ci.com/fmaussion/salem
.. image:: https://github.com/OGGM/fmaussion/salem/workflows/run-tests.yml/badge.svg?branch=master
:target: https://github.com/fmaussion/salem/actions/workflows/run-tests.yml
.. image:: https://coveralls.io/repos/fmaussion/salem/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/fmaussion/salem?branch=master

Expand Down
10 changes: 0 additions & 10 deletions docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ or pip::

pip install salem

The very best (unique?) way to install Salem without too much hassle is to
install its dependencies with `conda`_ and `conda-forge`_::

conda config --add channels conda-forge
conda install <package-name>

Currently, Salem can only be installed via pip::

pip install salem

If you want to install the latest master::

pip install git+https://github.com/fmaussion/salem.git
Expand Down
6 changes: 4 additions & 2 deletions docs/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ v0.3.11 (9 July 2024)

A minor release of the salem package to fix a few deprecation warnings
and an important change in how google maps are generated:

- salem now works with numpy 2.0 (``np.NaN`` is no longer used, :pull:`241`).
- salem no longer generates google static maps without a user provided key.
It was able to do so by exposing my own private key, which is not a good idea.
(:issue:`244`). See https://developers.google.com/maps/documentation/maps-static/get-api-key
(:pull:`244`). See https://developers.google.com/maps/documentation/maps-static/get-api-key
for more information.
- suport for a new WRF map type (:pull:`242`).
- some other simple maintenance for depcrecations, etc.
Expand All @@ -20,8 +21,9 @@ v0.3.10 (11 February 2024)
---------------------------

A minor release of the salem package to fix deprecation warnings and a few bugs:

- we stop enforcing singe threaded Dask. This may have unintended consequences,
will monitor (:issue:`233`)
let us know if its the case (:pull:`233`)
- Geotiff files opened with `open_xr_dataset` are now correctly using the center grid
representation. This bug may have shifted coordinates by half a pixel on such applications
(:pull:`234`).
Expand Down
8 changes: 0 additions & 8 deletions salem/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
from urllib.request import urlopen
from urllib.error import URLError

on_travis = False
if os.environ.get('TRAVIS') is not None:
on_travis = True


def has_internet():
"""Not so recommended it seems"""
Expand Down Expand Up @@ -111,7 +107,3 @@ def requires_dask(test):
msg = "requires dask"
return test if has_dask else unittest.skip(msg)(test)


def requires_travis(test):
msg = "requires travis"
return test if on_travis else unittest.skip(msg)(test)
6 changes: 1 addition & 5 deletions salem/tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import numpy as np
from numpy.testing import assert_allclose

from salem.tests import (requires_travis, requires_geopandas, requires_dask,
from salem.tests import (requires_geopandas, requires_dask,
requires_matplotlib, requires_cartopy)
from salem import utils, transform_geopandas, GeoTiff, read_shapefile, sio
from salem import read_shapefile_to_grid
Expand Down Expand Up @@ -76,10 +76,6 @@ def setUp(self):
def tearDown(self):
delete_test_dir()

@requires_travis
def test_empty_cache(self):
utils.empty_cache()

def test_hash_cache_dir(self):
h1 = utils._hash_cache_dir()
h2 = utils._hash_cache_dir()
Expand Down

0 comments on commit 820ec32

Please sign in to comment.