14
0
forked from pool/python-pymarc

Accepting request 786852 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/786852
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pymarc?expand=0&rev=4
This commit is contained in:
2020-03-20 22:59:31 +00:00
committed by Git OBS Bridge
6 changed files with 63 additions and 36 deletions

46
LICENSE
View File

@@ -1,5 +1,3 @@
Copyright 2005-2019 Gabriel Farrell, Mark Matienzo, Geoffrey Spear, Ed Summers
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@@ -20,3 +18,47 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright for this project is held by its many contributors, including:
Adam Constabaris <ajconsta@ncsu.edu>
André Nesse <an@macpro.lan>
Chris Adams <chris@improbable.org>
Dan Chudnov <dchud@umich.edu>
Dan Michael O. Heggø <danmichaelo@gmail.com>
Dan Scott <dan@coffeecode.net>
David Chouinard <david@davidchouinard.com>
Ed Hill <hill.charles2@gmail.com>
Ed Summers <ehs@pobox.com>
Edward Betts <edward@4angle.com>
Eric Hellman <eric@hellman.net>
Gabriel Farrell <gsf747@gmail.com>
Geoffrey Spear <geoffspear@gmail.com>
Godmar Back <godmar@gmail.com>
Helga <cdg013@gmail.com>
James Tayson <james.taysom@gmail.com>
Jay Luker <lbjay@reallywow.com>
Jim Nicholls <jim.nicholls@gmail.com>
Karol Sikora <me@karolsikora.me>
Lucas Souza <lucassouzaufpa@gmail.com>
Mark A. Matienzo <mark@matienzo.org>
Martin Czygan <martin.czygan@gmail.com>
Michael B. Klein <mbklein@gmail.com>
Michael J. Giarlo <leftwing@alumni.rutgers.edu>
Mikhail Terekhov <termim@gmail.com>
Nick Ruest <ruestn@gmail.com>
Pierre Verkest <pverkest@anybox.fr>
Radim Řehůřek <radimrehurek@seznam.cz>
Renaud Boyer <rboyer@anybox.fr>
Robert Marchman <robert.l.marchman@dartmouth.edu>
Sean Chen <schen@law.duke.edu>
Simon Hohl <simon.hohl@dainst.org>
Ted Lawless <tlawless@tuscola.(none)>
Victor Seva <vseva@dlsi.ua.es>
Will Earp <will.earp@icloud.com>
cclauss <cclauss@bluewin.ch>
cyperus-papyrus <cdg013@gmail.com>
gitgovdoc <bwebb@gpo.gov>
mmh <maherma@asdeguiaingenieria.com>
nemobis <federicoleva@tiscali.it>
wrCisco <lbjma@tiscali.it>

View File

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

3
pymarc-4.0.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pymarc
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pymarc
Version: 3.1.13
Version: 4.0.0
Release: 0
Summary: MARC bibliographic data manipulation module
License: BSD-2-Clause
@@ -26,14 +27,13 @@ Group: Development/Languages/Python
URL: https://github.com/edsu/pymarc
Source: https://files.pythonhosted.org/packages/source/p/pymarc/pymarc-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/edsu/pymarc/master/LICENSE
Patch0: python38.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-six >= 1.9.0
Requires: python-pytest
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
@@ -46,7 +46,6 @@ saner representation.
%prep
%setup -q -n pymarc-%{version}
%patch0 -p1
cp %{SOURCE1} .
%build
@@ -57,7 +56,7 @@ cp %{SOURCE1} .
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%pytest
%files %{python_files}
%doc README.md

View File

@@ -1,24 +0,0 @@
From 44d37f6aef231e1b874f2c12e002007d686da28e Mon Sep 17 00:00:00 2001
From: Geoffrey Spear <speargh@pitt.edu>
Date: Mon, 7 Oct 2019 08:33:07 -0400
Subject: [PATCH 1/2] test on 3.8-dev
---
pymarc/marcxml.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pymarc/marcxml.py b/pymarc/marcxml.py
index 7d87905..f351a8b 100644
--- a/pymarc/marcxml.py
+++ b/pymarc/marcxml.py
@@ -160,9 +160,9 @@ def translate(data):
control_field.text = translate(field.data)
else:
data_field = ET.SubElement(root, 'datafield')
- data_field.set('tag', field.tag)
data_field.set('ind1', field.indicators[0])
data_field.set('ind2', field.indicators[1])
+ data_field.set('tag', field.tag)
for subfield in field:
data_subfield = ET.SubElement(data_field, 'subfield')
data_subfield.set('code', subfield[0])