From 0aeddf1e04306ba8bb4a37a0c11c60353da9aa30 Mon Sep 17 00:00:00 2001
From: Frank Sauerburger <frank@sauerburger.com>
Date: Fri, 4 Aug 2017 11:07:17 +0200
Subject: [PATCH] Increment version to 0.1.1

Fixing bug #4 leads to this increment.
---
 bin/doxec         | 7 +++++++
 doxec/__init__.py | 2 ++
 setup.py          | 2 +-
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/bin/doxec b/bin/doxec
index 3f2168f..c421d7a 100755
--- a/bin/doxec
+++ b/bin/doxec
@@ -15,12 +15,19 @@ if __name__ == "__main__":
         default="markdown",
         help="The syntax parser to be used for the listed files.")
 
+    parser.add_argument("--version", action="store_true",
+        help="Prints the version of the doxec package and exits.")
+
     parser.add_argument("documents", metavar="DOCUMENT", nargs="+", default=[],
         help="A document from which the code examples should be parsed and "
             "executed")
 
     args = parser.parse_args()
 
+    if args.version:
+        print("Doxec package version: %s" % doxec.__version__) 
+        sys.exit(0)
+
     parser = doxec.parser[args.syntax]
 
     def monitor(op, exception):
diff --git a/doxec/__init__.py b/doxec/__init__.py
index 3655331..29eca7f 100644
--- a/doxec/__init__.py
+++ b/doxec/__init__.py
@@ -3,6 +3,8 @@ import abc
 import re
 import subprocess
 
+__version__ = "0.1.1"
+
 class TestException(Exception):
     """
     This exception should be raised, if an operation performed tests and one
diff --git a/setup.py b/setup.py
index 2c7f1f5..abd8850 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
 
 setup(
     name="doxec",
-    version= "0.1.0",
+    version= "0.1.1",
     author="Frank Sauerburger",
     author_email= "frank@sauerburger.com",
     description=("Run documentation and test whether the examples work."),
-- 
GitLab