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