Fri Oct 6 06:31:44 2017 UTC ()
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.


(adam)
diff -r1.2 -r1.3 pkgsrc/www/py-MechanicalSoup/Makefile
diff -r1.1 -r1.2 pkgsrc/www/py-MechanicalSoup/PLIST
diff -r1.1 -r1.2 pkgsrc/www/py-MechanicalSoup/distinfo

cvs diff -r1.2 -r1.3 pkgsrc/www/py-MechanicalSoup/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-MechanicalSoup/Makefile 2017/05/14 13:00:12 1.2
+++ pkgsrc/www/py-MechanicalSoup/Makefile 2017/10/06 06:31:44 1.3
@@ -1,21 +1,24 @@ @@ -1,21 +1,24 @@
1# $NetBSD: Makefile,v 1.2 2017/05/14 13:00:12 leot Exp $ 1# $NetBSD: Makefile,v 1.3 2017/10/06 06:31:44 adam Exp $
2 2
3DISTNAME= MechanicalSoup-0.7.0 3DISTNAME= MechanicalSoup-0.8.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 1 
6CATEGORIES= www python 5CATEGORIES= www python
7MASTER_SITES= ${MASTER_SITE_PYPI:=M/MechanicalSoup/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=M/MechanicalSoup/}
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://github.com/hickford/MechanicalSoup 9HOMEPAGE= https://github.com/hickford/MechanicalSoup
11COMMENT= Library for automating interaction with websites 10COMMENT= Library for automating interaction with websites
12LICENSE= mit 11LICENSE= mit
13 12
14DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4 13DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
15DEPENDS+= ${PYPKGPREFIX}-requests>=2.0:../../devel/py-requests 14DEPENDS+= ${PYPKGPREFIX}-requests>=2.0:../../devel/py-requests
16DEPENDS+= ${PYPKGPREFIX}-six>=1.4:../../lang/py-six 15DEPENDS+= ${PYPKGPREFIX}-six>=1.4:../../lang/py-six
 16BUILD_DEPENDS+= ${PYPKGPREFIX}-requests-mock-[0-9]*:../../devel/py-requests-mock
 17BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 18BUILD_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 19BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
17 20
18USE_LANGUAGES= # none 21USE_LANGUAGES= # none
19 22
20.include "../../lang/python/egg.mk" 23.include "../../lang/python/egg.mk"
21.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/www/py-MechanicalSoup/PLIST (expand / switch to unified diff)

--- pkgsrc/www/py-MechanicalSoup/PLIST 2017/05/12 10:02:13 1.1
+++ pkgsrc/www/py-MechanicalSoup/PLIST 2017/10/06 06:31:44 1.2
@@ -1,21 +1,24 @@ @@ -1,21 +1,24 @@
1@comment $NetBSD: PLIST,v 1.1 2017/05/12 10:02:13 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.2 2017/10/06 06:31:44 adam Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
5${PYSITELIB}/${EGG_INFODIR}/requires.txt 5${PYSITELIB}/${EGG_INFODIR}/requires.txt
6${PYSITELIB}/${EGG_INFODIR}/top_level.txt 6${PYSITELIB}/${EGG_INFODIR}/top_level.txt
7${PYSITELIB}/mechanicalsoup/__init__.py 7${PYSITELIB}/mechanicalsoup/__init__.py
8${PYSITELIB}/mechanicalsoup/__init__.pyc 8${PYSITELIB}/mechanicalsoup/__init__.pyc
9${PYSITELIB}/mechanicalsoup/__init__.pyo 9${PYSITELIB}/mechanicalsoup/__init__.pyo
 10${PYSITELIB}/mechanicalsoup/__version__.py
 11${PYSITELIB}/mechanicalsoup/__version__.pyc
 12${PYSITELIB}/mechanicalsoup/__version__.pyo
10${PYSITELIB}/mechanicalsoup/browser.py 13${PYSITELIB}/mechanicalsoup/browser.py
11${PYSITELIB}/mechanicalsoup/browser.pyc 14${PYSITELIB}/mechanicalsoup/browser.pyc
12${PYSITELIB}/mechanicalsoup/browser.pyo 15${PYSITELIB}/mechanicalsoup/browser.pyo
13${PYSITELIB}/mechanicalsoup/form.py 16${PYSITELIB}/mechanicalsoup/form.py
14${PYSITELIB}/mechanicalsoup/form.pyc 17${PYSITELIB}/mechanicalsoup/form.pyc
15${PYSITELIB}/mechanicalsoup/form.pyo 18${PYSITELIB}/mechanicalsoup/form.pyo
16${PYSITELIB}/mechanicalsoup/stateful_browser.py 19${PYSITELIB}/mechanicalsoup/stateful_browser.py
17${PYSITELIB}/mechanicalsoup/stateful_browser.pyc 20${PYSITELIB}/mechanicalsoup/stateful_browser.pyc
18${PYSITELIB}/mechanicalsoup/stateful_browser.pyo 21${PYSITELIB}/mechanicalsoup/stateful_browser.pyo
19${PYSITELIB}/mechanicalsoup/utils.py 22${PYSITELIB}/mechanicalsoup/utils.py
20${PYSITELIB}/mechanicalsoup/utils.pyc 23${PYSITELIB}/mechanicalsoup/utils.pyc
21${PYSITELIB}/mechanicalsoup/utils.pyo 24${PYSITELIB}/mechanicalsoup/utils.pyo

cvs diff -r1.1 -r1.2 pkgsrc/www/py-MechanicalSoup/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-MechanicalSoup/distinfo 2017/05/12 10:02:13 1.1
+++ pkgsrc/www/py-MechanicalSoup/distinfo 2017/10/06 06:31:44 1.2
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.1 2017/05/12 10:02:13 wiz Exp $ 1$NetBSD: distinfo,v 1.2 2017/10/06 06:31:44 adam Exp $
2 2
3SHA1 (MechanicalSoup-0.7.0.tar.gz) = 511acdada1a97142b5b4350c8d253fd2b5071677 3SHA1 (MechanicalSoup-0.8.0.tar.gz) = f25b014570e9f7587da5774fc16fb373a42e201a
4RMD160 (MechanicalSoup-0.7.0.tar.gz) = 5527db9d3f443efd43005aaa80f72f2517c960ca 4RMD160 (MechanicalSoup-0.8.0.tar.gz) = 7bea207d10ea5e72fbb04b29c1a5cbd3d3154c2a
5SHA512 (MechanicalSoup-0.7.0.tar.gz) = 51fd9f3e637449f01505c3142dcbe49f97b9556cae6432a244549d6fadff96e5528ae506be1e634d76efaa0af6f1feb3c3c59b31ff6ace22f98efd10d783606b 5SHA512 (MechanicalSoup-0.8.0.tar.gz) = 05053780ec80e8856014202e74e5b00c8f4cf05309eaccbf775e7772e78f8935fa87ef55598c4e1dc66e8639129628399076a31c0fe02cdf2747a28529451b19
6Size (MechanicalSoup-0.7.0.tar.gz) = 10615 bytes 6Size (MechanicalSoup-0.8.0.tar.gz) = 13769 bytes