/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2018-04-02 14:59:43 UTC
  • mto: (0.200.1913 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180402145943-s5jmpbvvf1x42pao
Just don't touch the URL if it's already a valid URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
# Copyright (C) 2009-2018 Jelmer Vernooij <jelmer@jelmer.uk>
 
4
 
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 2 of the License, or
 
8
# (at your option) any later version.
 
9
#
 
10
# This program 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
 
13
# GNU General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program; if not, write to the Free Software
 
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
18
 
 
19
 
 
20
from __future__ import absolute_import
 
21
 
 
22
from info import *
 
23
 
 
24
readme = file('README').read()
 
25
 
 
26
 
 
27
if __name__ == '__main__':
 
28
    from distutils.core import setup
 
29
    version = bzr_plugin_version[:3]
 
30
    version_string = ".".join([str(x) for x in version])
 
31
 
 
32
    command_classes = {}
 
33
    try:
 
34
        from breezy.bzr_distutils import build_mo
 
35
    except ImportError:
 
36
        pass
 
37
    else:
 
38
        command_classes['build_mo'] = build_mo
 
39
 
 
40
    setup(name='bzr-git',
 
41
          description='Support for Git branches in Bazaar',
 
42
          keywords='plugin bzr git bazaar',
 
43
          version=version_string,
 
44
          url='http://bazaar-vcs.org/BzrForeignBranches/Git',
 
45
          license='GPL',
 
46
          maintainer='Jelmer Vernooij',
 
47
          maintainer_email='jelmer@samba.org',
 
48
          long_description=readme,
 
49
          package_dir={'breezy.plugins.git':'.'},
 
50
          packages=['breezy.plugins.git',
 
51
                    'breezy.plugins.git.tests'],
 
52
          scripts=['bzr-receive-pack', 'bzr-upload-pack', 'git-remote-bzr'],
 
53
          classifiers=[
 
54
              'Topic :: Software Development :: Version Control',
 
55
              'Environment :: Plugins',
 
56
              'Development Status :: 4 - Beta',
 
57
              'License :: OSI Approved :: GNU General Public License (GPL)',
 
58
              'Natural Language :: English',
 
59
              'Operating System :: OS Independent',
 
60
              'Programming Language :: Python',
 
61
              'Programming Language :: Python :: 2',
 
62
          ],
 
63
          cmdclass=command_classes,
 
64
          )