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,
)