* trunk/ (svn:externals): Adapt to change in Subversion repository.
[cvs2svn.git] / setup.py
blob131271b24752615383328d65afe73132bcfbebe4
1 #!/usr/bin/env python
3 import os
4 import sys
5 from distutils.core import setup
7 assert sys.hexversion >= 0x02020000, "Install Python 2.2 or greater"
9 def get_version():
10 "Return the version number listed in dist.sh, or None if can't find one."
11 f = open('dist.sh')
12 while 1:
13 line = f.readline().strip()
14 if line is None:
15 break
16 if line.find("VERSION=") == 0:
17 return line[8:]
18 return None
20 setup(
21 # Metadata.
22 name = "cvs2svn",
23 version = get_version(),
24 description = "CVS-to-Subversion repository converter",
25 author = "The cvs2svn Team",
26 author_email = "<dev@cvs2svn.tigris.org>",
27 url = "http://cvs2svn.tigris.org/",
28 license = "Apache-style",
29 # Data.
30 packages = ["cvs2svn_rcsparse"],
31 scripts = ["cvs2svn"]