pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-MechanicalSoup py-MechanicalSoup: updated to 0....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dc4b15d724e0
branches:  trunk
changeset: 383523:dc4b15d724e0
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Aug 02 15:39:31 2018 +0000

description:
py-MechanicalSoup: updated to 0.10.0

Version 0.10

Main changes:
Added StatefulBrowser.refresh() to reload the current page with the same request.
StatefulBrowser.follow_link, StatefulBrowser.submit_selected() and the new StatefulBrowser.download_link now sets the Referer: HTTP header to the page from which the link is followed.
Added method StatefulBrowser.download_link, which will download the contents of a link to a file without changing the state of the browser.
The selector argument of Browser.select_form can now be a bs4.element.Tag in addition to a CSS selector.
Browser.submit and StatefulBrowser.submit_selected accept a larger number of keyword arguments. Arguments are forwarded to requests.Session.request.

Internal changes:
StatefulBrowser.choose_submit will now ignore input elements that are missing a name-attribute instead of raising a KeyError.
Private methods Browser._build_request and Browser._prepare_request have been replaced by a single method Browser._request.

diffstat:

 www/py-MechanicalSoup/Makefile |  13 ++++++++-----
 www/py-MechanicalSoup/distinfo |  10 +++++-----
 2 files changed, 13 insertions(+), 10 deletions(-)

diffs (46 lines):

diff -r 8d01c449d1cf -r dc4b15d724e0 www/py-MechanicalSoup/Makefile
--- a/www/py-MechanicalSoup/Makefile    Thu Aug 02 15:36:55 2018 +0000
+++ b/www/py-MechanicalSoup/Makefile    Thu Aug 02 15:39:31 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2017/10/06 06:31:44 adam Exp $
+# $NetBSD: Makefile,v 1.4 2018/08/02 15:39:31 adam Exp $
 
-DISTNAME=      MechanicalSoup-0.8.0
+DISTNAME=      MechanicalSoup-0.10.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=M/MechanicalSoup/}
@@ -11,12 +11,15 @@
 LICENSE=       mit
 
 DEPENDS+=      ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
+DEPENDS+=      ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
 DEPENDS+=      ${PYPKGPREFIX}-requests>=2.0:../../devel/py-requests
 DEPENDS+=      ${PYPKGPREFIX}-six>=1.4:../../lang/py-six
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-requests-mock-[0-9]*:../../devel/py-requests-mock
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+TEST_DEPENDS+= ${PYPKGPREFIX}-requests-mock-[0-9]*:../../devel/py-requests-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
 
 USE_LANGUAGES= # none
 
diff -r 8d01c449d1cf -r dc4b15d724e0 www/py-MechanicalSoup/distinfo
--- a/www/py-MechanicalSoup/distinfo    Thu Aug 02 15:36:55 2018 +0000
+++ b/www/py-MechanicalSoup/distinfo    Thu Aug 02 15:39:31 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2017/10/06 06:31:44 adam Exp $
+$NetBSD: distinfo,v 1.3 2018/08/02 15:39:31 adam Exp $
 
-SHA1 (MechanicalSoup-0.8.0.tar.gz) = f25b014570e9f7587da5774fc16fb373a42e201a
-RMD160 (MechanicalSoup-0.8.0.tar.gz) = 7bea207d10ea5e72fbb04b29c1a5cbd3d3154c2a
-SHA512 (MechanicalSoup-0.8.0.tar.gz) = 05053780ec80e8856014202e74e5b00c8f4cf05309eaccbf775e7772e78f8935fa87ef55598c4e1dc66e8639129628399076a31c0fe02cdf2747a28529451b19
-Size (MechanicalSoup-0.8.0.tar.gz) = 13769 bytes
+SHA1 (MechanicalSoup-0.10.0.tar.gz) = 610ba98c7bfd03a66145e490ee99f9807d0df635
+RMD160 (MechanicalSoup-0.10.0.tar.gz) = ffc3b969250f08e68ea68c05cc4afdeb277a9d92
+SHA512 (MechanicalSoup-0.10.0.tar.gz) = d1c04270bb65f9be07d5de4aa68691b8602d37d574a6675ea8fd22c2b91a8ca06a1eec479c1eae6d93ce7534571de2b5592aa03cc6646ca6988dbd82e4ae4c3f
+Size (MechanicalSoup-0.10.0.tar.gz) = 24165 bytes



Home | Main Index | Thread Index | Old Index