Skip to content

Commit

Permalink
Update requirements (#70)
Browse files Browse the repository at this point in the history
* ci update python versions

* nit

* update requirements in doc

* update release notes
  • Loading branch information
benbovy committed Dec 10, 2019
1 parent a3fd84a commit 477e996
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 29 deletions.
28 changes: 12 additions & 16 deletions .travis.yml
Expand Up @@ -11,30 +11,26 @@ branches:
matrix:
fast_finish: True
include:
- python: 3.5
env: CONDA_ENV=py35
- python: 3.6
env: CONDA_ENV=py36
- python: 3.7
env: CONDA_ENV=py37
- python: 3.6
env: CONDA_ENV=py36-xarray-dev
- python: 3.6
env: CONDA_ENV=py36-attrs-dev
- python: 3.5
- python: 3.8
env: CONDA_ENV=py38
- python: 3.7
env: CONDA_ENV=py37-xarray-dev
- python: 3.7
env: CONDA_ENV=py37-attrs-dev
- python: 3.7
env: CONDA_ENV=docs
allow_failures:
- python: 3.6
env: CONDA_ENV=py36-xarray-dev
- python: 3.6
env: CONDA_ENV=py36-attrs-dev
- python: 3.7
env: CONDA_ENV=py37-xarray-dev
- python: 3.7
env: CONDA_ENV=py37-attrs-dev

before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
Expand Down
@@ -1,8 +1,8 @@
name: test_env_py36-attrs-dev
name: test_env_py37-attrs-dev
channels:
- conda-forge
dependencies:
- python=3.6
- python=3.7
- pytest
- numpy
- xarray
Expand Down
@@ -1,9 +1,9 @@
name: test_env_py36-xarray-dev
name: test_env_py37-xarray-dev
channels:
- conda-forge
dependencies:
- attrs>=19.2.0
- python=3.6
- python=3.7
- pytest
- numpy
- pip:
Expand Down
4 changes: 2 additions & 2 deletions ci/requirements-py35.yml → ci/requirements-py38.yml
@@ -1,9 +1,9 @@
name: test_env_py35
name: test_env_py38
channels:
- conda-forge
dependencies:
- attrs>=19.2.0
- python=3.5
- python=3.8
- pytest
- numpy
- xarray
Expand Down
8 changes: 4 additions & 4 deletions doc/installing.rst
Expand Up @@ -6,8 +6,8 @@ Install xarray-simlab
Required dependencies
---------------------

- Python 3.5 or later.
- `attrs <http://www.attrs.org>`__ (18.1.0 or later)
- Python 3.6 or later.
- `attrs <http://www.attrs.org>`__ (18.2.0 or later)
- `numpy <http://www.numpy.org/>`__
- `xarray <http://xarray.pydata.org>`__ (0.10.0 or later)

Expand Down Expand Up @@ -55,8 +55,8 @@ using conda_ to install them::
A good practice (especially for development purpose) is to install the
packages in a separate environment, e.g. using conda::

$ conda create -n simlab_py36 python=3.6 attrs xarray numpy pip -c conda-forge
$ source activate simlab_py36
$ conda create -n xsimlab python attrs xarray numpy pip -c conda-forge
$ source activate xsimlab

Then you can clone the xarray-simlab git repository and install it
using ``pip`` locally::
Expand Down
9 changes: 9 additions & 0 deletions doc/whats_new.rst
Expand Up @@ -6,7 +6,16 @@ Release Notes
v0.4.0 (Unreleased)
-------------------

Breaking changes
~~~~~~~~~~~~~~~~

- Python 3.6 is now the oldest supported version (:issue:`70`).

Bug fixes
~~~~~~~~~

- Remove ``attrs`` 19.2.0 depreciation warning (:issue:`68`).
- Fix compatibility with xarray 0.14.1 (:issue:`69`).

v0.3.0 (30 September 2019)
--------------------------
Expand Down
7 changes: 4 additions & 3 deletions xsimlab/process.py
Expand Up @@ -179,9 +179,9 @@ def put_in_store(self, value):
target_str = target_var.name

if target_type == VarType.GROUP:
raise ValueError("Variable {var!r} links to group variable {target!r}, "
"which is not supported. Declare {var!r} as a group "
"variable instead."
raise ValueError("Variable {var!r} links to group variable "
"{target!r}, which is not supported. Declare {var!r} "
"as a group variable instead."
.format(var=var.name, target=target_str))

elif (var_type == VarType.FOREIGN and
Expand Down Expand Up @@ -243,6 +243,7 @@ class _RuntimeMethodExecutor:
simulation.
"""

def __init__(self, meth, args=None):
self.meth = meth

Expand Down

0 comments on commit 477e996

Please sign in to comment.