summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-10-08 20:30:50 +0300
committerLars Wirzenius <liw@liw.fi>2016-10-08 20:30:50 +0300
commit3c7d17c05c8a56f017343604a2fbbf246b21994e (patch)
tree0f322090e836986db013c6659f17bafbe9e73c3f
parent8fda43c99084076d6c8fd2b512ba26cf0e89c741 (diff)
downloaddesktop-cronish-3c7d17c05c8a56f017343604a2fbbf246b21994e.tar.gz
Make it possible to use bumper to make a release
-rw-r--r--NEWS5
-rw-r--r--cronish/__init__.py19
-rw-r--r--cronish/version.py2
-rwxr-xr-xdesktop-cronish4
-rw-r--r--setup.py5
5 files changed, 32 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
+#
+# =*= 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')),
],