14
0
forked from pool/python-requre

- Update to 0.8.2:

* default decorator if not given
  * guess output decorator class
  * class shortcut decorators 
  * python tuple support as base type
  * Fix a performance issue when detecting cassettes following the old
    naming format.
  * New decorators for handling temporary files (MkTemp) and directories
    (MkDTemp) in a more transparent way. The old implementation based on
    static paths and counter has been deprecated.
  * Fix the problem with kwarg decorators that causes the function body
    not to be executed.
- Change skipped tests expression due to reorganization.
- Add GitPython to BuildRequires

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requre?expand=0&rev=3
This commit is contained in:
2022-06-16 04:31:24 +00:00
committed by Git OBS Bridge
parent f6315028d1
commit 9d4a304595
4 changed files with 29 additions and 9 deletions

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Thu Jun 16 04:31:02 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.8.2:
* default decorator if not given
* guess output decorator class
* class shortcut decorators
* python tuple support as base type
* Fix a performance issue when detecting cassettes following the old
naming format.
* New decorators for handling temporary files (MkTemp) and directories
(MkDTemp) in a more transparent way. The old implementation based on
static paths and counter has been deprecated.
* Fix the problem with kwarg decorators that causes the function body
not to be executed.
- Change skipped tests expression due to reorganization.
- Add GitPython to BuildRequires
-------------------------------------------------------------------
Wed Nov 18 00:26:30 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-requre
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,11 +19,10 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-requre
Version: 0.4.0
Version: 0.8.2
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}
@@ -31,6 +30,7 @@ BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-GitPython
Requires: python-PyYAML
Requires: python-click
Requires: python-requests
@@ -38,6 +38,7 @@ Suggests: python-pytest
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module GitPython}
BuildRequires: %{python_module click}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
@@ -74,9 +75,10 @@ rm tests/test_E2E_ogr.py
%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)'
# needs network: test_record_requests, test_online_replacing, StoreAnyRequest
# and TestWrite
# test_a fails
%pytest -rs -k 'not (test_record_requests or test_online_replacing or StoreAnyRequest or TestWrite or (StoreFunctionOutput and test_a))'
%files %{python_files}
%doc README.md

View File

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

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

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