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: update to 0.8.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a066c8f7c5c2
branches:  trunk
changeset: 369827:a066c8f7c5c2
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Oct 06 06:31:44 2017 +0000

description:
py-MechanicalSoup: update to 0.8.0

Version 0.8

Main changes:
* `Browser` and `StatefulBrowser` can now be configured to raise a
  `LinkNotFound` exception when encountering a 404 Not Found error.
  This is activated by passing `raise_on_404=True` to the constructor.
  It is disabled by default for backward compatibility, but is highly
  recommanded.
* `Browser` now has a `__del__` method that closes the current session
  when the object is deleted.
* A `Link` object can now be passed to `follow_link`.
* The user agent can now be customized. The default includes
  `MechanicalSoup` and its version.
* There is now a direct interface to the cookiejar in `*Browser`
  classes (`(set|get)_cookiejar` methods).
* This is the last MechanicalSoup version supporting Python 2.6 and
  3.3.

Bug fixes:
* We used to crash on forms without action="..." fields.
* The `choose_submit` method has been fixed, and the `btnName`
  argument of `StatefulBrowser.submit_selected` is now a shortcut for
  using `choose_submit`.
* Arguments to `open_relative` were not properly forwarded.

Internal changes:
* The testsuite has been greatly improved. It now uses the pytest API
  (not only the `pytest` launcher) for more concise code.
* The coverage of the testsuite is now measured with codecov.io. The
  results can be viewed on:
  https://codecov.io/gh/hickford/MechanicalSoup
* We now have a requires.io badge to help us tracking issues with
  dependencies. The report can be viewed on:
  https://requires.io/github/hickford/MechanicalSoup/requirements/
* The version number now appears in a single place in the source code.

diffstat:

 www/py-MechanicalSoup/Makefile |   9 ++++++---
 www/py-MechanicalSoup/PLIST    |   5 ++++-
 www/py-MechanicalSoup/distinfo |  10 +++++-----
 3 files changed, 15 insertions(+), 9 deletions(-)

diffs (59 lines):

diff -r 59bf20bfa7b7 -r a066c8f7c5c2 www/py-MechanicalSoup/Makefile
--- a/www/py-MechanicalSoup/Makefile    Fri Oct 06 06:22:37 2017 +0000
+++ b/www/py-MechanicalSoup/Makefile    Fri Oct 06 06:31:44 2017 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2017/05/14 13:00:12 leot Exp $
+# $NetBSD: Makefile,v 1.3 2017/10/06 06:31:44 adam Exp $
 
-DISTNAME=      MechanicalSoup-0.7.0
+DISTNAME=      MechanicalSoup-0.8.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=M/MechanicalSoup/}
 
@@ -14,6 +13,10 @@
 DEPENDS+=      ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
 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
 
 USE_LANGUAGES= # none
 
diff -r 59bf20bfa7b7 -r a066c8f7c5c2 www/py-MechanicalSoup/PLIST
--- a/www/py-MechanicalSoup/PLIST       Fri Oct 06 06:22:37 2017 +0000
+++ b/www/py-MechanicalSoup/PLIST       Fri Oct 06 06:31:44 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2017/05/12 10:02:13 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/10/06 06:31:44 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,6 +7,9 @@
 ${PYSITELIB}/mechanicalsoup/__init__.py
 ${PYSITELIB}/mechanicalsoup/__init__.pyc
 ${PYSITELIB}/mechanicalsoup/__init__.pyo
+${PYSITELIB}/mechanicalsoup/__version__.py
+${PYSITELIB}/mechanicalsoup/__version__.pyc
+${PYSITELIB}/mechanicalsoup/__version__.pyo
 ${PYSITELIB}/mechanicalsoup/browser.py
 ${PYSITELIB}/mechanicalsoup/browser.pyc
 ${PYSITELIB}/mechanicalsoup/browser.pyo
diff -r 59bf20bfa7b7 -r a066c8f7c5c2 www/py-MechanicalSoup/distinfo
--- a/www/py-MechanicalSoup/distinfo    Fri Oct 06 06:22:37 2017 +0000
+++ b/www/py-MechanicalSoup/distinfo    Fri Oct 06 06:31:44 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2017/05/12 10:02:13 wiz Exp $
+$NetBSD: distinfo,v 1.2 2017/10/06 06:31:44 adam Exp $
 
-SHA1 (MechanicalSoup-0.7.0.tar.gz) = 511acdada1a97142b5b4350c8d253fd2b5071677
-RMD160 (MechanicalSoup-0.7.0.tar.gz) = 5527db9d3f443efd43005aaa80f72f2517c960ca
-SHA512 (MechanicalSoup-0.7.0.tar.gz) = 51fd9f3e637449f01505c3142dcbe49f97b9556cae6432a244549d6fadff96e5528ae506be1e634d76efaa0af6f1feb3c3c59b31ff6ace22f98efd10d783606b
-Size (MechanicalSoup-0.7.0.tar.gz) = 10615 bytes
+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



Home | Main Index | Thread Index | Old Index