14
0
forked from pool/python-requre

Accepting request 849228 from home:jayvdb:py-submit

dep of ogr

OBS-URL: https://build.opensuse.org/request/show/849228
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requre?expand=0&rev=1
This commit is contained in:
2020-11-19 12:20:57 +00:00
committed by Git OBS Bridge
commit 22b898b4f0
5 changed files with 123 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

9
python-requre.changes Normal file
View File

@@ -0,0 +1,9 @@
-------------------------------------------------------------------
Wed Nov 18 00:26:30 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Update to v0.4.0
-------------------------------------------------------------------
Mon Mar 9 09:32:59 AM UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.2.4

87
python-requre.spec Normal file
View File

@@ -0,0 +1,87 @@
#
# spec file for package python-requre
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-requre
Version: 0.4.0
Release: 0
Summary: Python libray for storing and using objects for testing
License: MIT
Group: Development/Languages/Python
URL: https://github.com/packit-service/requre
Source: https://files.pythonhosted.org/packages/source/r/requre/requre-%{version}.tar.gz
BuildRequires: %{python_module setuptools_scm_git_archive}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-click
Requires: python-requests
Suggests: python-pytest
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module click}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
# /SECTION
%python_subpackages
%description
Library for testing python code what allows store output of
various objects and use stored data for testing.
%prep
%setup -q -n requre-%{version}
sed -i '1{/#!/d}' requre/requre_patch.py
# https://github.com/packit/requre/issues/131
sed -i 's/not network_connection_avalilable()/False/' tests/*.py
# Remove cyclic dependency with ogr
rm tests/test_E2E_ogr.py
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/requre-patch
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative requre-patch
%postun
%python_uninstall_alternative requre-patch
%check
export LANG=en_US.UTF-8
# needs network: test_request_response or testWrite or write
# test_enabled_object_model fails intermittently
%pytest -rs -k 'not (test_request_response or testWrite or write or test_enabled_object_model)'
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/requre-patch
%{python_sitelib}/*
%changelog

3
requre-0.4.0.tar.gz Normal file
View File

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