Version bump. 1.7.8
authorRadek Czajka <rczajka@rczajka.pl>
Wed, 5 Feb 2020 12:31:58 +0000 (13:31 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Wed, 5 Feb 2020 12:31:58 +0000 (13:31 +0100)
CHANGELOG.md
librarian/dcparser.py
librarian/parser.py
setup.py

index 42371b7..91af9c2 100644 (file)
@@ -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
index 85f3028..92afc01 100644 (file)
@@ -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
index 73ddd52..efe6e95 100644 (file)
@@ -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)
index 1d124f4..5992219 100755 (executable)
--- 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',