vcs: use relative paths for matching author-hacks.
[update-copyright.git] / setup.py
1 # Copyright (C) 2012 W. Trevor King <wking@tremily.us>
2 #
3 # This file is part of update-copyright.
4 #
5 # update-copyright is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option) any
8 # later version.
9 #
10 # update-copyright is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 # more details.
14 #
15 # You should have received a copy of the GNU General Public License along with
16 # update-copyright.  If not, see <http://www.gnu.org/licenses/>.
17
18 "Automatically update copyright blurbs in versioned source."
19
20 import codecs as _codecs
21 from distutils.core import setup as _setup
22 import os.path as _os_path
23
24 from update_copyright import __version__
25
26
27 _this_dir = _os_path.dirname(__file__)
28
29 _setup(
30     name='update-copyright',
31     version=__version__,
32     maintainer='W. Trevor King',
33     maintainer_email='wking@tremily.us',
34     url='http://blog.tremily.us/posts/update-copyright/',
35     download_url='http://git.tremily.us/?p=update-copyright.git;a=snapshot;h=v{};sf=tgz'.format(__version__),
36     license = 'GNU General Public License (GPL)',
37     platforms = ['all'],
38     description = __doc__,
39     long_description=_codecs.open(
40         _os_path.join(_this_dir, 'README'), 'r', encoding='utf-8').read(),
41     classifiers = [
42         'Development Status :: 3 - Alpha',
43         'Intended Audience :: Developers',
44         'Operating System :: OS Independent',
45         'License :: OSI Approved :: GNU General Public License (GPL)',
46         'Programming Language :: Python',
47         'Topic :: Software Development',
48         ],
49     scripts = ['bin/update-copyright.py'],
50     packages = ['update_copyright', 'update_copyright.vcs'],
51     provides = ['update_copyright', 'update_copyright.vcs'],
52     )