[wwwsearch-commits] r29964 - wwwsearch/mechanize/trunk

jjlee at codespeak.net jjlee at codespeak.net
Wed Jul 12 00:04:18 CEST 2006


Author: jjlee
Date: Wed Jul 12 00:04:17 2006
New Revision: 29964

Modified:
   wwwsearch/mechanize/trunk/README.html.in
   wwwsearch/mechanize/trunk/setup.py
Log:
Declare a setuptools dependency on BeautifulSoup version 2

Modified: wwwsearch/mechanize/trunk/README.html.in
==============================================================================
--- wwwsearch/mechanize/trunk/README.html.in	(original)
+++ wwwsearch/mechanize/trunk/README.html.in	Wed Jul 12 00:04:17 2006
@@ -296,8 +296,6 @@
        integrate docstring and non-docstring docs.
     </ul>
   <li>Note BeautifulSoup 3.0 doesn't work yet.
-  <li>Add an "extra" to setup.py for BeautifulSoup (i.e. a declared
-    feature depending on BeautifulSoup)?
   <li>Document use of BeautifulSoup (RobustFactory).
   <li>Document means of processing response on ad-hoc basis with
     .set_response() - e.g. to fix bad encoding in Content-type header or
@@ -571,7 +569,14 @@
   <li>Which version of Python do I need?
   <p>2.3 or above.
   <li>What else do I need?
-  <p>mechanize depends on <a href="../ClientForm/">ClientForm</a>.
+  <p>mechanize depends on <a href="../ClientForm/">ClientForm</a>.  The
+     setup.py script also declares a dependency on <a
+     href="http://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a>,
+     but there is no true dependency: the declaration is there only to avoid
+     confusing people who don't realise that mechanize is not compatible with
+     BeautifulSoup version 3 -- only BeautifulSoup version 2 is currently
+     supported.  A future version of mechanize will support BeautifulSoup
+     version 3.
   <p>The versions of those required modules are listed in the
      <code>setup.py</code> for mechanize (included with the download).  The
      dependencies are automatically fetched by <a

Modified: wwwsearch/mechanize/trunk/setup.py
==============================================================================
--- wwwsearch/mechanize/trunk/setup.py	(original)
+++ wwwsearch/mechanize/trunk/setup.py	Wed Jul 12 00:04:17 2006
@@ -53,7 +53,12 @@
 ##                           open("mechanize/_mechanize.py").read())
 ## VERSION = unparse_version(str_to_tuple(VERSION_MATCH.group(1)))
 VERSION = "0.1.3"
-INSTALL_REQUIRES = ["ClientForm>=0.2.2, ==dev"]
+INSTALL_REQUIRES = [
+    "ClientForm>=0.2.2, ==dev",
+    # there's no dependency on BeautifulSoup, but people get confused when
+    # BeautifulSoup 3 doesn't work
+    "BeautifulSoup>=2.1.1, <3.0",
+    ]
 NAME = "mechanize"
 PACKAGE = True
 LICENSE = "BSD"  # or ZPL 2.1


More information about the wwwsearch-commits mailing list