From 4e078e1e3ba5011d3660477782d216a283b0fa50 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 9 Oct 2016 14:42:13 +0300 Subject: Require Python 2.7; support bumper --- NEWS | 5 +++++ debian/changelog | 7 +++++++ debian/compat | 2 +- debian/control | 8 ++++---- license-summary | 5 ++--- licsummary/__init__.py | 19 +++++++++++++++++++ licsummary/version.py | 2 ++ setup.py | 4 +++- 8 files changed, 43 insertions(+), 9 deletions(-) create mode 100644 licsummary/__init__.py create mode 100644 licsummary/version.py 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 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 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 . +# +# =*= 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', -- cgit v1.2.1