From a807493b02314f38b05a8188f538a5d7f3d82190 Mon Sep 17 00:00:00 2001 From: Nicklas Reincke Date: Mon, 9 Apr 2018 14:06:24 +0200 Subject: [PATCH 1/3] Changed `setup.py` to take advantage of the `wheel` package to build the project --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 84fe3e9..d84dcd9 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup setup( name='python-gedcom', From 6fe8ce2d08c75926b8932ddbecc32d9dc6e8ff5a Mon Sep 17 00:00:00 2001 From: Nicklas Reincke Date: Mon, 30 Jul 2018 17:00:27 +0200 Subject: [PATCH 2/3] Changed broken links to GEDCOM format specification (#2) --- README.md | 2 +- gedcom/__init__.py | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f636e8c..94cb476 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A Python module for parsing, analyzing, and manipulating GEDCOM files. GEDCOM files contain ancestry data. The parser is currently supporting -the GEDCOM 5.5 format which is detailed here: http://homepages.rootsweb.ancestry.com/~pmcbride/gedcom/55gctoc.htm +the GEDCOM 5.5 format which is detailed [here](https://chronoplexsoftware.com/gedcomvalidator/gedcom/gedcom-5.5.pdf). > **NOTE**: This module is currently under development and **should not be used in production**! > The current development process can be tracked in the ["develop" branch](https://github.com/reynke/python-gedcom/tree/develop). diff --git a/gedcom/__init__.py b/gedcom/__init__.py index 9dd885e..f1d78d1 100644 --- a/gedcom/__init__.py +++ b/gedcom/__init__.py @@ -257,9 +257,8 @@ def __parse_line(line_number, line, last_element): regex_match = regex.match(gedcom_line_regex, line) if regex_match is None: - error_message = ("Line `%d` of document violates GEDCOM format" % line_number + - "\nSee: http://homepages.rootsweb.ancestry.com/" + - "~pmcbride/gedcom/55gctoc.htm") + error_message = ("Line `%d` of document violates GEDCOM format 5.5" % line_number + + "\nSee: https://chronoplexsoftware.com/gedcomvalidator/gedcom/gedcom-5.5.pdf") raise SyntaxError(error_message) line_parts = regex_match.groups() @@ -272,10 +271,9 @@ def __parse_line(line_number, line, last_element): # Check level: should never be more than one higher than previous line. if level > last_element.get_level() + 1: - error_message = ("Line %d of document violates GEDCOM format" % line_number + - "\nLines must be no more than one level higher than " + - "previous line.\nSee: http://homepages.rootsweb." + - "ancestry.com/~pmcbride/gedcom/55gctoc.htm") + error_message = ("Line %d of document violates GEDCOM format 5.5" % line_number + + "\nLines must be no more than one level higher than previous line." + + "\nSee: https://chronoplexsoftware.com/gedcomvalidator/gedcom/gedcom-5.5.pdf") raise SyntaxError(error_message) # Create element. Store in list and dict, create children and parents. From 3c81fbfbf67c40caff4364d5598950c4a81d89b7 Mon Sep 17 00:00:00 2001 From: Nicklas Reincke Date: Mon, 30 Jul 2018 17:03:21 +0200 Subject: [PATCH 3/3] Updated documentation for version 0.2.1dev --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 94cb476..e715033 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ was licensed under the GPL v2 and then continued by ## Changelog +**v0.2.1dev** + +- Changed broken links to GEDCOM format specification ([#2](https://github.com/nickreynke/python-gedcom/issues/2)) + **v0.2.0dev** - Added `develop` branch to track and update current development process