setup.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Thu, 17 Mar 2016 09:12:18 -0700
changeset 1901 85390446f8c1
parent 1839 1bc5e62fc0c7
child 1919 769b2b271422
permissions -rw-r--r--
packaging: fix setup.py and install as hgext3rd.topic This changeset is doing two things (gasp): - It fixes various errors in the setup.py - It move the topic source and install into hgext3rd.topic. This last part (code source move) use hgext3rd as namespace package to prevent installation nightmare. This won't be officially supported until Mercurial 3.8, but in the meantime, 3.7 user can enable it using the full package name: [extensions] hgext3rd.topic= Thanks goes to Julien Cristau <julien.cristau@logilab.fr> for the initial version of this.

from distutils.core import setup

requires = []
try:
    import mercurial
except ImportError:
    requires.append('mercurial')

setup(
    name='hg-topics',
    version='1.0.0',
    author='Augie Fackler',
    maintainer='Augie Fackler',
    maintainer_email='augie@google.com',
    url='http://bitbucket.org/durin42/hg-topics/',
    description='Experimental tinkering with workflow ideas for topic branches.',
    long_description=open('README.md').read(),
    keywords='hg mercurial',
    license='GPLv2+',
    packages=['hgext3rd.topic'],
    install_requires=requires,
)