From d5ea132362cd7751dcd147aa711fcc1424667d8c0785d34895fefe6f5203ba1f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 14 Nov 2024 09:36:24 +0000 Subject: [PATCH] - Update to 5.3.3 * A small bugfix release to ensure logging uses a namespace rather than the root logger !213. This should allow pymarc log messages to be more legible in applications that use it. * On the development side, the setup.py was replaced with pyproject.toml, and the CI build was switched to use uv to manage the virtual environment. - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install - Limit Python files matched in %files section - Use Python 3.11 on SLE-15 by default OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymarc?expand=0&rev=25 --- .gitattributes | 23 +++++++ .gitignore | 1 + pymarc-5.1.2.tar.gz | 3 + pymarc-5.2.2.tar.gz | 3 + pymarc-5.2.3.tar.gz | 3 + python-pymarc.changes | 148 ++++++++++++++++++++++++++++++++++++++++++ python-pymarc.spec | 66 +++++++++++++++++++ 7 files changed, 247 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pymarc-5.1.2.tar.gz create mode 100644 pymarc-5.2.2.tar.gz create mode 100644 pymarc-5.2.3.tar.gz create mode 100644 python-pymarc.changes create mode 100644 python-pymarc.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/pymarc-5.1.2.tar.gz b/pymarc-5.1.2.tar.gz new file mode 100644 index 0000000..ae6f6c5 --- /dev/null +++ b/pymarc-5.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81ce6bfe9b47170f03d8a99209e4211778ade015a67b1eeb6b30862d4e24ae58 +size 234768 diff --git a/pymarc-5.2.2.tar.gz b/pymarc-5.2.2.tar.gz new file mode 100644 index 0000000..c14df88 --- /dev/null +++ b/pymarc-5.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0913b4167a4337190598914c3642c5ae4f0f64a26bc4316f380cc54f65d8a741 +size 237608 diff --git a/pymarc-5.2.3.tar.gz b/pymarc-5.2.3.tar.gz new file mode 100644 index 0000000..3b884a4 --- /dev/null +++ b/pymarc-5.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02a151d89c3b36f92bbc92c2e972bcfe91b91fc93529d8862e5f7c292a15c9f0 +size 235135 diff --git a/python-pymarc.changes b/python-pymarc.changes new file mode 100644 index 0000000..71d707e --- /dev/null +++ b/python-pymarc.changes @@ -0,0 +1,148 @@ +------------------------------------------------------------------- +Thu Nov 14 08:56:21 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 5.3.3 + * A small bugfix release to ensure logging uses a namespace + rather than the root logger !213. This should allow pymarc + log messages to be more legible in applications that use it. + * On the development side, the setup.py was replaced with + pyproject.toml, and the CI build was switched to use uv + to manage the virtual environment. +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install +- Limit Python files matched in %files section +- Use Python 3.11 on SLE-15 by default + +------------------------------------------------------------------- +Sun Aug 18 16:53:05 UTC 2024 - Dirk Müller + +- update to 5.2.2: + * Leader object is correctly initialized when the force_utf8 + option is being used + * fix for the behavior of Field.indicators to preserve backwards + compatibility when setting the indicators to a list or tuple + of two items + * Added MARCMakerReader class for reading MARC data from a + textual representation of a MARC record, expanding the previous + capability of pymarc to output MARC records in this format + * The Leader class is now automatically initialized for easier + access and updates + * Created Indicators type to limit indicator length and improve + handling + * Improved documentation of record status + * Field objects now throw a KeyError exception if you try to + set a subfield since they don't contain subfields + * Fixed issue with iterating over fields and subfields + +------------------------------------------------------------------- +Sat Mar 16 12:56:42 UTC 2024 - Dirk Müller + +- update to 5.1.2: + * minor changes + +------------------------------------------------------------------- +Fri Jan 5 18:21:10 UTC 2024 - Dirk Müller + +- update to 5.1.1: + * py.typed marker + +------------------------------------------------------------------- +Sat Dec 9 10:04:29 UTC 2023 - Dirk Müller + +- update to 5.1.0: + * Formatting fixes + * Fstring conversion + * Fixed: Normalize JSONHandler class name + * Adds a guardrail for handling malformed MARC8 data in + multibytes instead of raising exception +- use packaged LICENSE + +------------------------------------------------------------------- +Tue Apr 11 05:43:20 UTC 2023 - Steve Kowalik + +- Update to 4.2.2: + * Bugfix for python_requires in setup.py. + +------------------------------------------------------------------- +Fri Oct 28 20:11:57 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 4.2.1 + * Bugfix for Field.delete_subfield() for situations when a subfield value is present with the name of the subfield that you want to delete. + * Updated README to point to ReadTheDocs documentation. + +------------------------------------------------------------------- +Wed Oct 5 00:39:26 UTC 2022 - Yogalakshmi Arunachalam + +- Update to 4.2.0 + * Merge branch 'linked_fields' into 'main' + * Adds a method to get linked (880) fields + * fix default branch + * ran black . + * Merge branch 'exception-typo' into 'master' + * removed innaccurate text fixes #178 + * FatalErorReader typo + * fixes #179 + * Merge branch 'issnl' into 'master' + * ISSN-L + * Ignore venv + * Merge branch 'master' into 'master' + * Fix issue #176 - allow writing records parsed with to_unicode=False + * latest committers + * merged + * Merge branch 'fontanka16-master-patch-75274' into 'master' + * Merge branch 'readme-irc' into 'master' + * Fix pep8 violation in pymarc.Record.sudoc docstring + * (readme) freenode --> libera + * Merge branch 'wrecksdart-master-patch-69704' into 'master' + * Updated docstring and informational URL for sudoc + * Update CONTRIBUTING.md to reflect move to Gitlab + * Add typing for Regex pattern + * Fixed: Remove unused import + * Formatting: Changed by `black` + * New: Type hints on record.py + * hopefully fixes #171 + * Field.subfields_as_dict always returns value lists + * Repeatable subfields + +- Update to 4.1.0 + * adding 3.9 + * pypy + * appease mypy + * small change for black + * Merge branch 'master' into 'master' + * Add a convenient function for getting subfields as a dictionary + * Merge branch 'fix-typehints-in-marc8.py' into 'master' + * make flake8 happy + * Merge branch 'patch-1' into 'master' + * make black happy + * Make record.fields a list, not an iterator in map_marc8_record + * Remove unused imports + +------------------------------------------------------------------- +Fri Mar 20 11:51:32 UTC 2020 - Marketa Calabkova + +- Update to 4.0.0 + * Drop Python2 + * Support Python3.8 + * Add type hints + * Many fixes +- Drop patch python38.patch + +------------------------------------------------------------------- +Fri Dec 6 07:42:48 UTC 2019 - Tomáš Chvátal + +- Add patch to fix building with python 3.8: + * python38.patch + +------------------------------------------------------------------- +Sat Aug 24 14:18:04 UTC 2019 - Jan Engelhardt + +- Use noun phrase in summary. Replace summary copy by + upstream's description. + +------------------------------------------------------------------- +Wed Jul 31 08:17:16 AM UTC 2019 - John Vandenberg + +- Initial spec for v3.1.13 diff --git a/python-pymarc.spec b/python-pymarc.spec new file mode 100644 index 0000000..cc039b9 --- /dev/null +++ b/python-pymarc.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pymarc +# +# 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 +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pymarc +Version: 5.2.3 +Release: 0 +Summary: MARC bibliographic data manipulation module +License: BSD-2-Clause +URL: https://gitlab.com/pymarc/pymarc +Source: https://files.pythonhosted.org/packages/source/p/pymarc/pymarc-%{version}.tar.gz +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +pymarc is a Python library for working with bibliographic data +encoded in MARC21. It provides an API for reading, writing and +modifying MARC records. It was originally designed to be an emergency +eject seat for getting data assets out of MARC and into some kind of +saner representation. + +%prep +%setup -q -n pymarc-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/pymarc +%{python_sitelib}/pymarc-%{version}.dist-info + +%changelog