1
# Copyright (C) 2010 Martin von Gagern
3
# This file is part of bzr-bash-completion
5
# bzr-bash-completion 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 2 of the
8
# License, or (at your option) any later version.
10
# bzr-bash-completion is distributed in the hope that it will be
11
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
# General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
# http://doc.bazaar.canonical.com/developers/plugin-api.html#metadata-protocol
19
# describes these variables, which have to be imported into setup.py.
20
bzr_plugin_name = 'bash_completion'
21
bzr_commands = [ 'bash-completion' ]
23
# Have a look at bzrlib._format_version_tuple for info about version 5-tuples,
24
# and at http://packages.python.org/distribute/setuptools.html#specifying-your-project-s-version
25
# for information about how python versions do compare with setuptools
26
bzr_plugin_version = (1, 1, 1, 'dev', 0)
28
# http://doc.bazaar.canonical.com/developers/plugin-api.html#plugin-version
29
# describes another version tuple:
30
version_info = bzr_plugin_version
32
# And we also want a string representation, matching the output generated by
33
# bzrlib._format_version_tuple, but avoiding its sanity checks.
34
__version__ = '.'.join([str(x) for x in version_info[:3]])
35
if version_info[3] == 'final':
36
__version__ = "%d.%d.%d" % version_info[:3]
37
elif version_info[4] == 0:
38
__version__ = "%d.%d.%d%s" % version_info[:4]
40
__version__ = "%d.%d.%d%s%d" % version_info