diff options
author | obache <obache@pkgsrc.org> | 2011-11-26 09:18:25 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-11-26 09:18:25 +0000 |
commit | 298443f10795be0d10b0ef5f529cc0b5beac597c (patch) | |
tree | d4ed24b9b2ebc14e70def8bb61204c3b56703857 /www | |
parent | 89bc4ab1cb8c49f9b766941f12cf0422484ed124 (diff) | |
download | pkgsrc-298443f10795be0d10b0ef5f529cc0b5beac597c.tar.gz |
Update py-mechanize to 0.2.5.
(added test target)
2011-03-31 John J Lee <jjl@pobox.com>
* 0.2.5 release.
* This is essentially a no-changes release to fix easy_install
breakage caused by a SourceForge issue
* Sourceforge is returning invalid HTTP responses, make download
links point to PyPI instead
* Include cookietest.cgi in source distribution
* Note new IETF cookie standardisation effort
2010-10-28 John J Lee <jjl@pobox.com>
* 0.2.4 release.
* Fix IndexError on empty Content-type header value. (GH-18)
* Fall back to another encoding if an unknown one is declared.
Fixes traceback on unknoqn encoding in Content-type header.
(GH-30)
2010-10-16 John J Lee <jjl@pobox.com>
* 0.2.3 release.
* Fix str(ParseError()) traceback. (GH-25)
* Add equality methods to mechanize.Cookie . (GH-29)
2010-07-17 John J Lee <jjl@pobox.com>
* 0.2.2 release.
* Officially support Python 2.7 (no changes were required)
* Fix TypeError on .open()ing ftp: URL (only affects Python 2.4
and 2.5)
* Don't include HTTPSHandler in __all__ if it's not available
2010-05-16 John J Lee <jjl@pobox.com>
* 0.2.1 release.
* API change: Change argument order of
HTTPRedirectHandler.redirect_request() to match urllib2.
* Fix failure to use bundled BeautifulSoup for forms. (GH-15)
* Fix default cookie path where request path has query containing
/ character. (http://bugs.python.org/issue3704)
* Fix failure to raise on click for nonexistent label. (GH-16)
* Documentation fixes.
2010-04-22 John J Lee <jjl@pobox.com>
* 0.2.0 release.
* Behaviour change: merged upstream urllib2 change (allegedly a
"bug fix") to return a response for all 2** HTTP responses (e.g.
206 Partial Content). Previously, only 200 caused a response
object to be returned. All other HTTP response codes resulted
in a response object being raised as an exception.
* Behaviour change: Use of mechanize classes with `urllib2` (and
vice-versa) is no longer supported. However, existing classes
implementing the urllib2 Handler interface are likely to work
unchanged with mechanize. Removed RequestUpgradeProcessor,
ResponseUpgradeProcessor, SeekableProcessor.
* ClientForm has been merged into mechanize. This means that
mechanize has no dependencies other than Python itself. The
ClientForm API is still available -- to switch from ClientForm to
mechanize, just s/ClientForm/mechanize in your source code, and
ensure any use of the module logging logger named "ClientForm" is
updated to use the new logger name "mechanize.forms". I probably
won't do further standalone releases of ClientForm.
* Stop monkey-patching Python stdlib.
* Merge fixes from urllib2 trunk
* Close file objects on .read() failure in .retrieve()
* Fix a python 2.4 bug due to buggy urllib.splithost
* Fix Python 2.4 syntax error in _firefox3cookiejar
* Fix __init__.py typo that hid mechanize.seek_wrapped_response and
mechanize.str2time. Fixes
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465206
* Fix an obvious bug with experimental firefox 3 cookiejar support.
It's still experimental and not properly tested.
* Change documentation to not require a .port attribute on request
objects, since that's unused.
* Doc fixes
* Added mechanize.urljoin (RFC 3986 compliant function for joining
a base URI with a URI reference)
* Merge of ClientForm (see above).
* Moved to git (from SVN) http://github.com/jjlee/mechanize
* Created an issue tracker http://github.com/jjlee/mechanize/issues
* Docs are now in markdown format (thanks John Gabriele).
* Website rearranged. The old website has been archived at
http://wwwsearch.sourceforge.net/old/ . The new website is
essentially just the mechanize pages, rearranged and cleaned up a
bit.
* Source code rearranged for easier merging with upstream urllib2
* Fully automated release process.
* New test runner. Single test suite; tests create their own HTTP
server fixtures (server fixtures are cached where possible for
speed).
Diffstat (limited to 'www')
-rw-r--r-- | www/py-mechanize/Makefile | 15 | ||||
-rw-r--r-- | www/py-mechanize/PLIST | 27 | ||||
-rw-r--r-- | www/py-mechanize/distinfo | 8 |
3 files changed, 28 insertions, 22 deletions
diff --git a/www/py-mechanize/Makefile b/www/py-mechanize/Makefile index 648f1dd6a16..cca5ebaec10 100644 --- a/www/py-mechanize/Makefile +++ b/www/py-mechanize/Makefile @@ -1,23 +1,24 @@ -# $NetBSD: Makefile,v 1.7 2011/11/25 13:29:43 obache Exp $ +# $NetBSD: Makefile,v 1.8 2011/11/26 09:18:25 obache Exp $ # -DISTNAME= mechanize-0.1.11 +DISTNAME= mechanize-0.2.5 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} -PKGREVISION= 1 CATEGORIES= www -MASTER_SITES= http://wwwsearch.sourceforge.net/mechanize/src/ +MASTER_SITES= http://pypi.python.org/packages/source/m/mechanize/ \ + http://wwwsearch.sourceforge.net/mechanize/src/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://wwwsearch.sourceforge.net/mechanize/ COMMENT= Stateful programmatic web browsing in Python -DEPENDS+= ${PYPKGPREFIX}-ClientForm>=0.2.6:../../www/py-ClientForm - PKG_DESTDIR_SUPPORT= user-destdir USE_LANGUAGES= # none -PYTHON_VERSIONS_ACCEPTED= 27 26 25 +PYTHON_VERSIONS_ACCEPTED= 27 26 25 24 + +do-test: + ${RUN}cd ${WRKSRC}; ${PYTHONBIN} test.py .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/www/py-mechanize/PLIST b/www/py-mechanize/PLIST index f63d6da3429..3ddac045615 100644 --- a/www/py-mechanize/PLIST +++ b/www/py-mechanize/PLIST @@ -1,8 +1,7 @@ -@comment $NetBSD: PLIST,v 1.2 2009/06/14 22:00:32 joerg Exp $ +@comment $NetBSD: PLIST,v 1.3 2011/11/26 09:18:25 obache Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt -${PYSITELIB}/${EGG_INFODIR}/requires.txt ${PYSITELIB}/${EGG_INFODIR}/top_level.txt ${PYSITELIB}/${EGG_INFODIR}/zip-safe ${PYSITELIB}/mechanize/__init__.py @@ -20,12 +19,12 @@ ${PYSITELIB}/mechanize/_clientcookie.pyo ${PYSITELIB}/mechanize/_debug.py ${PYSITELIB}/mechanize/_debug.pyc ${PYSITELIB}/mechanize/_debug.pyo -${PYSITELIB}/mechanize/_file.py -${PYSITELIB}/mechanize/_file.pyc -${PYSITELIB}/mechanize/_file.pyo ${PYSITELIB}/mechanize/_firefox3cookiejar.py ${PYSITELIB}/mechanize/_firefox3cookiejar.pyc ${PYSITELIB}/mechanize/_firefox3cookiejar.pyo +${PYSITELIB}/mechanize/_form.py +${PYSITELIB}/mechanize/_form.pyc +${PYSITELIB}/mechanize/_form.pyo ${PYSITELIB}/mechanize/_gzip.py ${PYSITELIB}/mechanize/_gzip.pyc ${PYSITELIB}/mechanize/_gzip.pyo @@ -41,6 +40,9 @@ ${PYSITELIB}/mechanize/_http.pyo ${PYSITELIB}/mechanize/_lwpcookiejar.py ${PYSITELIB}/mechanize/_lwpcookiejar.pyc ${PYSITELIB}/mechanize/_lwpcookiejar.pyo +${PYSITELIB}/mechanize/_markupbase.py +${PYSITELIB}/mechanize/_markupbase.pyc +${PYSITELIB}/mechanize/_markupbase.pyo ${PYSITELIB}/mechanize/_mechanize.py ${PYSITELIB}/mechanize/_mechanize.pyc ${PYSITELIB}/mechanize/_mechanize.pyo @@ -65,24 +67,27 @@ ${PYSITELIB}/mechanize/_response.pyo ${PYSITELIB}/mechanize/_rfc3986.py ${PYSITELIB}/mechanize/_rfc3986.pyc ${PYSITELIB}/mechanize/_rfc3986.pyo -${PYSITELIB}/mechanize/_seek.py -${PYSITELIB}/mechanize/_seek.pyc -${PYSITELIB}/mechanize/_seek.pyo +${PYSITELIB}/mechanize/_sgmllib_copy.py +${PYSITELIB}/mechanize/_sgmllib_copy.pyc +${PYSITELIB}/mechanize/_sgmllib_copy.pyo ${PYSITELIB}/mechanize/_sockettimeout.py ${PYSITELIB}/mechanize/_sockettimeout.pyc ${PYSITELIB}/mechanize/_sockettimeout.pyo ${PYSITELIB}/mechanize/_testcase.py ${PYSITELIB}/mechanize/_testcase.pyc ${PYSITELIB}/mechanize/_testcase.pyo -${PYSITELIB}/mechanize/_upgrade.py -${PYSITELIB}/mechanize/_upgrade.pyc -${PYSITELIB}/mechanize/_upgrade.pyo ${PYSITELIB}/mechanize/_urllib2.py ${PYSITELIB}/mechanize/_urllib2.pyc ${PYSITELIB}/mechanize/_urllib2.pyo +${PYSITELIB}/mechanize/_urllib2_fork.py +${PYSITELIB}/mechanize/_urllib2_fork.pyc +${PYSITELIB}/mechanize/_urllib2_fork.pyo ${PYSITELIB}/mechanize/_useragent.py ${PYSITELIB}/mechanize/_useragent.pyc ${PYSITELIB}/mechanize/_useragent.pyo ${PYSITELIB}/mechanize/_util.py ${PYSITELIB}/mechanize/_util.pyc ${PYSITELIB}/mechanize/_util.pyo +${PYSITELIB}/mechanize/_version.py +${PYSITELIB}/mechanize/_version.pyc +${PYSITELIB}/mechanize/_version.pyo diff --git a/www/py-mechanize/distinfo b/www/py-mechanize/distinfo index ae9462b086a..6084adab6d7 100644 --- a/www/py-mechanize/distinfo +++ b/www/py-mechanize/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.2 2009/10/11 08:32:04 wiz Exp $ +$NetBSD: distinfo,v 1.3 2011/11/26 09:18:25 obache Exp $ -SHA1 (mechanize-0.1.11.tar.gz) = 69ef3a38cd5e097aee1f24772f255e239c41e56c -RMD160 (mechanize-0.1.11.tar.gz) = d1e0612e71a128c0439122fc58c286dc371fa7a0 -Size (mechanize-0.1.11.tar.gz) = 241357 bytes +SHA1 (mechanize-0.2.5.tar.gz) = 9d2fb74fc762e54848c0b3ed4b6a9c73722ef619 +RMD160 (mechanize-0.2.5.tar.gz) = f9deafaeb591cd4047a6f8845221463320c86d9b +Size (mechanize-0.2.5.tar.gz) = 383918 bytes |