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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
#!/usr/bin/env python
# Setuptools-based setup script
# See:
# - http://peak.telecommunity.com/DevCenter/setuptools (*)
# - http://peak.telecommunity.com/DevCenter/EasyInstall
# (*) QOTD:
# "Notice that after each pre or post-release tag, you are free to place another
# release number, followed again by more pre- or post-release tags. For example,
# 0.6a9.dev-r41475 could denote Subversion revision 41475 of the in- development
# version of the ninth alpha of release 0.6. Notice that dev is a pre-release tag,
# so this version is a lower version number than 0.6a9, which would be the actual
# ninth alpha of release 0.6. But the -r41475 is a post-release tag, so this
# version is newer than 0.6a9.dev."
from ez_setup import use_setuptools
use_setuptools(version="0.6c9", download_delay=3)
from setuptools import setup, find_packages
from hgsvn import base_version, __doc__ as long_description
commands = ['hgimportsvn', 'hgpullsvn', 'hgpushsvn']
install_requires = []
try:
from xml.etree import ElementTree
except ImportError:
try:
import elementtree
except ImportError:
install_requires = ['elementtree']
extra_cmds = {}
try:
import py2exe
extra_cmds['console'] = ["hgimportsvn.py", "hgpullsvn.py",
"hgpushsvn.py"]
except ImportError:
pass
setup(
name = "hgsvn",
author = 'Antoine Pitrou',
author_email = 'antoine@pitrou.net',
description = ("A set of scripts to work locally on Subversion checkouts "
"using Mercurial"
),
long_description = long_description,
license = 'GNU GPL',
# *Next* version, not previous!
version = base_version,
packages = find_packages(exclude=["ez_setup"]),
test_suite = "nose.collector",
install_requires = install_requires,
entry_points = {
'console_scripts': [
'%s = hgsvn.run.%s:main' % (s, s) for s in commands
],
},
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Version Control',
],
**extra_cmds
)
|