topic: extract the code listing all topics
The code will become more complexe with formatter support and additional data in
the verbose output. We extract the code in its own function first.
from distutils.core import setup
requires = []
try:
import mercurial
mercurial.__all__
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,
)