summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-10-09 14:42:13 +0300
committerLars Wirzenius <liw@liw.fi>2016-10-09 14:42:13 +0300
commit4e078e1e3ba5011d3660477782d216a283b0fa50 (patch)
treeef182e00a15b311336c02f7b2a14555cbdae994d
parentcd4b5a82800643d2e8cae9142cafa0607010c272 (diff)
downloadlicense-summary-4e078e1e3ba5011d3660477782d216a283b0fa50.tar.gz
Require Python 2.7; support bumper
-rw-r--r--NEWS5
-rw-r--r--debian/changelog7
-rw-r--r--debian/compat2
-rw-r--r--debian/control8
-rwxr-xr-xlicense-summary5
-rw-r--r--licsummary/__init__.py19
-rw-r--r--licsummary/version.py2
-rw-r--r--setup.py4
8 files changed, 43 insertions, 9 deletions
diff --git a/NEWS b/NEWS
index f6937e3..55a6dc6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,11 @@
NEWS for license-summary
========================
+Version 0.2+git, not yet released
+--------------------------------
+
+* Require Python 2.7.
+
Version 0.2, released 2015-10-17
--------------------------------
diff --git a/debian/changelog b/debian/changelog
index 0841c0b..c2ad13d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+license-summary (0.2+git-1) UNRELEASED; urgency=medium
+
+ * New upstream version.
+ * debian/control: Require Python 2.7.
+
+ -- Lars Wirzenius <liw@liw.fi> Sun, 09 Oct 2016 14:39:51 +0300
+
license-summary (0.2-1) unstable; urgency=medium
* Force jessie rebuild.
diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index 392de55..f56f912 100644
--- a/debian/control
+++ b/debian/control
@@ -2,13 +2,13 @@ Source: license-summary
Maintainer: Lars Wirzenius <liw@liw.fi>
Section: devel
Priority: optional
-Standards-Version: 3.9.3
-Build-Depends: debhelper (>= 7.3.8), python-all (>= 2.6.6-3~)
-X-Python-Version: >= 2.6
+Standards-Version: 3.9.8
+Build-Depends: debhelper (>= 9), python-all (>= 2.7~)
+X-Python-Version: >= 2.7
Package: license-summary
Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python (>= 2.6), python-cliapp
+Depends: ${python:Depends}, ${misc:Depends}, python (>= 2.7), python-cliapp
Description: extract license summary information from marked up sources
license-summary finds copyright license summaries in source files:
lines that contain markup like this: "=*= License: foo =*=".
diff --git a/license-summary b/license-summary
index 4bc9b6f..07ca9b8 100755
--- a/license-summary
+++ b/license-summary
@@ -25,8 +25,7 @@ import cliapp
import re
import sys
-
-__version__ = '0.2'
+import licsummary
class LicenseSummary(cliapp.Application):
@@ -112,4 +111,4 @@ class LicenseSummary(cliapp.Application):
self.summaries[s] = self.summaries.get(s, []) + [filename]
-LicenseSummary(version=__version__).run()
+LicenseSummary(version=licsummary.__version__).run()
diff --git a/licsummary/__init__.py b/licsummary/__init__.py
new file mode 100644
index 0000000..9edf3d1
--- /dev/null
+++ b/licsummary/__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/licsummary/version.py b/licsummary/version.py
new file mode 100644
index 0000000..716318e
--- /dev/null
+++ b/licsummary/version.py
@@ -0,0 +1,2 @@
+__version__ = '0.2+git'
+__version_info__ = (0, 2, '+git')
diff --git a/setup.py b/setup.py
index 0df0877..142354f 100644
--- a/setup.py
+++ b/setup.py
@@ -17,9 +17,11 @@
from distutils.core import setup
+import licsummary
+
setup(name='license-summary',
- version='0.2',
+ version=licsummary.__version__,
description='git://git.gitano.org.uk/personal/liw/license-summary',
author='Lars Wirzenius',
author_email='liw@liw.fi',