Hello community, here is the log from the commit of package python-pytest-check-links for openSUSE:Factory checked in at 2020-05-19 14:47:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-check-links (Old) and /work/SRC/openSUSE:Factory/.python-pytest-check-links.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-check-links" Tue May 19 14:47:37 2020 rev:6 rq:806849 version:0.4.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-check-links/python-pytest-check-links.changes 2020-05-03 22:47:11.911150292 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-check-links.new.2738/python-pytest-check-links.changes 2020-05-19 14:47:41.347968399 +0200 @@ -1,0 +2,8 @@ +Mon May 18 09:21:46 UTC 2020 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 0.4.2: + * Another improvement to retry logic #20 + * Clean up metadata for dist generation #19 + * Improve retry logic and add python 3 classifier #18 + +------------------------------------------------------------------- Old: ---- pytest_check_links-0.4.0.tar.gz New: ---- pytest_check_links-0.4.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-check-links.spec ++++++ --- /var/tmp/diff_new_pack.xCFisW/_old 2020-05-19 14:47:42.683971254 +0200 +++ /var/tmp/diff_new_pack.xCFisW/_new 2020-05-19 14:47:42.683971254 +0200 @@ -21,13 +21,12 @@ # Tests natually require internet %bcond_with test Name: python-pytest-check-links -Version: 0.4.0 +Version: 0.4.2 Release: 0 Summary: Pytest plugin for checking links in files License: BSD-3-Clause URL: https://github.com/minrk/pytest-check-links Source: https://files.pythonhosted.org/packages/source/p/pytest_check_links/pytest_check_links-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module pbr >= 1.9} BuildRequires: %{python_module setuptools >= 17.1} BuildRequires: fdupes ++++++ pytest_check_links-0.4.0.tar.gz -> pytest_check_links-0.4.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/CHANGELOG.md new/pytest_check_links-0.4.2/CHANGELOG.md --- old/pytest_check_links-0.4.0/CHANGELOG.md 2020-05-02 11:02:00.000000000 +0200 +++ new/pytest_check_links-0.4.2/CHANGELOG.md 2020-05-06 12:00:12.000000000 +0200 @@ -1,5 +1,12 @@ # Change Log +## 0.4.2 +* Another improvement to retry logic [#20](https://github.com/jupyterlab/pytest-check-links/pull/20) + +## 0.4.1 +* Clean up metadata for dist generation [#19](https://github.com/jupyterlab/pytest-check-links/pull/19) +* Improve retry logic and add python 3 classifier [#18](https://github.com/jupyterlab/pytest-check-links/pull/18) + ## 0.4.0 * Drop py27 support and add badges [#15](https://github.com/jupyterlab/pytest-check-links/pull/15) * Use requests(-cache) [#12](https://github.com/jupyterlab/pytest-check-links/pull/12) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/ChangeLog new/pytest_check_links-0.4.2/ChangeLog --- old/pytest_check_links-0.4.0/ChangeLog 2020-05-02 11:02:45.000000000 +0200 +++ new/pytest_check_links-0.4.2/ChangeLog 2020-05-06 12:00:27.000000000 +0200 @@ -1,6 +1,24 @@ CHANGES ======= +v0.4.2 +------ + +* Update changelog +* update docstring +* Add another guard +* use headers directly in sleep + +v0.4.1 +------ + +* Update changelog +* Clean up metadata for dist generation +* fix uncache logic +* update threshold +* improve retry logic and add python 3 classifier +* Update README.md + v0.4.0 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/PKG-INFO new/pytest_check_links-0.4.2/PKG-INFO --- old/pytest_check_links-0.4.0/PKG-INFO 2020-05-02 11:02:46.000000000 +0200 +++ new/pytest_check_links-0.4.2/PKG-INFO 2020-05-06 12:00:27.786055300 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest_check_links -Version: 0.4.0 +Version: 0.4.2 Summary: Check links in files Home-page: https://github.com/jupyterlab/pytest-check-links Author: Jupyter Development Team @@ -99,7 +99,6 @@ - pick a markdown renderer (probably commonmark) or make the markdown renderer pluggable - options for validating links (allow absolute links, only remote or local, etc.) - - check internal links (`#anchors`) - find URLs in Python docstrings @@ -109,6 +108,8 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 Classifier: Topic :: Software Development :: Testing +Requires-Python: >=3.5 Description-Content-Type: text/markdown Provides-Extra: cache diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/README.md new/pytest_check_links-0.4.2/README.md --- old/pytest_check_links-0.4.0/README.md 2020-05-02 11:02:00.000000000 +0200 +++ new/pytest_check_links-0.4.2/README.md 2020-05-04 12:58:32.000000000 +0200 @@ -91,5 +91,4 @@ - pick a markdown renderer (probably commonmark) or make the markdown renderer pluggable - options for validating links (allow absolute links, only remote or local, etc.) -- check internal links (`#anchors`) - find URLs in Python docstrings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/pytest_check_links/plugin.py new/pytest_check_links-0.4.2/pytest_check_links/plugin.py --- old/pytest_check_links-0.4.0/pytest_check_links/plugin.py 2020-05-02 11:02:00.000000000 +0200 +++ new/pytest_check_links-0.4.2/pytest_check_links/plugin.py 2020-05-06 11:59:12.000000000 +0200 @@ -218,12 +218,15 @@ def reportinfo(self): return self.fspath, 0, self.description - def sleep(self, response): - """Handle responses with a Retry-After header. + def sleep(self, headers): + """Handle responses or errors with a Retry-After header. https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.37 """ - header = response.headers.get('Retry-After') + if headers is None: + return False + + header = headers.get('Retry-After') if header is None: return False @@ -266,10 +269,14 @@ try: response = session.get(url_no_anchor) except Exception as err: + if hasattr(err, 'headers') and retries and self.sleep(err.headers): + self.uncache_url(url_no_anchor) + return self.fetch_with_retries(url, retries=retries - 1) + raise BrokenLinkError(url, "%s" % err) if response.status_code >= 400: - if retries and self.sleep(response): + if retries and self.sleep(response.headers): self.uncache_url(url_no_anchor) return self.fetch_with_retries(url, retries=retries - 1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/pytest_check_links.egg-info/PKG-INFO new/pytest_check_links-0.4.2/pytest_check_links.egg-info/PKG-INFO --- old/pytest_check_links-0.4.0/pytest_check_links.egg-info/PKG-INFO 2020-05-02 11:02:46.000000000 +0200 +++ new/pytest_check_links-0.4.2/pytest_check_links.egg-info/PKG-INFO 2020-05-06 12:00:27.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-check-links -Version: 0.4.0 +Version: 0.4.2 Summary: Check links in files Home-page: https://github.com/jupyterlab/pytest-check-links Author: Jupyter Development Team @@ -99,7 +99,6 @@ - pick a markdown renderer (probably commonmark) or make the markdown renderer pluggable - options for validating links (allow absolute links, only remote or local, etc.) - - check internal links (`#anchors`) - find URLs in Python docstrings @@ -109,6 +108,8 @@ Classifier: License :: OSI Approved :: BSD License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 Classifier: Topic :: Software Development :: Testing +Requires-Python: >=3.5 Description-Content-Type: text/markdown Provides-Extra: cache diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/pytest_check_links.egg-info/pbr.json new/pytest_check_links-0.4.2/pytest_check_links.egg-info/pbr.json --- old/pytest_check_links-0.4.0/pytest_check_links.egg-info/pbr.json 2020-05-02 11:02:46.000000000 +0200 +++ new/pytest_check_links-0.4.2/pytest_check_links.egg-info/pbr.json 2020-05-06 12:00:27.000000000 +0200 @@ -1 +1 @@ -{"git_version": "3b1564b", "is_release": false} \ No newline at end of file +{"git_version": "5656741", "is_release": false} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest_check_links-0.4.0/setup.cfg new/pytest_check_links-0.4.2/setup.cfg --- old/pytest_check_links-0.4.0/setup.cfg 2020-05-02 11:02:46.000000000 +0200 +++ new/pytest_check_links-0.4.2/setup.cfg 2020-05-06 12:00:27.787392100 +0200 @@ -1,6 +1,3 @@ -[wheel] -universal = 1 - [metadata] name = pytest_check_links author = Jupyter Development Team @@ -10,11 +7,13 @@ long-description-content-type = text/markdown home-page = https://github.com/jupyterlab/pytest-check-links license = BSD-3-Clause +python-requires = >=3.5 classifier = Intended Audience :: Developers License :: OSI Approved :: BSD License Operating System :: OS Independent Programming Language :: Python + Programming Language :: Python :: 3 Topic :: Software Development :: Testing keywords = setup