13 line = line.decode('utf8') |
13 line = line.decode('utf8') |
14 if '__version__' in line: |
14 if '__version__' in line: |
15 if "'" in line: |
15 if "'" in line: |
16 return line.split("'")[1] |
16 return line.split("'")[1] |
17 |
17 |
18 py_modules = [ |
18 py_modules = [] |
19 'hgext.evolve', |
19 py_packages = [ |
|
20 'hgext3rd', |
|
21 'hgext3rd.evolve', |
20 ] |
22 ] |
21 |
23 |
22 if os.environ.get('INCLUDE_INHIBIT'): |
24 if os.environ.get('INCLUDE_INHIBIT'): |
23 py_modules.append('hgext.inhibit') |
25 py_modules.append('hgext.inhibit') |
24 py_modules.append('hgext.directaccess') |
26 py_modules.append('hgext.directaccess') |
25 |
27 |
26 setup( |
28 setup( |
27 name='hg-evolve', |
29 name='hg-evolve', |
28 version=get_version('hgext/evolve.py'), |
30 version=get_version('hgext3rd/evolve/__init__.py'), |
29 author='Pierre-Yves David', |
31 author='Pierre-Yves David', |
30 maintainer='Pierre-Yves David', |
32 maintainer='Pierre-Yves David', |
31 maintainer_email='pierre-yves.david@ens-lyon.org', |
33 maintainer_email='pierre-yves.david@ens-lyon.org', |
32 url='https://www.mercurial-scm.org/doc/evolution/', |
34 url='https://www.mercurial-scm.org/doc/evolution/', |
33 description='Flexible evolution of Mercurial history.', |
35 description='Flexible evolution of Mercurial history.', |
34 long_description=open('README').read(), |
36 long_description=open('README').read(), |
35 keywords='hg mercurial', |
37 keywords='hg mercurial', |
36 license='GPLv2+', |
38 license='GPLv2+', |
37 py_modules=py_modules |
39 py_modules=py_modules, |
|
40 packages=py_packages |
38 ) |
41 ) |