From 43aafa515fd9b3857c7a395a2d215531cf6d5b46 Mon Sep 17 00:00:00 2001 From: Domenico Nappo Date: Fri, 7 Feb 2020 10:12:30 +0100 Subject: [PATCH] add nine, pathlib2 for py2 --- VERSION | 2 +- requirements.txt | 3 +++ src/lisfloodutilities/compare/__init__.py | 7 ++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 51176c7..af88ba8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.11 +0.11.1 diff --git a/requirements.txt b/requirements.txt index cca296a..36d2694 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,3 +9,6 @@ dask xarray pandas toolz + +pathlib2 +nine diff --git a/src/lisfloodutilities/compare/__init__.py b/src/lisfloodutilities/compare/__init__.py index aa855b5..63bef44 100644 --- a/src/lisfloodutilities/compare/__init__.py +++ b/src/lisfloodutilities/compare/__init__.py @@ -1,7 +1,12 @@ import os import logging import itertools -from pathlib import Path + +from nine import IS_PYTHON2 +if IS_PYTHON2: + from pathlib2 import Path +else: + from pathlib import Path import numpy as np from netCDF4 import Dataset