diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-10-08 19:56:17 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-10-08 19:56:17 +0300 |
commit | 91da238d2ee7a441f7470902ebef6b06389f27ba (patch) | |
tree | e9c81e1d27deddf31e49be75bc801c68af607da7 | |
parent | 9c980764307e82bc5eec2e5d1ea90f0db96b4870 (diff) | |
download | copyright-statement-lint-91da238d2ee7a441f7470902ebef6b06389f27ba.tar.gz |
Change to allow releass to be made with bumper
-rw-r--r-- | NEWS | 5 | ||||
-rwxr-xr-x | copyright-statement-lint | 7 | ||||
-rw-r--r-- | copystmtlint/__init__.py | 19 | ||||
-rw-r--r-- | copystmtlint/version.py | 2 | ||||
-rw-r--r-- | setup.py | 5 |
5 files changed, 33 insertions, 5 deletions
@@ -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<years>\d+((,|-|\s)|\d+)*)\s(?P<names>.*)') @@ -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 <http://www.gnu.org/licenses/>. +# +# =*= 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') @@ -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, }, |