forked from pool/python-geomet
- version update to 1.0.0 * Fix bug in _round_and_pad with exponential coordinate values (#73) * Use assertNotEqual instead of assertNotEquals in tests, for Python 3.11 compatibility (#77) * Add support for Python 3.8, 3.9, and 3.10 (#79, #84) * Drop support for end-of-life Python versions 2.7, 3.4, 3.5, and 3.6 (#84) * Fix structure of coordinate values in GeoJSON to EsriJSON conversion (#82) * Update README with to add History and Limitations sections, and to expand on functionality (#86) - added patches fix https://github.com/geomet/geomet/issues/90 + python-geomet-no-six.patch OBS-URL: https://build.opensuse.org/request/show/1086483 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geomet?expand=0&rev=8
62 lines
1.8 KiB
Diff
62 lines
1.8 KiB
Diff
Index: geomet-1.0.0/geomet/util.py
|
|
===================================================================
|
|
--- geomet-1.0.0.orig/geomet/util.py
|
|
+++ geomet-1.0.0/geomet/util.py
|
|
@@ -12,7 +12,6 @@
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
import itertools
|
|
-import six
|
|
import collections.abc as collections
|
|
|
|
|
|
@@ -115,7 +114,7 @@ def flatten_multi_dim(sequence):
|
|
"""
|
|
for x in sequence:
|
|
if (isinstance(x, collections.Iterable)
|
|
- and not isinstance(x, six.string_types)):
|
|
+ and not isinstance(x, str)):
|
|
for y in flatten_multi_dim(x):
|
|
yield y
|
|
else:
|
|
Index: geomet-1.0.0/geomet/wkt.py
|
|
===================================================================
|
|
--- geomet-1.0.0.orig/geomet/wkt.py
|
|
+++ geomet-1.0.0/geomet/wkt.py
|
|
@@ -13,7 +13,6 @@
|
|
# limitations under the License.
|
|
import geomet
|
|
import itertools
|
|
-import six
|
|
import tokenize
|
|
|
|
try:
|
|
@@ -134,7 +133,7 @@ def loads(string):
|
|
if importer is None:
|
|
_unsupported_geom_type(geom_type)
|
|
|
|
- peek = six.advance_iterator(tokens)
|
|
+ peek = next(tokens)
|
|
if peek == 'EMPTY':
|
|
if geom_type == 'GEOMETRYCOLLECTION':
|
|
return dict(type='GeometryCollection', geometries=[])
|
|
Index: geomet-1.0.0/requirements.txt
|
|
===================================================================
|
|
--- geomet-1.0.0.orig/requirements.txt
|
|
+++ geomet-1.0.0/requirements.txt
|
|
@@ -1,2 +1 @@
|
|
click
|
|
-six
|
|
Index: geomet-1.0.0/setup.py
|
|
===================================================================
|
|
--- geomet-1.0.0.orig/setup.py
|
|
+++ geomet-1.0.0/setup.py
|
|
@@ -65,6 +65,6 @@ setup(
|
|
'Topic :: Scientific/Engineering :: GIS',
|
|
],
|
|
zip_safe=False,
|
|
- install_requires=['click', 'six'],
|
|
+ install_requires=['click'],
|
|
python_requires=">=3.7, <4",
|
|
)
|