1
0

Accepting request 1198719 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1198719
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-habanero?expand=0&rev=2
This commit is contained in:
Ana Guerrero 2024-09-05 13:46:52 +00:00 committed by Git OBS Bridge
commit 3ac0ae6272
5 changed files with 21 additions and 28 deletions

View File

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

3
habanero-1.2.6.tar.gz Normal file
View File

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

View File

@ -1,20 +0,0 @@
---
test/test-content_negotation.py | 2 ++
1 file changed, 2 insertions(+)
--- a/test/test-content_negotation.py
+++ b/test/test-content_negotation.py
@@ -71,11 +71,13 @@ def test_content_negotiation_raises_an_h
# warnings
+@pytest.mark.vcr
def test_content_negotiation_throws_warnings():
with pytest.warns(UserWarning):
cn.content_negotiation(ids=["10.1126/science.169.3946.635", "foo"])
+@pytest.mark.vcr
def test_content_negotiation_throws_warnings_can_be_suppressed():
warnings.filterwarnings("ignore")
x = cn.content_negotiation(ids=["10.1126/science.169.3946.635", "foo"])

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Wed Sep 4 12:15:50 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>
- removed mark-vcr-tests.patch, no longer needed.
-------------------------------------------------------------------
Tue Sep 3 12:48:59 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>
- update to 1.2.6:
* mark two more tests for vcr to create cassettes for (both content_negotation tests) - no user facing changes (#114)
* habanero now conditionally uses bibtexparser to roundtrip bibtex to attempt to fix any bibtex that's not formatted correctly (#144) (#153)
* generalize handling of field queries like query.publisher-name to allow all field queries, and any in the future (#150) (#152)
* improved error handling (#123)
* ids now a required param in the Crossref.prefixes method; improved crossef API error parsing (#116)
-------------------------------------------------------------------
Sat Feb 4 22:37:40 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-habanero
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,15 +17,12 @@
Name: python-habanero
Version: 1.2.3
Version: 1.2.6
Release: 0
Summary: Low Level Client for Crossref Search API
License: MIT
URL: https://github.com/sckott/habanero
Source: https://files.pythonhosted.org/packages/source/h/habanero/habanero-%{version}.tar.gz
# PATCH-FIX-UPSTREAM mark-vcr-tests.patch gh#sckott/habanero#114 mcepl@suse.com
# mark two more tests as vcr (to skip network access)
Patch0: mark-vcr-tests.patch
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes