From 0916c10bcc68ddcd23bf7feceb2acf02813eb7c9 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Thu, 7 Nov 2019 15:59:22 +0000 Subject: [PATCH 1/2] Fixing handling of multiple authors --- VERSION | 2 +- devel/moth.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index eb39e53..4772543 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3 +3.3.2 diff --git a/devel/moth.py b/devel/moth.py index 1875bd7..7161029 100644 --- a/devel/moth.py +++ b/devel/moth.py @@ -174,6 +174,10 @@ class Puzzle: def handle_header_key(self, key, val): if key == 'author': self.authors.append(val) + elif key == 'authors': + if not isinstance(val, list): + raise ValueError("Authors must be a list, got %s, instead" & (type(val),)) + self.authors = list(val) elif key == 'summary': self.summary = val elif key == 'answer': From dc7d10b12b178f35723ad32ebbd25d194a11e8c0 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Fri, 8 Nov 2019 19:36:32 +0000 Subject: [PATCH 2/2] Adding CHANGELOG message for local python library support --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6897796..9b802aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,3 +7,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added - A changelog +- Support for embedding Python libraries at the category or puzzle level