You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB

  1. from os.path import dirname, join
  2. try:
  3. from setuptools import setup
  4. except:
  5. from distutils.core import setup
  6. try:
  7. extra_req = []
  8. except ImportError:
  9. extra_req = ['ordereddict>=1.1']
  10. def get_version(relpath):
  11. root = dirname(__file__)
  12. for line in open(join(root, relpath), 'rb'):
  13. line = line.decode('utf-8')
  14. if '__version__' in line:
  15. return line.split("'")[1]
  16. setup(
  17. name='hg-git',
  18. version=get_version('hggit/__init__.py'),
  19. author='The hg-git Authors',
  20. maintainer='Augie Fackler',
  21. maintainer_email='durin42@gmail.com',
  22. url='http://hg-git.github.com/',
  23. description='push to and pull from a Git repository using Mercurial',
  24. long_description="""
  25. This extension lets you communicate (push and pull) with a Git server.
  26. This way you can use Git hosting for your project or collaborate with a
  27. project that is in Git. A bridger of worlds, this plugin be.
  28. """.strip(),
  29. keywords='hg git mercurial',
  30. license='GPLv2',
  31. packages=['hggit'],
  32. package_data={'hggit': ['help/git.rst']},
  33. include_package_data=True,
  34. install_requires=['dulwich>=0.19.0'] + extra_req,
  35. )