Skip to content
Snippets Groups Projects
setup.py 1.21 KiB
Newer Older
from __future__ import absolute_import, print_function
timeless developer's avatar
timeless developer committed

from os.path import dirname, join

Kevin Bullock's avatar
Kevin Bullock committed
try:
    from setuptools import setup
except:
    from distutils.core import setup


def get_version(relpath):
    root = dirname(__file__)
    for line in open(join(root, relpath), 'rb'):
        line = line.decode('utf-8')
        if '__version__' in line:
            return line.split("'")[1]


Kevin Bullock's avatar
Kevin Bullock committed
setup(
    name='hg-git',
    version=get_version('hggit/__init__.py'),
    author='The hg-git Authors',
    maintainer='Kevin Bullock',
    maintainer_email='kbullock+mercurial@ringworld.org',
muxator's avatar
muxator committed
    url='https://hg-git.github.io/',
    description='push to and pull from a Git repository using Mercurial',
Kevin Bullock's avatar
Kevin Bullock committed
    long_description="""
This extension lets you communicate (push and pull) with a Git server.
This way you can use Git hosting for your project or collaborate with a
project that is in Git.  A bridger of worlds, this plugin be.
    """.strip(),
    keywords='hg git mercurial',
    license='GPLv2',
    packages=['hggit'],
    package_data={'hggit': ['help/git.rst']},
    include_package_data=True,
    install_requires=[
        'dulwich>=0.19.0;python_version>="3.0"',
        'dulwich>=0.19.0,<0.20.0;python_version<"3.0"',
    ],
Kevin Bullock's avatar
Kevin Bullock committed
)