File: setup.py

package info (click to toggle)
hg-git 0.8.12-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 868 kB
  • sloc: python: 6,248; sh: 102; makefile: 32
file content (41 lines) | stat: -rw-r--r-- 1,164 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from os.path import dirname, join

try:
    from setuptools import setup
except:
    from distutils.core import setup

try:
    extra_req = []
except ImportError:
    extra_req = ['ordereddict>=1.1']


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]


setup(
    name='hg-git',
    version=get_version('hggit/__init__.py'),
    author='The hg-git Authors',
    maintainer='Augie Fackler',
    maintainer_email='durin42@gmail.com',
    url='http://hg-git.github.com/',
    description='push to and pull from a Git repository using Mercurial',
    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'] + extra_req,
)