Mercurial > hgsubversion
comparison setup.py @ 827:076ded084655
setup.py: clean up indentation
author | Yonggang Luo <luoyonggang@gmail.com> |
---|---|
date | Fri, 30 Sep 2011 21:45:45 +0800 |
parents | 0b56b1492d23 |
children | 92bd7b3678ea |
comparison
equal
deleted
inserted
replaced
826:8794302f3614 | 827:076ded084655 |
---|---|
70 version += time.strftime('%Y%m%d') | 70 version += time.strftime('%Y%m%d') |
71 elif os.path.exists('.hg_archival.txt'): | 71 elif os.path.exists('.hg_archival.txt'): |
72 kw = dict([t.strip() for t in l.split(':', 1)] | 72 kw = dict([t.strip() for t in l.split(':', 1)] |
73 for l in open('.hg_archival.txt')) | 73 for l in open('.hg_archival.txt')) |
74 if 'tag' in kw: | 74 if 'tag' in kw: |
75 version = kw['tag'] | 75 version = kw['tag'] |
76 elif 'latesttag' in kw: | 76 elif 'latesttag' in kw: |
77 version = '%(latesttag)s+%(latesttagdistance)s-%(node).12s' % kw | 77 version = '%(latesttag)s+%(latesttagdistance)s-%(node).12s' % kw |
78 else: | 78 else: |
79 version = kw.get('node', '')[:12] | 79 version = kw.get('node', '')[:12] |
80 | 80 |
105 from hgsubversion.svnwrap import svn_swig_wrapper | 105 from hgsubversion.svnwrap import svn_swig_wrapper |
106 except ImportError: | 106 except ImportError: |
107 requires.append('subvertpy>=0.7.4') | 107 requires.append('subvertpy>=0.7.4') |
108 | 108 |
109 setup( | 109 setup( |
110 name = 'hgsubversion', | 110 name='hgsubversion', |
111 version = version, | 111 version=version, |
112 url = 'http://bitbucket.org/durin42/hgsubversion', | 112 url='http://bitbucket.org/durin42/hgsubversion', |
113 license = 'GNU GPL', | 113 license='GNU GPL', |
114 author = 'Augie Fackler, others', | 114 author='Augie Fackler, others', |
115 author_email = 'durin42@gmail.com', | 115 author_email='durin42@gmail.com', |
116 description = ('hgsubversion is a Mercurial extension for working with ' | 116 description=('hgsubversion is a Mercurial extension for working with ' |
117 'Subversion repositories.'), | 117 'Subversion repositories.'), |
118 long_description = open(os.path.join(os.path.dirname(__file__), | 118 long_description=open(os.path.join(os.path.dirname(__file__), |
119 'README')).read(), | 119 'README')).read(), |
120 keywords = 'mercurial', | 120 keywords='mercurial', |
121 packages = ('hgsubversion', 'hgsubversion.svnwrap'), | 121 packages=('hgsubversion', 'hgsubversion.svnwrap'), |
122 package_data = { 'hgsubversion': ['help/subversion.rst'] }, | 122 package_data={ 'hgsubversion': ['help/subversion.rst'] }, |
123 platforms = 'any', | 123 platforms='any', |
124 install_requires=requires, | 124 install_requires=requires, |
125 classifiers = [ | 125 classifiers=[ |
126 'License :: OSI Approved :: GNU General Public License (GPL)', | 126 'License :: OSI Approved :: GNU General Public License (GPL)', |
127 'Intended Audience :: Developers', | 127 'Intended Audience :: Developers', |
128 'Topic :: Software Development :: Version Control', | 128 'Topic :: Software Development :: Version Control', |
129 'Development Status :: 4 - Beta', | 129 'Development Status :: 4 - Beta', |
130 'Programming Language :: Python', | 130 'Programming Language :: Python', |
131 'Operating System :: OS Independent', | 131 'Operating System :: OS Independent', |
132 ], | 132 ], |
133 cmdclass = {'build_py': build_py}, | 133 cmdclass={'build_py': build_py}, |
134 ) | 134 ) |