15
0

Accepting request 1108356 from devel:languages:python

- 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/request/show/1108356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bibtexparser?expand=0&rev=8
This commit is contained in:
2023-09-01 12:19:41 +00:00
committed by Git OBS Bridge
5 changed files with 31 additions and 36 deletions

View File

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

View File

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

View File

@@ -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

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Fri Sep 1 02:52:53 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <dmueller@suse.com>

View File

@@ -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