From: Radek Czajka Date: Wed, 5 Feb 2020 12:31:58 +0000 (+0100) Subject: Version bump. X-Git-Tag: 1.7.8 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/943fdd2cdeb409daee7767baa81d76103731aebd Version bump. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 42371b7..91af9c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ This document records all notable changes to Librarian. +## 1.7.8 (2020-02-05) + +### Added +- Preliminary support for new tag: animacja. + + ## 1.7.7 (2019-12-31) ### Changed diff --git a/librarian/dcparser.py b/librarian/dcparser.py index 85f3028..92afc01 100644 --- a/librarian/dcparser.py +++ b/librarian/dcparser.py @@ -297,7 +297,7 @@ class WorkInfo(six.with_metaclass(DCInfo, object)): desc = rdf_tag.find(".//" + RDFNS('Description')) if desc is None: - raise NoDublinCore("No DublinCore section found.") + raise NoDublinCore("There must be a '%s' element inside the RDF." % RDFNS('Description')) lang = None p = desc diff --git a/librarian/parser.py b/librarian/parser.py index 73ddd52..efe6e95 100644 --- a/librarian/parser.py +++ b/librarian/parser.py @@ -39,7 +39,7 @@ class WLDocument(object): self.rdf_elem = root_elem.find(dc_path) if self.rdf_elem is None: - raise NoDublinCore('Document has no DublinCore - which is required.') + raise NoDublinCore("Document must have a '%s' element." % RDFNS('RDF')) self.book_info = dcparser.BookInfo.from_element( self.rdf_elem, fallbacks=meta_fallbacks, strict=strict) diff --git a/setup.py b/setup.py index 1d124f4..5992219 100755 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ def whole_tree(prefix, path): setup( name='librarian', - version='1.7.7', + version='1.7.8', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author="Marek Stępniowski", author_email='marek@stepniowski.com',