[owslib] 01/04: Imported Upstream version 0.11.2

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Mon May 16 09:43:20 UTC 2016


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

sebastic pushed a commit to branch master
in repository owslib.

commit 07d5419f0ae0c3147ea7666287c4faf6933a8dfd
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon May 16 11:36:05 2016 +0200

    Imported Upstream version 0.11.2
---
 VERSION.txt                      | 2 +-
 owslib/__init__.py               | 2 +-
 owslib/csw.py                    | 4 ++--
 requirements-dev.txt             | 4 ++++
 tests/doctests/csw_geoserver.txt | 2 +-
 tests/doctests/wmts.txt          | 4 ++--
 6 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/VERSION.txt b/VERSION.txt
index af88ba8..bc859cb 100644
--- a/VERSION.txt
+++ b/VERSION.txt
@@ -1 +1 @@
-0.11.1
+0.11.2
diff --git a/owslib/__init__.py b/owslib/__init__.py
index 744f304..3a3f1dd 100644
--- a/owslib/__init__.py
+++ b/owslib/__init__.py
@@ -1,3 +1,3 @@
 from __future__ import (absolute_import, division, print_function)
 
-__version__ = '0.11.1'
+__version__ = '0.11.2'
diff --git a/owslib/csw.py b/owslib/csw.py
index c6eb08b..ff6f9df 100644
--- a/owslib/csw.py
+++ b/owslib/csw.py
@@ -529,7 +529,7 @@ class CatalogueServiceWeb(object):
 
     def _parseinsertresult(self):
         self.results['insertresults'] = []
-        for i in self._exml.findall(util.nspath_eval('csw:InsertResult', namespaces)):
+        for i in self._exml.findall('.//'+util.nspath_eval('csw:InsertResult', namespaces)):
             for j in i.findall(util.nspath_eval('csw:BriefRecord/dc:identifier', namespaces)):
                 self.results['insertresults'].append(util.testXMLValue(j))
 
@@ -561,7 +561,7 @@ class CatalogueServiceWeb(object):
                 self.records[identifier] = CswRecord(i)
 
     def _parsetransactionsummary(self):
-        val = self._exml.find(util.nspath_eval('csw:TransactionSummary', namespaces))
+        val = self._exml.find(util.nspath_eval('csw:TransactionResponse/csw:TransactionSummary', namespaces))
         if val is not None:
             rid = val.attrib.get('requestId')
             self.results['requestid'] = util.testXMLValue(rid, True)
diff --git a/requirements-dev.txt b/requirements-dev.txt
index d51e4fc..a7bde13 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -3,3 +3,7 @@ pytest
 pytest-cov
 Pillow
 tox
+# install libraries to stop SSL related InsecurePlatformWarning
+pyopenssl        ; python_version < '2.7.9'
+ndg-httpsclient  ; python_version < '2.7.9'
+pyasn1           ; python_version < '2.7.9'
diff --git a/tests/doctests/csw_geoserver.txt b/tests/doctests/csw_geoserver.txt
index 0a54e04..6ac915a 100644
--- a/tests/doctests/csw_geoserver.txt
+++ b/tests/doctests/csw_geoserver.txt
@@ -1,6 +1,6 @@
 >>> from __future__ import (absolute_import, division, print_function)
 >>> from owslib.csw import CatalogueServiceWeb
->>> c=CatalogueServiceWeb('http://sp7.irea.cnr.it/geoserver/ows')
+>>> c=CatalogueServiceWeb('http://gis.armf.bg:8080/geoserver/csw')
 >>> c.getrecords2(typenames='csw:Record')
 >>> c.results.get('returned') > 0
 True
diff --git a/tests/doctests/wmts.txt b/tests/doctests/wmts.txt
index 2d238d5..961efd3 100644
--- a/tests/doctests/wmts.txt
+++ b/tests/doctests/wmts.txt
@@ -14,8 +14,8 @@ Find out what a WMTS has to offer. Service metadata:
     '1.0.0'
     >>> wmts.identification.title
     'NASA Global Imagery Browse Services for EOSDIS'
-    >>> str.strip(wmts.identification.abstract)
-    'Near real time imagery from multiple NASA instruments'
+    >>> bytearray(wmts.identification.abstract, 'utf-8')
+    bytearray(b'The Global Imagery Browse Services (GIBS) system is a core EOSDIS component which provides a scalable, responsive, highly available, and community standards based set of imagery services.  These services are designed with the goal of advancing user interactions with EOSDIS\xe2\x80\x99 inter-disciplinary data through enhanced visual representation and discovery.')
     >>> wmts.identification.keywords
     ['World', 'Global']
 

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



More information about the Pkg-grass-devel mailing list