From 91da238d2ee7a441f7470902ebef6b06389f27ba Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 8 Oct 2016 19:56:17 +0300 Subject: Change to allow releass to be made with bumper --- NEWS | 5 +++++ copyright-statement-lint | 7 +++---- copystmtlint/__init__.py | 19 +++++++++++++++++++ copystmtlint/version.py | 2 ++ setup.py | 5 ++++- 5 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 copystmtlint/__init__.py create mode 100644 copystmtlint/version.py diff --git a/NEWS b/NEWS index 2b8aed0..f1c02e8 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,11 @@ copyright-statement-lint NEWS This file summarizes changes between releases of copyright-statement-lint. +Version 0.2+g, not yet released +-------------------------------- + +* Require Python 2.7. + Version 0.2, released 2015-10-17 -------------------------------- diff --git a/copyright-statement-lint b/copyright-statement-lint index fc8cad5..f88e775 100755 --- a/copyright-statement-lint +++ b/copyright-statement-lint @@ -17,14 +17,13 @@ # =*= License: GPL-3+ =*= -__version__ = '0.2' - - import cliapp import os import re import sys +import copystmtlint + copyright_pattern = re.compile( r'Copyright\s+(\([cC]\)\s+)?(?P\d+((,|-|\s)|\d+)*)\s(?P.*)') @@ -98,4 +97,4 @@ class CopyrightStatementLint(cliapp.Application): return pairs -CopyrightStatementLint(version=__version__).run() +CopyrightStatementLint(version=copystmtlint.__version__).run() diff --git a/copystmtlint/__init__.py b/copystmtlint/__init__.py new file mode 100644 index 0000000..9edf3d1 --- /dev/null +++ b/copystmtlint/__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/copystmtlint/version.py b/copystmtlint/version.py new file mode 100644 index 0000000..716318e --- /dev/null +++ b/copystmtlint/version.py @@ -0,0 +1,2 @@ +__version__ = '0.2+git' +__version_info__ = (0, 2, '+git') diff --git a/setup.py b/setup.py index 3389579..7f5b816 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,8 @@ from distutils.core import setup, Extension from distutils.command.build import build import subprocess +import copystmtlint + class Build(build): @@ -35,12 +37,13 @@ class Build(build): setup(name='copyright-statement-lint', - version='0.2', + version=copystmtlint.__version__, description='check copyright statements in source files', author='Lars Wirzenius', author_email='liw@liw.fi', url='http://liw.fi/copyright-statement-lint/', scripts=['copyright-statement-lint'], + packages=['copystmtlint'], cmdclass={ 'build': Build, }, -- cgit v1.2.1