[python-shapely] 01/04: New upstream version 1.6~b5

Bas Couwenberg sebastic at debian.org
Sat Aug 19 08:27:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository python-shapely.

commit 2af9645bfea62bf6760f11aea0e1a33c37da9473
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Aug 19 10:07:21 2017 +0200

    New upstream version 1.6~b5
---
 CHANGES.txt                    |  8 ++++++++
 README.rst                     | 10 +++++-----
 shapely/__init__.py            |  2 +-
 shapely/geometry/linestring.py |  2 ++
 4 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index b036941..73dfcd1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,6 +1,14 @@
 Changes
 =======
 
+1.6b5 (2017-08-18)
+------------------
+
+Bug fixes:
+
+- Passing a single coordinate to ``LineString()`` with speedups disabled now
+  raises a ValueError as happens with speedups enabled. This resolves #509.
+
 1.6b4 (2017-02-15)
 ------------------
 
diff --git a/README.rst b/README.rst
index 45d10ad..2e2db82 100644
--- a/README.rst
+++ b/README.rst
@@ -33,7 +33,7 @@ Shapely 1.6.x requires
 * Python >=2.6 (including Python 3.x)
 * GEOS >=3.3 
 
-Installing Shapely (1.6b2)
+Installing Shapely (1.6b5)
 ==========================
 
 Windows users have two good installation options: the wheels at
@@ -46,13 +46,13 @@ Python Package Index with a recent version of pip (8+):
 
 .. code-block:: console
 
-    $ pip install shapely==1.6b2
+    $ pip install shapely==1.6b5
 
 A few extra speedups that require Numpy can be had by running
 
 .. code-block:: console
 
-    $ pip install shapely[vectorized]==1.6b2
+    $ pip install shapely[vectorized]==1.6b5
 
 If you want to build Shapely from source for compatibility with
 other modules that depend on GEOS (such as cartopy or osgeo.ogr)
@@ -63,8 +63,8 @@ you may ignore the binary wheels.
     $ pip install shapely --no-binary shapely
 
 Binary wheels are also available for Linux. To get them, use `pip shapely
-shapely==1.6b2`. To avoid them, use `pip install shapely --no-binary
-shapely==1.6b2`.
+shapely==1.6b5`. To avoid them, use `pip install shapely --no-binary
+shapely==1.6b5`.
 
 In other situations, install `geos_c` libs and headers by any means 
 (for example, `brew install geos` on OS X or
diff --git a/shapely/__init__.py b/shapely/__init__.py
index e3fe1e7..69599ff 100644
--- a/shapely/__init__.py
+++ b/shapely/__init__.py
@@ -1 +1 @@
-__version__ = "1.6b4"
+__version__ = "1.6b5"
diff --git a/shapely/geometry/linestring.py b/shapely/geometry/linestring.py
index 9bba6cf..6327863 100644
--- a/shapely/geometry/linestring.py
+++ b/shapely/geometry/linestring.py
@@ -210,6 +210,8 @@ def geos_linestring_from_py(ob, update_geom=None, update_ndim=0):
 
     if m == 0:
         return None
+    elif m == 1:
+        raise ValueError("LineStrings must have at least 2 coordinate tuples")
 
     def _coords(o):
         if isinstance(o, Point):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/python-shapely.git



More information about the Pkg-grass-devel mailing list