Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-geomet for openSUSE:Factory checked in at 2023-05-12 20:37:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-geomet (Old) and /work/SRC/openSUSE:Factory/.python-geomet.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-geomet" Fri May 12 20:37:07 2023 rev:4 rq:1086538 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-geomet/python-geomet.changes 2020-11-05 21:56:00.620037082 +0100 +++ /work/SRC/openSUSE:Factory/.python-geomet.new.1533/python-geomet.changes 2023-05-12 20:39:59.422758694 +0200 @@ -1,0 +2,14 @@ +Thu May 11 10:38:08 UTC 2023 - [email protected] + +- 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 + +------------------------------------------------------------------- Old: ---- 0.2.1.tar.gz New: ---- 1.0.0.tar.gz python-geomet-no-six.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-geomet.spec ++++++ --- /var/tmp/diff_new_pack.LKrGsN/_old 2023-05-12 20:39:59.834760958 +0200 +++ /var/tmp/diff_new_pack.LKrGsN/_new 2023-05-12 20:39:59.838760980 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-geomet # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,26 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-geomet -Version: 0.2.1 +Version: 1.0.0 Release: 0 Summary: GeoJSON <-> WKT/WKB conversion utilities License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/geomet/geomet Source: https://github.com/geomet/geomet/archive/%{version}.tar.gz +# https://github.com/geomet/geomet/issues/90 +Patch0: python-geomet-no-six.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click -Requires: python-six Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module click} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module six} # /SECTION %python_subpackages @@ -44,27 +43,19 @@ GeoJSON <-> WKT/WKB conversion utilities %prep -%setup -q -n geomet-%{version} +%autosetup -p1 -n geomet-%{version} %build +sed -i '1{/^#!/ d}' geomet/*.py %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/geomet -rm %{buildroot}%{_prefix}/LICENSE %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -export PATH=$PATH:%{buildroot}%{_bindir} -export PYTHONDONTWRITEBYTECODE=1 -cp geomet/tests/test_cli.py geomet/tests/test_cli.py.orig -%{python_expand \ -cp geomet/tests/test_cli.py.orig geomet/tests/test_cli.py -sed -i 's:geomet:geomet-%{$python_version}:' geomet/tests/test_cli.py -export PYTHONPATH=:%{buildroot}%{$python_sitelib} -$python -m pytest -} +%pytest %post %python_install_alternative geomet ++++++ 0.2.1.tar.gz -> 1.0.0.tar.gz ++++++ ++++ 3588 lines of diff (skipped) ++++++ python-geomet-no-six.patch ++++++ 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", )
