~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

Added distutils setup script and plugin meta data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
# Copyright (C) 2010  Martin von Gagern
 
4
#
 
5
# This file is part of bzr-bash-completion
 
6
#
 
7
# bzr-bash-completion free software: you can redistribute it and/or
 
8
# modify it under the terms of the GNU General Public License as
 
9
# published by the Free Software Foundation, either version 2 of the
 
10
# License, or (at your option) any later version.
 
11
#
 
12
# bzr-bash-completion is distributed in the hope that it will be
 
13
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 
14
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
# General Public License for more details.
 
16
#
 
17
# You should have received a copy of the GNU General Public License
 
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 
 
20
from distutils.core import setup
 
21
from meta import *
 
22
from meta import __version__
 
23
 
 
24
# see http://docs.python.org/distutils/setupscript.html#meta-data
 
25
# and http://docs.python.org/distutils/apiref.html
 
26
# for a list of meta data to be included here.
 
27
if __name__ == "__main__":
 
28
 
 
29
    readme=file('README.txt').read()
 
30
    readme=readme[:readme.index('\n.. cut long_description here')]
 
31
 
 
32
    setup(
 
33
        name="bzr-bash-completion",
 
34
        version=__version__,
 
35
        description="Generate bash command line completion function for bzr",
 
36
        long_description=readme,
 
37
        author="Martin von Gagern",
 
38
        author_email="Martin.vGagern@gmx.net",
 
39
        license="GNU GPL v2",
 
40
        url="https://launchpad.net/bzr-bash-completion",
 
41
        packages=["bzrlib.plugins.bash_completion"],
 
42
        package_dir={"bzrlib.plugins.bash_completion": "."},
 
43
        classifiers=[
 
44
            'Development Status :: 5 - Production/Stable',
 
45
            'Environment :: Console',
 
46
            'Environment :: Plugins',
 
47
            'Intended Audience :: Developers',
 
48
            'License :: OSI Approved :: GNU General Public License (GPL)',
 
49
            'Operating System :: OS Independent',
 
50
            'Programming Language :: Python :: 2',
 
51
            'Programming Language :: Python',
 
52
            'Programming Language :: Unix Shell',
 
53
            'Topic :: Software Development :: Version Control',
 
54
            'Topic :: System :: Shells',
 
55
            # see http://pypi.python.org/pypi?:action=list_classifiers for more
 
56
        ],
 
57
    )