[wwwsearch-commits] r19313 - wwwsearch/mechanize/trunk
jjlee at codespeak.net
jjlee at codespeak.net
Tue Nov 1 01:16:14 CET 2005
Author: jjlee
Date: Tue Nov 1 01:16:13 2005
New Revision: 19313
Modified:
wwwsearch/mechanize/trunk/setup.py
Log:
setuptools stuff
Modified: wwwsearch/mechanize/trunk/setup.py
==============================================================================
--- wwwsearch/mechanize/trunk/setup.py (original)
+++ wwwsearch/mechanize/trunk/setup.py Tue Nov 1 01:16:13 2005
@@ -21,7 +21,7 @@
args.append(pre)
return fmt % tuple(args)
-def strToTuple(text):
+def str_to_tuple(text):
if text.startswith("("):
text = text[1:-1]
els = [el.strip() for el in text.split(",")]
@@ -39,10 +39,11 @@
return tuple(newEls)
import re
-VERSION_MATCH = re.search(r'__version__ = \((.*)\)', open("mechanize/_mechanize.py").read())
-VERSION_TUPLE_STRING = VERSION_MATCH.group(1)
-VERSION_TUPLE = strToTuple(VERSION_TUPLE_STRING)
-VERSION = unparse_version(VERSION_TUPLE)
+VERSION_MATCH = re.search(r'__version__ = \((.*)\)'
+ , open("mechanize/_mechanize.py").read())
+VERSION = unparse_version(str_to_tuple(VERSION_MATCH.group(1)))
+INSTALL_REQUIRES = [
+ "ClientForm>=0.2.1", "ClientCookie>=1.0.3", "pullparser>=0.0.4"]
NAME = "mechanize"
PACKAGE = True
LICENSE = "BSD"
@@ -96,6 +97,7 @@
license = LICENSE,
platforms = PLATFORMS,
classifiers = [c for c in CLASSIFIERS.split("\n") if c],
+ install_requires = INSTALL_REQUIRES,
zip_safe = ZIP_SAFE,
test_suite = "test",
author = "John J. Lee",
More information about the wwwsearch-commits
mailing list