forked from pool/python-pymarc
- 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymarc?expand=0&rev=23
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
pymarc-5.1.2.tar.gz
Normal file
3
pymarc-5.1.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:81ce6bfe9b47170f03d8a99209e4211778ade015a67b1eeb6b30862d4e24ae58
|
||||||
|
size 234768
|
3
pymarc-5.2.2.tar.gz
Normal file
3
pymarc-5.2.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0913b4167a4337190598914c3642c5ae4f0f64a26bc4316f380cc54f65d8a741
|
||||||
|
size 237608
|
131
python-pymarc.changes
Normal file
131
python-pymarc.changes
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 18 16:53:05 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 5.1.2:
|
||||||
|
* minor changes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 5 18:21:10 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 5.1.1:
|
||||||
|
* py.typed marker
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 9 10:04:29 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.2.2:
|
||||||
|
* Bugfix for python_requires in setup.py.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 28 20:11:57 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- 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 <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- 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 <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- 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 <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add patch to fix building with python 3.8:
|
||||||
|
* python38.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Aug 24 14:18:04 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Use noun phrase in summary. Replace summary copy by
|
||||||
|
upstream's description.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 31 08:17:16 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Initial spec for v3.1.13
|
61
python-pymarc.spec
Normal file
61
python-pymarc.spec
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: python-pymarc
|
||||||
|
Version: 5.2.2
|
||||||
|
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 setuptools}
|
||||||
|
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
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user