From ea2aaa8d87e0964ec0b351fe6332b07af4cdc297 Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Wed, 13 May 2020 23:59:14 +0200 Subject: [PATCH] Upgrade to python casacore 3.3.1, test on Python 3.8 (#116) * Upgrade to python-casacore 3.3.1 * Add Python 3.8 to travis testing matrix --- .travis.yml | 1 + .travis/python38.docker | 20 ++++++++++++++++++++ HISTORY.rst | 5 +++++ setup.py | 2 +- 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .travis/python38.docker diff --git a/.travis.yml b/.travis.yml index 5d3cd469..fc8b1fbf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ matrix: include: - env: TARGET=python36 - env: TARGET=python37 + - env: TARGET=python38 sudo: required services: - docker diff --git a/.travis/python38.docker b/.travis/python38.docker new file mode 100644 index 00000000..d2f366f9 --- /dev/null +++ b/.travis/python38.docker @@ -0,0 +1,20 @@ +FROM kernsuite/base:5 + +# Install base requirements +RUN DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:deadsnakes/ppa -y +RUN DEBIAN_FRONTEND=noninteractive apt update -y +RUN DEBIAN_FRONTEND=noninteractive apt install -y build-essential curl git python3-distutils python3.8 python3.8-dev +RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py +RUN python3.8 get-pip.py +ADD . /code +WORKDIR /code + +# Test without xarray +RUN python3.8 -m pip install .[testing] +RUN python3.8 -m pip freeze +RUN python3.8 -m pytest --flake8 -s -vvv /code/daskms + +# Test with xarray +RUN python3.8 -m pip install .[testing,xarray] +RUN python3.8 -m pip freeze +RUN python3.8 -m pytest --flake8 -s -vvv /code/daskms diff --git a/HISTORY.rst b/HISTORY.rst index 42eabf56..6bcd617b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,11 @@ History ======= +0.2.6 (YYYY-MM-DD) +------------------ +* Test on Python 3.8 (:pr:`116`) +* Depend on python-casacore 3.3.1 (:pr:`116`) + 0.2.5 (2020-05-11) ------------------ * Remove deadlock in TableProxy weakref.finalize on Python 3.6 (:pr:`113`) diff --git a/setup.py b/setup.py index a627d62e..87666e71 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ if not on_rtd: install_requires += [ "numpy >= 1.14.0", - "python-casacore >= 3.2.0", + "python-casacore >= 3.3.1", ]