From ccabaa87f553833963cac7207058dfece76ed8a0 Mon Sep 17 00:00:00 2001 From: Stuart Grieve Date: Fri, 29 Jun 2018 10:40:38 +0100 Subject: [PATCH 1/4] fixing broken paths in the readme --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 19099e2..878f1fc 100644 --- a/README.rst +++ b/README.rst @@ -64,7 +64,7 @@ Dependencies can be tracked by visiting `requires.io Date: Fri, 29 Jun 2018 10:41:09 +0100 Subject: [PATCH 2/4] detecting python verison so module import doesnt fail on python3 --- spatial_efd/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spatial_efd/__init__.py b/spatial_efd/__init__.py index e2a5e33..77cbbcf 100644 --- a/spatial_efd/__init__.py +++ b/spatial_efd/__init__.py @@ -1 +1,5 @@ -from spatial_efd import * +import sys +if(sys.version[0] == 2): + from spatial_efd import * +else: + from .spatial_efd import * From 9feec57c1678c1a2d2da631760a745ba854a5cfb Mon Sep 17 00:00:00 2001 From: Stuart Grieve Date: Fri, 29 Jun 2018 10:42:44 +0100 Subject: [PATCH 3/4] fixing broken hyperlink --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 878f1fc..4aedf79 100644 --- a/README.rst +++ b/README.rst @@ -57,7 +57,7 @@ Install ``spatial_efd`` by running: Dependencies ------------ -This package supports Python 2.7 and Python 3 and is tested on Linux and Windows environments, using both the standard python interpreter and [pypy](https://pypy.org). It requires ``matplotlib``, ``numpy``, ``future`` and ``pyshp``. These packages will all install automatically if ``spatial_efd`` is installed using ``pip``. +This package supports Python 2.7 and Python 3 and is tested on Linux and Windows environments, using both the standard python interpreter and `pypy `_. It requires ``matplotlib``, ``numpy``, ``future`` and ``pyshp``. These packages will all install automatically if ``spatial_efd`` is installed using ``pip``. Dependencies can be tracked by visiting `requires.io `_ From 6a37564fcc9e699c33de99bccdeb719bedc040ce Mon Sep 17 00:00:00 2001 From: Stuart Grieve Date: Fri, 29 Jun 2018 10:49:30 +0100 Subject: [PATCH 4/4] increment version number for new release --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b6785e8..99b17cf 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def readme(): setup(name='spatial_efd', - version='1.1.0', + version='1.1.1', description='Spatial elliptical fourier analysis', url='http://github.com/sgrieve/spatial-efd', long_description=readme(),