comparison setup.py @ 4879:77e8ca85d740

branching: merge with stable
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 04 Oct 2019 14:16:52 -0400
parents 095bab0d0cd7
children 155e986045eb
comparison
equal deleted inserted replaced
4872:7787baa5a6ae 4879:77e8ca85d740
11 exec(fp.read(), meta) 11 exec(fp.read(), meta)
12 return meta 12 return meta
13 13
14 def get_version(): 14 def get_version():
15 '''Read version info from a file without importing it''' 15 '''Read version info from a file without importing it'''
16 return get_metadata()['__version__'] 16 return u'%s' % get_metadata()['__version__']
17 17
18 def min_hg_version(): 18 def min_hg_version():
19 '''Read version info from a file without importing it''' 19 '''Read version info from a file without importing it'''
20 return get_metadata()['minimumhgversion'] 20 return get_metadata()['minimumhgversion']
21 21
26 'hgext3rd', 26 'hgext3rd',
27 'hgext3rd.evolve', 27 'hgext3rd.evolve',
28 'hgext3rd.evolve.thirdparty', 28 'hgext3rd.evolve.thirdparty',
29 'hgext3rd.topic', 29 'hgext3rd.topic',
30 ] 30 ]
31 py_packagedir = {
32 'hgext3rd': join(dirname(__file__), 'hgext3rd')
33 }
31 34
32 py_versions = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4' 35 py_versions = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4'
33 36
34 if os.environ.get('INCLUDE_INHIBIT'): 37 if os.environ.get('INCLUDE_INHIBIT'):
35 py_modules.append('hgext3rd.evolve.hack.inhibit') 38 py_modules.append('hgext3rd.evolve.hack.inhibit')
42 author_email='pierre-yves.david@ens-lyon.org', 45 author_email='pierre-yves.david@ens-lyon.org',
43 maintainer='Pierre-Yves David', 46 maintainer='Pierre-Yves David',
44 maintainer_email='pierre-yves.david@ens-lyon.org', 47 maintainer_email='pierre-yves.david@ens-lyon.org',
45 url='https://www.mercurial-scm.org/doc/evolution/', 48 url='https://www.mercurial-scm.org/doc/evolution/',
46 description='Flexible evolution of Mercurial history.', 49 description='Flexible evolution of Mercurial history.',
47 long_description=open('README').read(), 50 long_description=open(join(dirname(__file__), 'README')).read(),
48 keywords='hg mercurial', 51 keywords='hg mercurial',
49 license='GPLv2+', 52 license='GPLv2+',
50 py_modules=py_modules, 53 py_modules=py_modules,
51 packages=py_packages, 54 packages=py_packages,
55 package_dir=py_packagedir,
52 python_requires=py_versions 56 python_requires=py_versions
53 ) 57 )