Accepting request 887099 from home:bnavigator:branches:Application:Geo

- Disable python36 build: pyproj not available
- Enable test suite (at least a part of it)

OBS-URL: https://build.opensuse.org/request/show/887099
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-OWSLib?expand=0&rev=12
This commit is contained in:
2021-04-21 07:50:52 +00:00
committed by Git OBS Bridge
parent f310842092
commit cab10ea299
4 changed files with 45 additions and 7 deletions

3
OWSLib-0.23.0-gh.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:deeaa1714a3e19a1424dcc99464e5bbb1c988c38fdb8e2822ca995bd7f02dc44
size 923764

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0a03a9978673f377df45107024e2aae006f85afe7ef7bf4640ef663167a4386f
size 165903

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 20 22:50:28 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Disable python36 build: pyproj not available
- Enable test suite (at least a part of it)
-------------------------------------------------------------------
Sat Feb 13 00:34:04 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -21,15 +21,21 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%define skip_python2 1
%define skip_python36 1
Name: python-OWSLib
Version: 0.23.0
Release: 0
Summary: Python interface to OGC Web Services
License: BSD-3-Clause
Group: Productivity/Scientific/Other
URL: http://geopython.github.com/OWSLib/
Source: https://files.pythonhosted.org/packages/source/O/OWSLib/OWSLib-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.6}
URL: http://geopython.github.io/OWSLib/
# get the test suite form Github
Source: https://github.com/geopython/OWSLib/archive/refs/tags/%{version}.tar.gz#/OWSLib-%{version}-gh.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pyproj >= 2}
BuildRequires: %{python_module python-dateutil >= 1.5}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests >= 1.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -44,6 +50,9 @@ Obsoletes: python-owslib < %{version}
Provides: %{oldpython}-pymodis = %{version}
Obsoletes: %{oldpython}-pymodis < %{version}
%endif
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
BuildArch: noarch
%python_subpackages
@@ -62,9 +71,32 @@ related content models.
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
# override tox.ini: no doctest no cov, register own mark
echo '[pytest]
markers =
online
' > pytest.ini
# don't be too picky about failing tests. Upstreams CI is failing too.
# wfs: pyproj complaints about no db context
donttest+="test_ows_interfaces_wfs"
donttest+=" or (TestOffline and test_wfs_100_noremotemd_parse_all)"
donttest+=" or (TestOffline and test_wfs_100_noremotemd_parse_single)"
donttest+=" or (TestOffline and test_wfs_100_noremotemd_parse_none)"
donttest+=" or (TestOffline and test_wfs_110_remotemd_parse_all)"
donttest+=" or (TestOffline and test_wfs_110_remotemd_parse_single)"
donttest+=" or (TestOffline and test_wfs_200_remotemd_parse_all)"
donttest+=" or (TestOffline and test_wfs_200_remotemd_parse_single)"
donttest+=" or (TestOffline and test_wms_130_remotemd_parse_all)"
donttest+=" or (TestOffline and test_wms_130_remotemd_parse_single)"
# online but not marked
donttest+=" or test_wmts_example_informatievlaanderen"
%pytest -s -m "not online" -k "not ($donttest)"
%files %python_files
%doc AUTHORS.rst CHANGES.rst README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/owslib
%{python_sitelib}/OWSLib-%{version}*-info
%changelog