From 1ef6d5572e0381ef138b8e3836c4a670b1d2d960 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 3 Oct 2015 09:21:53 +0300 Subject: Move __version__ to new jtlib --- jt | 5 ++--- jtlib/__init__.py | 19 +++++++++++++++++++ jtlib/version.py | 19 +++++++++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 jtlib/__init__.py create mode 100644 jtlib/version.py diff --git a/jt b/jt index 0ebf133..b9a0580 100755 --- a/jt +++ b/jt @@ -22,8 +22,7 @@ import shutil import string import time - -__version__ = '0.8' +import jtlib class DraftsDirectory(object): @@ -445,4 +444,4 @@ class JournalTool(cliapp.Application): raise cliapp.AppException('Must give at most one draft number') -JournalTool(version=__version__).run() +JournalTool(version=jtlib.__version__).run() diff --git a/jtlib/__init__.py b/jtlib/__init__.py new file mode 100644 index 0000000..a09c65f --- /dev/null +++ b/jtlib/__init__.py @@ -0,0 +1,19 @@ +# Copyright 2015 Lars Wirzenius +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# =*= License: GPL-3+ =*= + + +from .version import __version__ diff --git a/jtlib/version.py b/jtlib/version.py new file mode 100644 index 0000000..38c28ad --- /dev/null +++ b/jtlib/version.py @@ -0,0 +1,19 @@ +# Copyright 2015 Lars Wirzenius +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# =*= License: GPL-3+ =*= + + +__version__ = '0.8' -- cgit v1.2.1