From 545135b35bea88ed3c995298834b6a19d7e04a5c Mon Sep 17 00:00:00 2001 From: arm61 Date: Mon, 11 Jun 2018 07:20:06 +0100 Subject: [PATCH] version bump and add __version__ function --- pylj/__init__.py | 8 +++++++- setup.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pylj/__init__.py b/pylj/__init__.py index 99e19a1..a0d7041 100644 --- a/pylj/__init__.py +++ b/pylj/__init__.py @@ -1,4 +1,10 @@ import webbrowser def __cite__(): - webbrowser.open('https://zenodo.org/badge/latestdoi/119863480') \ No newline at end of file + webbrowser.open('https://zenodo.org/badge/latestdoi/119863480') + +def __version__(): + major=0 + minor=0 + micro=22 + print('pylj-{:d}.{:d}.{:d}'.format(major, minor, micro)) \ No newline at end of file diff --git a/setup.py b/setup.py index 474dcf2..9012dfe 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ # versioning MAJOR = 0 MINOR = 0 -MICRO = 21 +MICRO = 22 ISRELEASED = False VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)