From faa980995c7a6e7ce16436e1ceb66c6d3a063b1e Mon Sep 17 00:00:00 2001 From: Tomasz Buchert Date: Sun, 30 Aug 2015 00:21:18 +0200 Subject: [PATCH] fix __version__ --- debocker | 2 -- setup.py | 2 +- src/debocker/__init__.py | 2 ++ src/debocker/debian.py | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debocker b/debocker index da3cda6..fbb5132 100755 --- a/debocker +++ b/debocker @@ -15,8 +15,6 @@ from debocker.utils import tmppath, \ from debocker.log import log, fail, LOW, set_verbosity, is_verbose from debocker.debian import Package, docker_build_bundle, STAGES -__version__ = "0.2" - # CLI INTERFACE @click.group() diff --git a/setup.py b/setup.py index 38aa4c9..6b2453b 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ except ImportError: from distutils.core import setup, find_packages # Thanks requests -with open('debocker', 'r') as fd: +with open('src/debocker/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) diff --git a/src/debocker/__init__.py b/src/debocker/__init__.py index 5c21d1e..1fb309d 100644 --- a/src/debocker/__init__.py +++ b/src/debocker/__init__.py @@ -1 +1,3 @@ # init file + +__version__ = '0.3' diff --git a/src/debocker/debian.py b/src/debocker/debian.py index 72f4714..31672ec 100644 --- a/src/debocker/debian.py +++ b/src/debocker/debian.py @@ -6,6 +6,7 @@ from shutil import which, copyfile, copytree from shlex import quote as shell_quote from os.path import isdir, join, isfile, abspath, splitext, \ dirname, realpath +from . import __version__ from .log import log, fail, LOW from .utils import log_check_call, log_check_output, \ tmppath, cached_property, get_filelist, calculate_md5_and_size, \ -- 2.20.1