From 638ef2b221b50fb9a268d80a7150cd12fc1978815ceb5dc57397921c5ab8327f Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 1 Sep 2023 02:53:49 +0000 Subject: [PATCH] - Update to 1.4.0: * Using common strings in string interpolation is now the default. * Add option to adjust alignment of text of multi-line values. * Raise warning if parser is used multiple times, which leads to a merged library. * Allow preservation of existing order of entry fields in writer * Support for python 3.10 * Removing unused dependencies * Allow capital AND when splitting author list * Fix problem in `homogenize_latex_encoding` when authors are lists * Long description in setup.py - Switch to pyproject macros. - Drop patch python-bibtexparser-remove-unittest2.patch, dependency dropped. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bibtexparser?expand=0&rev=17 --- python-bibtexparser-1.2.0.tar.gz | 3 --- python-bibtexparser-1.4.0.tar.gz | 3 +++ python-bibtexparser-remove-unittest2.patch | 13 ---------- python-bibtexparser.changes | 18 +++++++++++++ python-bibtexparser.spec | 30 ++++++++-------------- 5 files changed, 31 insertions(+), 36 deletions(-) delete mode 100644 python-bibtexparser-1.2.0.tar.gz create mode 100644 python-bibtexparser-1.4.0.tar.gz delete mode 100644 python-bibtexparser-remove-unittest2.patch diff --git a/python-bibtexparser-1.2.0.tar.gz b/python-bibtexparser-1.2.0.tar.gz deleted file mode 100644 index 89d10c8..0000000 --- a/python-bibtexparser-1.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce311d73a15e803c1281ae498fe974af3c737c6f3e2cfaef5b17033bba3adc48 -size 88600 diff --git a/python-bibtexparser-1.4.0.tar.gz b/python-bibtexparser-1.4.0.tar.gz new file mode 100644 index 0000000..ccecc73 --- /dev/null +++ b/python-bibtexparser-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9b1a5a627eac8cbf998ad2238837c77a78775ed380747952916ec3c87e5877b +size 93130 diff --git a/python-bibtexparser-remove-unittest2.patch b/python-bibtexparser-remove-unittest2.patch deleted file mode 100644 index a5a53e3..0000000 --- a/python-bibtexparser-remove-unittest2.patch +++ /dev/null @@ -1,13 +0,0 @@ -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 - diff --git a/python-bibtexparser.changes b/python-bibtexparser.changes index 64635f8..0a46304 100644 --- a/python-bibtexparser.changes +++ b/python-bibtexparser.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Fri Sep 1 02:52:53 UTC 2023 - Steve Kowalik + +- Update to 1.4.0: + * Using common strings in string interpolation is now the default. + * Add option to adjust alignment of text of multi-line values. + * Raise warning if parser is used multiple times, which leads to a + merged library. + * Allow preservation of existing order of entry fields in writer + * Support for python 3.10 + * Removing unused dependencies + * Allow capital AND when splitting author list + * Fix problem in `homogenize_latex_encoding` when authors are lists + * Long description in setup.py +- Switch to pyproject macros. +- Drop patch python-bibtexparser-remove-unittest2.patch, dependency + dropped. + ------------------------------------------------------------------- Sun Jan 23 16:41:55 UTC 2022 - Dirk Müller diff --git a/python-bibtexparser.spec b/python-bibtexparser.spec index 76e1caf..e9aa55f 100644 --- a/python-bibtexparser.spec +++ b/python-bibtexparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-bibtexparser # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,48 +16,38 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-bibtexparser -Version: 1.2.0 +Version: 1.4.0 Release: 0 Summary: Bibtex parser for python License: BSD-3-Clause OR LGPL-3.0-only -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 pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-future >= 0.16.0 Requires: python-pyparsing >= 2.0.3 BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module future >= 0.16.0} BuildRequires: %{python_module pyparsing >= 2.0.3} BuildRequires: %{python_module pytest} -# Required for assertLogs unavailable in 2.7 unittest -%if 0%{?suse_version} <= 1500 -BuildRequires: python-unittest2 -%endif # /SECTION %python_subpackages %description -Python library to parse bibtex files.. +Python library to parse bibtex files. %prep -%setup -q -n python-bibtexparser-%{version} -%patch0 -p1 +%autosetup -p1 -n python-bibtexparser-%{version} sed -i -e '/^#!\//, 1d' bibtexparser/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -67,7 +57,7 @@ export LANG=C.utf8 %files %{python_files} %doc README.rst CHANGELOG %license COPYING -%{python_sitelib}/bibtexparser-%{version}-py*.egg-info -%{python_sitelib}/bibtexparser/ +%{python_sitelib}/bibtexparser +%{python_sitelib}/bibtexparser-%{version}.dist-info %changelog