From 0f2b071532cfb9a15af4cc0070118eadc2a0e023 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 6 Aug 2017 22:26:36 +0300 Subject: Fix: setup.py, version numbers --- ick2/__init__.py | 1 + ick2/version.py | 3 +++ setup.py | 4 ++-- without-tests | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 ick2/version.py diff --git a/ick2/__init__.py b/ick2/__init__.py index bf349aa..fee8e80 100644 --- a/ick2/__init__.py +++ b/ick2/__init__.py @@ -1,6 +1,7 @@ # Copyright (C) 2017 Lars Wirzenius +from .version import __version__, __version_info__ from .logging import setup_logging, log from .state import ControllerState, NotFound from .controllerapi import ControllerAPI diff --git a/ick2/version.py b/ick2/version.py new file mode 100644 index 0000000..8725d68 --- /dev/null +++ b/ick2/version.py @@ -0,0 +1,3 @@ +__version__ = '0.2.1+git' +__version_info__ = (0, 2, 1, '+git') + diff --git a/setup.py b/setup.py index cc1b631..816df97 100644 --- a/setup.py +++ b/setup.py @@ -18,11 +18,11 @@ from distutils.core import setup, Extension import glob -import ick2lib +import ick2 setup( name='ick2', - version=ick2lib.__version__, + version=ick2.__version__, description='CI server', author='Lars Wirzenius', author_email='liw@liw.fi', diff --git a/without-tests b/without-tests index 4950c95..5af6235 100644 --- a/without-tests +++ b/without-tests @@ -1,4 +1,5 @@ ick2/__init__.py ick2/logging.py +ick2/version.py -- cgit v1.2.1