Hello community,
here is the log from the commit of package python-bibtexparser for
openSUSE:Factory checked in at 2020-06-02 14:39:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-bibtexparser (Old)
and /work/SRC/openSUSE:Factory/.python-bibtexparser.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-bibtexparser"
Tue Jun 2 14:39:50 2020 rev:3 rq:810602 version:1.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-bibtexparser/python-bibtexparser.changes
2020-04-15 19:56:55.593682729 +0200
+++
/work/SRC/openSUSE:Factory/.python-bibtexparser.new.3606/python-bibtexparser.changes
2020-06-02 14:40:32.639882680 +0200
@@ -1,0 +2,8 @@
+Mon Jun 1 10:15:19 UTC 2020 - [email protected]
+
+- unittest2 is not neccessary for python3
+- added patches
+ use unittest2 only if present, fall back to unittest
+ + python-bibtexparser-remove-unittest2.patch
+
+-------------------------------------------------------------------
New:
----
python-bibtexparser-remove-unittest2.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-bibtexparser.spec ++++++
--- /var/tmp/diff_new_pack.ehuUjx/_old 2020-06-02 14:40:33.939886789 +0200
+++ /var/tmp/diff_new_pack.ehuUjx/_new 2020-06-02 14:40:33.943886802 +0200
@@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without python2
Name: python-bibtexparser
Version: 1.1.0
Release: 0
@@ -25,6 +26,8 @@
Group: Development/Languages/Python
URL: https://github.com/sciunto-org/python-bibtexparser
Source:
https://github.com/sciunto-org/python-bibtexparser/archive/v%{version}.tar.gz#/python-bibtexparser-%{version}.tar.gz
+# https://github.com/sciunto-org/python-bibtexparser/pull/259
+Patch0: python-bibtexparser-remove-unittest2.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -36,7 +39,9 @@
BuildRequires: %{python_module future >= 0.16.0}
BuildRequires: %{python_module pyparsing >= 2.0.3}
BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module unittest2}
+%if %{with python2}
+BuildRequires: python-unittest2
+%endif
# /SECTION
%python_subpackages
@@ -45,6 +50,7 @@
%prep
%setup -q -n python-bibtexparser-%{version}
+%patch0 -p1
sed -i -e '/^#!\//, 1d' bibtexparser/*.py
%build
++++++ python-bibtexparser-remove-unittest2.patch ++++++
Index: python-bibtexparser-1.1.0/bibtexparser/tests/test_crossref_resolving.py
===================================================================
---
python-bibtexparser-1.1.0.orig/bibtexparser/tests/test_crossref_resolving.py
2019-01-17 16:31:34.000000000 +0100
+++ python-bibtexparser-1.1.0/bibtexparser/tests/test_crossref_resolving.py
2020-06-01 11:32:48.246219654 +0200
@@ -1,4 +1,7 @@
-import unittest2 as unittest
+try:
+ import unittest2 as unittest
+except ImportError:
+ import unittest
from bibtexparser.bibdatabase import BibDatabase
from bibtexparser.bparser import BibTexParser