From 605bf299203fcf93cf9dc74ee08a5de0a5c017253dd608a826c4d08c5705e951 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 2 Jan 2025 14:12:17 +0000 Subject: [PATCH] - update to 1.4.3: * Bugfix: Use raw strings to fix invalid escape OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bibtexparser?expand=0&rev=21 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + python-bibtexparser-1.4.1.tar.gz | 3 ++ python-bibtexparser-1.4.3.tar.gz | 3 ++ python-bibtexparser.changes | 74 ++++++++++++++++++++++++++++++++ python-bibtexparser.spec | 63 +++++++++++++++++++++++++++ 6 files changed, 167 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-bibtexparser-1.4.1.tar.gz create mode 100644 python-bibtexparser-1.4.3.tar.gz create mode 100644 python-bibtexparser.changes create mode 100644 python-bibtexparser.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-bibtexparser-1.4.1.tar.gz b/python-bibtexparser-1.4.1.tar.gz new file mode 100644 index 0000000..cbe6719 --- /dev/null +++ b/python-bibtexparser-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42a7db2e14c203b21f0eb0a8fecdf9d010393a8c7555766ff20d81e71e0a627d +size 97146 diff --git a/python-bibtexparser-1.4.3.tar.gz b/python-bibtexparser-1.4.3.tar.gz new file mode 100644 index 0000000..4f5e7e0 --- /dev/null +++ b/python-bibtexparser-1.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:806f657e6d0b4d4bc20aec138e46803c5547b14bb91c63d1f055c0ea504682da +size 97163 diff --git a/python-bibtexparser.changes b/python-bibtexparser.changes new file mode 100644 index 0000000..ebaa923 --- /dev/null +++ b/python-bibtexparser.changes @@ -0,0 +1,74 @@ +------------------------------------------------------------------- +Thu Jan 2 14:11:59 UTC 2025 - Dirk Müller + +- update to 1.4.3: + * Bugfix: Use raw strings to fix invalid escape + +------------------------------------------------------------------- +Thu Oct 5 09:21:41 UTC 2023 - Dirk Müller + +- update to 1.4.1: + * Set `align_values` to an int or bool to fix min alignment in + writing + * Fix some docstrings + * `customization.getnames`: respect protected names + * No dict caching in bibdatabase. This makes + the library slightly slower in some cases, but fixes + previously wrong caching. + +------------------------------------------------------------------- +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 + +- update to 1.2.0: + * drop python2 support + +------------------------------------------------------------------- +Mon Dec 14 00:56:46 UTC 2020 - Benjamin Greiner + +- Fix condition around BuildRequirement +------------------------------------------------------------------- +Mon Aug 17 08:29:09 UTC 2020 - Matej Cepl + +- Remove unnecessary BR on devel. +- Don't build python2 on Tumbleweed. + +------------------------------------------------------------------- +Tue Jun 30 10:24:22 UTC 2020 - Matej Cepl + +- Added explanation in SPEC file + +------------------------------------------------------------------- +Mon Jun 1 10:15:19 UTC 2020 - pgajdos@suse.com + +- unittest2 is not neccessary for python3 +- added patches + use unittest2 only if present, fall back to unittest + + python-bibtexparser-remove-unittest2.patch + +------------------------------------------------------------------- +Wed Apr 15 10:00:08 UTC 2020 - Matej Cepl + +- Switch from using nosetest runner to pytest + +------------------------------------------------------------------- +Thu May 2 17:40:45 UTC 2019 - Todd R + +- Initial version diff --git a/python-bibtexparser.spec b/python-bibtexparser.spec new file mode 100644 index 0000000..bf55c2d --- /dev/null +++ b/python-bibtexparser.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-bibtexparser +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-bibtexparser +Version: 1.4.3 +Release: 0 +Summary: Bibtex parser for python +License: BSD-3-Clause OR LGPL-3.0-only +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 +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pyparsing >= 2.0.3 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pyparsing >= 2.0.3} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Python library to parse bibtex files. + +%prep +%autosetup -p1 -n python-bibtexparser-%{version} +sed -i -e '/^#!\//, 1d' bibtexparser/*.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=C.utf8 +%pytest + +%files %{python_files} +%doc README.rst CHANGELOG +%license COPYING +%{python_sitelib}/bibtexparser +%{python_sitelib}/bibtexparser-%{version}.dist-info + +%changelog