From 3c7d17c05c8a56f017343604a2fbbf246b21994e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 8 Oct 2016 20:30:50 +0300 Subject: Make it possible to use bumper to make a release --- NEWS | 5 +++++ cronish/__init__.py | 19 +++++++++++++++++++ cronish/version.py | 2 ++ desktop-cronish | 4 ++-- setup.py | 5 ++++- 5 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 cronish/__init__.py create mode 100644 cronish/version.py diff --git a/NEWS b/NEWS index 382c0aa..faa1ef4 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,11 @@ NEWS for desktop-cronish ======================== +Version 0.2+git, not yet released +-------------------------------- + +* Require Python 2.7. + Version 0.2, released 2015-10-17 -------------------------------- diff --git a/cronish/__init__.py b/cronish/__init__.py new file mode 100644 index 0000000..9edf3d1 --- /dev/null +++ b/cronish/__init__.py @@ -0,0 +1,19 @@ +# Copyright 2016 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__, __version_info__ diff --git a/cronish/version.py b/cronish/version.py new file mode 100644 index 0000000..716318e --- /dev/null +++ b/cronish/version.py @@ -0,0 +1,2 @@ +__version__ = '0.2+git' +__version_info__ = (0, 2, '+git') diff --git a/desktop-cronish b/desktop-cronish index 3fcf852..338aef5 100755 --- a/desktop-cronish +++ b/desktop-cronish @@ -26,7 +26,7 @@ import ttystatus import yaml -__version__ = '0.2' +import cronish class DesktopCronish(cliapp.Application): @@ -159,4 +159,4 @@ class DesktopCronish(cliapp.Application): return time.time() -DesktopCronish(version=__version__).run() +DesktopCronish(version=cronish.__version__).run() diff --git a/setup.py b/setup.py index 22e1d56..a1d5c8f 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,8 @@ import glob import os import cliapp +import cronish + class Build(build): @@ -46,12 +48,13 @@ class Clean(clean): setup(name='desktop-cronish', - version='0.2', + version=cronish.__version__, description='git://git.gitano.org.uk/personal/liw/desktop-cronish', author='Lars Wirzenius', author_email='liw@liw.fi', url='http://liw.fi/desktop-cronish/', scripts=['desktop-cronish'], + packages=['cronish'], data_files=[ ('share/man/man1', glob.glob('*.1')), ], -- cgit v1.2.1