Mercurial > hg > hg-fastimport
view setup.py @ 90:f58882dce2d7
Move README.txt to README.rst and tidy up
Now reflects no dependencies, how to install using pip and
how to use it.
All other information has been discarded and can be found by
looking in other files.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 19 Jan 2021 23:05:11 +0000 |
| parents | fec9b2b96c5f |
| children | c305720d5b7c |
line wrap: on
line source
from os.path import dirname, join try: from setuptools import setup except: from distutils.core import setup def get_version(relpath): path = join(dirname(__file__), relpath) for line in open(path, 'rb'): line = line.decode('utf-8') if '__version__' in line: return line.split("'")[1] py_packages = [ 'hgext3rd', 'hgext3rd.fastimport', ] py_packagedir = { 'hgext3rd': join(dirname(__file__), 'hgext3rd') } py_versions = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4' setup( name='hg-fastimport', version=get_version('hgext3rd/fastimport/__init__.py'), author='The hg-fastimport authors', maintainer='Roy Marples', maintainer_email='roy@marples.name', url='https://roy.marples.name/hg/hg-fastimport/', description='Mercurial extension for importing from a git fast-import stream.', long_description=open(join(dirname(__file__), 'README.rst')).read(), keywords='hg git mercurial', license='GPLv2', packages=py_packages, package_dir=py_packagedir, python_requires=py_versions, )
