commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2020-08-28 23:45:17 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.3399 (New) Package is "python-pytest-doctestplus" Fri Aug 28 23:45:17 2020 rev:9 rq:829699 version:0.8.0 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2020-06-10 00:49:52.731174574 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.3399/python-pytest-doctestplus.changes 2020-08-28 23:45:19.935488177 +0200 @@ -1,0 +2,6 @@ +Tue Aug 25 13:53:35 UTC 2020 - Marketa Calabkova + +- Update to 0.8.0 + * Compatibility with ``pytest`` 6.0.0. [#120] + +--- Old: pytest-doctestplus-0.7.0.tar.gz New: pytest-doctestplus-0.8.0.tar.gz Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.L8liZr/_old 2020-08-28 23:45:21.995486857 +0200 +++ /var/tmp/diff_new_pack.L8liZr/_new 2020-08-28 23:45:21.999486854 +0200 @@ -27,7 +27,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-doctestplus%{psuffix} -Version:0.7.0 +Version:0.8.0 Release:0 Summary:Pytest plugin with advanced doctest features License:BSD-3-Clause @@ -69,6 +69,7 @@ %if %{with test} %check export LANG=en_US.UTF8 +export PY_IGNORE_IMPORTMISMATCH=1 # README.rst contains Python 3 only imports %pytest --doctest-plus --doctest-rst -k 'not README.rst' %endif ++ pytest-doctestplus-0.7.0.tar.gz -> pytest-doctestplus-0.8.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.7.0/CHANGES.rst new/pytest-doctestplus-0.8.0/CHANGES.rst --- old/pytest-doctestplus-0.7.0/CHANGES.rst2020-05-20 16:57:53.0 +0200 +++ new/pytest-doctestplus-0.8.0/CHANGES.rst2020-07-31 22:55:19.0 +0200 @@ -1,3 +1,8 @@ +0.8.0 (2020-07-31) +== + +- Compatibility with ``pytest`` 6.0.0. [#120] + 0.7.0 (2020-05-20) == diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.7.0/PKG-INFO new/pytest-doctestplus-0.8.0/PKG-INFO --- old/pytest-doctestplus-0.7.0/PKG-INFO 2020-05-20 16:58:54.0 +0200 +++ new/pytest-doctestplus-0.8.0/PKG-INFO 2020-07-31 23:04:35.411392200 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 1.2 +Metadata-Version: 2.1 Name: pytest-doctestplus -Version: 0.7.0 +Version: 0.8.0 Summary: Pytest plugin with advanced doctest features. Home-page: https://astropy.org Author: The Astropy Developers @@ -301,3 +301,4 @@ Classifier: Topic :: Software Development :: Testing Classifier: Topic :: Utilities Requires-Python: >=3.6 +Description-Content-Type: text/x-rst diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.7.0/pytest_doctestplus/__init__.py new/pytest-doctestplus-0.8.0/pytest_doctestplus/__init__.py --- old/pytest-doctestplus-0.7.0/pytest_doctestplus/__init__.py 2020-05-20 16:57:20.0 +0200 +++ new/pytest-doctestplus-0.8.0/pytest_doctestplus/__init__.py 2020-07-31 22:55:19.0 +0200 @@ -3,4 +3,4 @@ This package contains pytest plugins that are used by the astropy test suite. """ -__version__ = '0.7.0' +__version__ = '0.8.0.dev0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.7.0/pytest_doctestplus/plugin.py new/pytest-doctestplus-0.8.0/pytest_doctestplus/plugin.py --- old/pytest-doctestplus-0.7.0/pytest_doctestplus/plugin.py 2020-05-20 16:56:16.0 +0200 +++ new/pytest-doctestplus-0.8.0/pytest_doctestplus/plugin.py 2020-07-31 22:55:19.0 +0200 @@ -10,6 +10,8 @@ import sys import warnings +from packaging.version import Version + import pytest from pytest_doctestplus.utils import ModuleChecker @@ -21,6 +23,8 @@ def indent(text, prefix): return '\n'.join([prefix + line for line in text.splitlines()]) +PYTEST_GT_5 = Version(pytest.__version__) > Version('5.9.9') + comment_characters = { '.txt': '#', '.tex': '%', @@ -169,7 +173,12 @@ if self.fspath.basename == "setup.py": return elif self.fspath.basename == "conftest.py": -module = self.config.pluginmanager._importconftest(self.fspath) +if PYTEST_GT_5: +module =
commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2020-06-10 00:49:51 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.3606 (New) Package is "python-pytest-doctestplus" Wed Jun 10 00:49:51 2020 rev:8 rq:812817 version:0.7.0 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2020-05-19 14:47:34.871954564 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.3606/python-pytest-doctestplus.changes 2020-06-10 00:49:52.731174574 +0200 @@ -1,0 +2,7 @@ +Tue Jun 9 08:05:00 UTC 2020 - Tomáš Chvátal + +- Update to 0.7.0: + * Added a new ini option, doctest_subpackage_requires, that can +be used to skip specific subpackages based on required packages. [#112] + +--- Old: pytest-doctestplus-0.6.1.tar.gz New: pytest-doctestplus-0.7.0.tar.gz Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.BRqYEY/_old 2020-06-10 00:49:53.411176353 +0200 +++ /var/tmp/diff_new_pack.BRqYEY/_new 2020-06-10 00:49:53.415176364 +0200 @@ -27,7 +27,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-doctestplus%{psuffix} -Version:0.6.1 +Version:0.7.0 Release:0 Summary:Pytest plugin with advanced doctest features License:BSD-3-Clause ++ pytest-doctestplus-0.6.1.tar.gz -> pytest-doctestplus-0.7.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.6.1/.gitignore new/pytest-doctestplus-0.7.0/.gitignore --- old/pytest-doctestplus-0.6.1/.gitignore 2019-11-02 18:35:36.0 +0100 +++ new/pytest-doctestplus-0.7.0/.gitignore 1970-01-01 01:00:00.0 +0100 @@ -1,60 +0,0 @@ -# Compiled files -*.py[cod] -*.a -*.o -*.so -*.pyd -__pycache__ - -# Ignore .c files by default to avoid including generated code. If you want to -# add a non-generated .c extension, use `git add -f filename.c`. -*.c - -# Other generated files -MANIFEST - -# Sphinx -_build -_generated -docs/api -docs/generated - -# Packages/installer info -*.egg -*.egg-info -dist -build -eggs -.eggs -parts -bin -var -sdist -develop-eggs -.installed.cfg -distribute-*.tar.gz - -# Other -.cache -.tox -.*.swp -.*.swo -*~ -.project -.pydevproject -.settings -.coverage -cover -htmlcov -.pytest_cache - -# Env -.venv -venv -.env - -# Mac OSX -.DS_Store - -# PyCharm -.idea diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.6.1/.travis.yml new/pytest-doctestplus-0.7.0/.travis.yml --- old/pytest-doctestplus-0.6.1/.travis.yml2020-04-30 08:00:07.0 +0200 +++ new/pytest-doctestplus-0.7.0/.travis.yml1970-01-01 01:00:00.0 +0100 @@ -1,52 +0,0 @@ -# We set the language to c because python isn't supported on the MacOS X nodes -# on Travis. However, the language ends up being irrelevant anyway, since we -# install Python ourselves using conda. -language: c - -os: -- linux -- windows - -env: -global: -# The following versions are the 'default' for tests, unless -# overidden underneath. They are defined here in order to save having -# to repeat them for all configurations. -- PYTHON_VERSION=3.8 -- PYTEST_COMMAND='pytest' -- PY_IGNORE_IMPORTMISMATCH=1 - -jobs: -- PYTHON_VERSION=3.6 -- PYTHON_VERSION=3.7 PYTEST_VERSION=4 -- PYTHON_VERSION=3.8 PYTEST_VERSION='<5.4' - -stages: -# only run 2 jobs initially. Using "test" as it cannot be adjusted for the root jobs above. -- name: Initial tests -- name: test - -jobs: -include: -- os: linux - env: PYTHON_VERSION=3.7 NUMPY_VERSION=stable - stage: Initial tests - -# Try a run on OSX with latest versions of python and pytest -- os: osx - stage: test - env: PYTHON_VERSION=3.7 - -# Try a run against dev pytest -- stage: test - env: PYTHON_VERSION=3.8 PYTEST_VERSION=dev - -install: -- git clone git://github.com/astropy/ci-helpers.git -- source ci-helpers/travis/setup_conda.sh -- python ./setup.py install - -script: - - $PYTEST_COMMAND --doctest-plus - - $PYTEST_COMMAND --doctest-plus --doctest-rst - - $PYTEST_COMMAND --doctest-plus --doctest-rst --text-file-format=tex diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore'
commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2020-05-19 14:47:30 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.2738 (New) Package is "python-pytest-doctestplus" Tue May 19 14:47:30 2020 rev:7 rq:806847 version:0.6.1 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2019-11-18 20:10:07.733600020 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.2738/python-pytest-doctestplus.changes 2020-05-19 14:47:34.871954564 +0200 @@ -1,0 +2,9 @@ +Mon May 18 09:18:14 UTC 2020 - Tomáš Chvátal + +- Update to 0.6.1: + * Disabling the usage of the doctest_ignore_import_errors option + * Drop support for python versions earlier than 3.6. [#103] + * Drop support for pytest versions earlier than 4.0. [#103] + * Fix compatibility with pytest 5.4. [#103] + +--- Old: pytest-doctestplus-0.5.0.tar.gz New: pytest-doctestplus-0.6.1.tar.gz Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.fwCQ6b/_old 2020-05-19 14:47:36.063957110 +0200 +++ /var/tmp/diff_new_pack.fwCQ6b/_new 2020-05-19 14:47:36.063957110 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-doctestplus # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,24 +24,24 @@ %define psuffix %{nil} %bcond_with test %endif +%define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-doctestplus%{psuffix} -Version:0.5.0 +Version:0.6.1 Release:0 Summary:Pytest plugin with advanced doctest features License:BSD-3-Clause -Group: Development/Languages/Python URL:https://github.com/astropy/pytest-doctestplus Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-pytest >= 3.0 +Requires: python-pytest >= 4.0 Requires: python-six BuildArch: noarch %if %{with test} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pytest >= 3.0} +BuildRequires: %{python_module pytest >= 4.0} BuildRequires: %{python_module pytest-doctestplus >= %{version}} BuildRequires: %{python_module six} %endif ++ pytest-doctestplus-0.5.0.tar.gz -> pytest-doctestplus-0.6.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.5.0/.travis.yml new/pytest-doctestplus-0.6.1/.travis.yml --- old/pytest-doctestplus-0.5.0/.travis.yml2019-11-15 22:23:40.0 +0100 +++ new/pytest-doctestplus-0.6.1/.travis.yml2020-04-30 08:00:07.0 +0200 @@ -7,49 +7,39 @@ - linux - windows -stage: All tests - -# Use Travis' container-based architecture -sudo: false - env: global: # The following versions are the 'default' for tests, unless # overidden underneath. They are defined here in order to save having # to repeat them for all configurations. -- PYTHON_VERSION=3.6 -- PYTEST_VERSION=4 +- PYTHON_VERSION=3.8 - PYTEST_COMMAND='pytest' -- CONDA_DEPENDENCIES='six' +- PY_IGNORE_IMPORTMISMATCH=1 -matrix: -- PYTHON_VERSION=2.7 PYTEST_COMMAND='py.test' -- PYTHON_VERSION=3.5 NUMPY_VERSION=1.15 +jobs: - PYTHON_VERSION=3.6 -- PYTHON_VERSION=3.7 PYTEST_VERSION=3.8 -- PYTHON_VERSION=3.7 PYTEST_VERSION=3.9 +- PYTHON_VERSION=3.7 PYTEST_VERSION=4 +- PYTHON_VERSION=3.8 PYTEST_VERSION='<5.4' stages: -# only run 2 jobs initially +# only run 2 jobs initially. Using "test" as it cannot be adjusted for the root jobs above. - name: Initial tests -- name: All tests +- name: test -matrix: +jobs: include: - os: linux env: PYTHON_VERSION=3.7 NUMPY_VERSION=stable stage: Initial tests -- os: linux - env: PYTHON_VERSION=2.7 - stage: Initial tests - # Try a run on OSX with latest versions of python and pytest - os: osx + stage: test env: PYTHON_VERSION=3.7 -# Try a run against latest pytest -- env:
commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2019-11-18 20:09:38 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.26869 (New) Package is "python-pytest-doctestplus" Mon Nov 18 20:09:38 2019 rev:6 rq:749190 version:0.5.0 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2019-09-26 20:37:55.439073145 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.26869/python-pytest-doctestplus.changes 2019-11-18 20:10:07.733600020 +0100 @@ -1,0 +2,17 @@ +Mon Nov 18 08:01:54 UTC 2019 - Tomáš Chvátal + +- Update to 0.5.0: + * No longer require Numpy. [#69] + * Fixed a bug that caused __doctest_requires__ to not work correctly with submodules. [#73] + * Fixed a limitation that meant that ELLIPSIS and FLOAT_CMP could not be used at the same time. [#75] + * Fixed a bug that caused .. doctest-requires:: to not work correctly. [#78] + * Fixed a FutureWarning related to split() with regular expressions. [#78] + * Make it possible to specify versions in .. doctest-requires::. [#78] + * Allow to use doctest-glob option instead of doctest-rst and text-file-format [#80] + * Make comment character configurable via ini variable text_file_comment_chars [#80] + * Respect ignore and ignore-glob options from pytest. [#82] + * Add --doctest-only option. [#83] + * Added an IGNORE_WARNINGS option for # doctest: [#84] +- Remove merged patch pr_37.patch + +--- Old: pr_37.patch pytest-doctestplus-0.4.0.tar.gz New: pytest-doctestplus-0.5.0.tar.gz Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.BVcD8V/_old 2019-11-18 20:10:09.989598869 +0100 +++ /var/tmp/diff_new_pack.BVcD8V/_new 2019-11-18 20:10:09.989598869 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-doctestplus # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,15 +26,13 @@ %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-doctestplus%{psuffix} -Version:0.4.0 +Version:0.5.0 Release:0 Summary:Pytest plugin with advanced doctest features License:BSD-3-Clause Group: Development/Languages/Python URL:https://github.com/astropy/pytest-doctestplus Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz -# Backport of https://github.com/astropy/pytest-doctestplus/pull/37 -Patch0: pr_37.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -42,6 +40,7 @@ Requires: python-six BuildArch: noarch %if %{with test} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 3.0} BuildRequires: %{python_module pytest-doctestplus >= %{version}} BuildRequires: %{python_module six} @@ -55,7 +54,6 @@ %prep %setup -q -n pytest-doctestplus-%{version} -%patch0 -p1 # do not change the pytest behaviour for us rm -f setup.cfg ++ pytest-doctestplus-0.4.0.tar.gz -> pytest-doctestplus-0.5.0.tar.gz ++ 2025 lines of diff (skipped)
commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2019-09-26 20:37:55 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.2352 (New) Package is "python-pytest-doctestplus" Thu Sep 26 20:37:55 2019 rev:5 rq:732116 version:0.4.0 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2019-09-07 11:55:47.898254009 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.2352/python-pytest-doctestplus.changes 2019-09-26 20:37:55.439073145 +0200 @@ -1,0 +2,11 @@ +Fri Sep 20 09:47:57 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.0: + * Avoid SyntaxWarning regarding invalid escape sequence in Python 3.9. [#62] + * Compatibility with pytest 5.1 to avoid AttributeError caused by FixtureRequest. [#63] +- Drop merged patch: + * merged_pr_63.patch +- Rebase patch: + * pr_37.patch + +--- Old: merged_pr_63.patch pytest-doctestplus-0.3.0.tar.gz New: pytest-doctestplus-0.4.0.tar.gz Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.piVZ8B/_old 2019-09-26 20:37:56.207071093 +0200 +++ /var/tmp/diff_new_pack.piVZ8B/_new 2019-09-26 20:37:56.211071082 +0200 @@ -26,7 +26,7 @@ %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-doctestplus%{psuffix} -Version:0.3.0 +Version:0.4.0 Release:0 Summary:Pytest plugin with advanced doctest features License:BSD-3-Clause @@ -35,7 +35,6 @@ Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz # Backport of https://github.com/astropy/pytest-doctestplus/pull/37 Patch0: pr_37.patch -Patch1: https://github.com/astropy/pytest-doctestplus/commit/0a7176531d8395a381bf76ce8ae2e59eef1a60ea.patch#/merged_pr_63.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -56,7 +55,7 @@ %prep %setup -q -n pytest-doctestplus-%{version} -%autopatch -p1 +%patch0 -p1 # do not change the pytest behaviour for us rm -f setup.cfg ++ pr_37.patch ++ --- /var/tmp/diff_new_pack.piVZ8B/_old 2019-09-26 20:37:56.243070996 +0200 +++ /var/tmp/diff_new_pack.piVZ8B/_new 2019-09-26 20:37:56.243070996 +0200 @@ -4,11 +4,11 @@ Inline np.allclose to remove dependency on numpy -diff --git a/pytest_doctestplus/output_checker.py b/pytest_doctestplus/output_checker.py -index e77e2ec..b889b1c 100644 a/pytest_doctestplus/output_checker.py -+++ b/pytest_doctestplus/output_checker.py -@@ -6,8 +6,7 @@ normalizations of Python expression output. See the docstring on +Index: pytest-doctestplus-0.4.0/pytest_doctestplus/output_checker.py +=== +--- pytest-doctestplus-0.4.0.orig/pytest_doctestplus/output_checker.py pytest-doctestplus-0.4.0/pytest_doctestplus/output_checker.py +@@ -6,8 +6,7 @@ normalizations of Python expression outp import doctest import re @@ -18,7 +18,7 @@ import six from six.moves import zip -@@ -125,8 +124,10 @@ class OutputChecker(doctest.OutputChecker): +@@ -125,8 +124,10 @@ class OutputChecker(doctest.OutputChecke else: nw_.append(nw) @@ -31,16 +31,16 @@ return False # replace all floats in the "got" string by those from "wanted". -diff --git a/setup.py b/setup.py -index 6513c57..463f382 100755 a/setup.py -+++ b/setup.py -@@ -48,7 +48,7 @@ setup( +Index: pytest-doctestplus-0.4.0/setup.py +=== +--- pytest-doctestplus-0.4.0.orig/setup.py pytest-doctestplus-0.4.0/setup.py +@@ -40,7 +40,7 @@ setup( 'Topic :: Utilities', ], - keywords=[ 'doctest', 'rst', 'pytest', 'py.test' ], --install_requires=[ 'six', 'pytest>=3.0', 'numpy>=1.10' ], -+install_requires=[ 'six', 'pytest>=3.0'], + keywords=['doctest', 'rst', 'pytest', 'py.test'], +-install_requires=['six', 'pytest>=3.0', 'numpy>=1.10'], ++install_requires=['six', 'pytest>=3.0'], python_requires='>=2.7', entry_points={ 'pytest11': [ ++ pytest-doctestplus-0.3.0.tar.gz -> pytest-doctestplus-0.4.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-doctestplus-0.3.0/CHANGES.rst new/pytest-doctestplus-0.4.0/CHANGES.rst ---
commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2019-09-07 11:55:46 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.7948 (New) Package is "python-pytest-doctestplus" Sat Sep 7 11:55:46 2019 rev:4 rq:729081 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2019-03-10 09:39:44.880113414 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.7948/python-pytest-doctestplus.changes 2019-09-07 11:55:47.898254009 +0200 @@ -1,0 +2,6 @@ +Fri Sep 6 16:53:49 UTC 2019 - John Vandenberg + +- Add merged_pr_63.patch to fix incompatibility with pytest 5.1 +- Add pr_37.patch to remove numpy dependency + +--- New: merged_pr_63.patch pr_37.patch Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.f9CEnj/_old 2019-09-07 11:55:48.362253943 +0200 +++ /var/tmp/diff_new_pack.f9CEnj/_new 2019-09-07 11:55:48.366253943 +0200 @@ -33,15 +33,16 @@ Group: Development/Languages/Python URL:https://github.com/astropy/pytest-doctestplus Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz +# Backport of https://github.com/astropy/pytest-doctestplus/pull/37 +Patch0: pr_37.patch +Patch1: https://github.com/astropy/pytest-doctestplus/commit/0a7176531d8395a381bf76ce8ae2e59eef1a60ea.patch#/merged_pr_63.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-numpy >= 1.10 Requires: python-pytest >= 3.0 Requires: python-six BuildArch: noarch %if %{with test} -BuildRequires: %{python_module numpy >= 1.10} BuildRequires: %{python_module pytest >= 3.0} BuildRequires: %{python_module pytest-doctestplus >= %{version}} BuildRequires: %{python_module six} @@ -55,6 +56,7 @@ %prep %setup -q -n pytest-doctestplus-%{version} +%autopatch -p1 # do not change the pytest behaviour for us rm -f setup.cfg @@ -70,7 +72,8 @@ %if %{with test} %check export LANG=en_US.UTF8 -%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} tests/ --doctest-plus --doctest-rst +# README.rst contains Python 3 only imports +%pytest --doctest-plus --doctest-rst -k 'not README.rst' %endif %if !%{with test} ++ merged_pr_63.patch ++ >From 0a7176531d8395a381bf76ce8ae2e59eef1a60ea Mon Sep 17 00:00:00 2001 From: Pey Lian Lim <2090236+pl...@users.noreply.github.com> Date: Fri, 16 Aug 2019 14:55:38 -0400 Subject: [PATCH] Compatibility with pytest 5.1 --- pytest_doctestplus/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_doctestplus/plugin.py b/pytest_doctestplus/plugin.py index 8a830f9..20114b8 100644 --- a/pytest_doctestplus/plugin.py +++ b/pytest_doctestplus/plugin.py @@ -160,7 +160,7 @@ def runtest(self): failed, tot = doctest.testfile( str(self.fspath), module_relative=False, optionflags=options, parser=DocTestParserPlus(), -extraglobs=dict(getfixture=fixture_request.getfuncargvalue), +extraglobs=dict(getfixture=fixture_request.getfixturevalue), raise_on_error=True, verbose=False, encoding='utf-8') def reportinfo(self): ++ pr_37.patch ++ commit 898d66c7eeabddf5d17bb899c8beebe5aad2c4ee Author: Oscar Benjamin Date: Thu Jan 3 17:15:04 2019 + Inline np.allclose to remove dependency on numpy diff --git a/pytest_doctestplus/output_checker.py b/pytest_doctestplus/output_checker.py index e77e2ec..b889b1c 100644 --- a/pytest_doctestplus/output_checker.py +++ b/pytest_doctestplus/output_checker.py @@ -6,8 +6,7 @@ normalizations of Python expression output. See the docstring on import doctest import re - -import numpy as np +import math import six from six.moves import zip @@ -125,8 +124,10 @@ class OutputChecker(doctest.OutputChecker): else: nw_.append(nw) -if not np.allclose(float(ng), float(nw), rtol=self.rtol, - atol=self.atol, equal_nan=True): +ng = float(ng) +nw = float(nw) +if not (abs(ng - nw) <= self.atol + self.rtol * abs(nw) +or (math.isnan(ng) and math.isnan(nw))): return False # replace all floats in the "got" string by those from "wanted". diff
commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2019-03-10 09:39:41 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.28833 (New) Package is "python-pytest-doctestplus" Sun Mar 10 09:39:41 2019 rev:3 rq:682762 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2019-02-15 10:02:18.495627563 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.28833/python-pytest-doctestplus.changes 2019-03-10 09:39:44.880113414 +0100 @@ -1,0 +2,10 @@ +Fri Mar 8 11:10:23 UTC 2019 - Tomáš Chvátal + +- Update to 0.3.0: + * Honor the collect_ignore option used in conftest.py. [#36] + * Make use of doctest_optionflags settings. [#39] + * Make it possible to set FLOAT_CMP globally in setup.cfg. [#40] + * Drop support for pytest versions earlier than 3.0. [#46] + * Extend doctest-skip, doctest-skip-all, and doctest-requires directives to work in TeX files. [#43] + +--- Old: v0.2.0.tar.gz New: pytest-doctestplus-0.3.0.tar.gz Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.tqSb3S/_old 2019-03-10 09:39:46.008113144 +0100 +++ /var/tmp/diff_new_pack.tqSb3S/_new 2019-03-10 09:39:46.012113143 +0100 @@ -26,13 +26,13 @@ %endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-doctestplus%{psuffix} -Version:0.2.0 +Version:0.3.0 Release:0 Summary:Pytest plugin with advanced doctest features License:BSD-3-Clause Group: Development/Languages/Python URL:https://github.com/astropy/pytest-doctestplus -Source: https://github.com/astropy/pytest-doctestplus/archive/v%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -43,7 +43,7 @@ %if %{with test} BuildRequires: %{python_module numpy >= 1.10} BuildRequires: %{python_module pytest >= 3.0} -BuildRequires: %{python_module pytest-doctestplus} +BuildRequires: %{python_module pytest-doctestplus >= %{version}} BuildRequires: %{python_module six} %endif %python_subpackages @@ -69,6 +69,7 @@ %if %{with test} %check +export LANG=en_US.UTF8 %python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} tests/ --doctest-plus --doctest-rst %endif
commit python-pytest-doctestplus for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest-doctestplus for openSUSE:Factory checked in at 2019-02-15 10:02:14 Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old) and /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.28833 (New) Package is "python-pytest-doctestplus" Fri Feb 15 10:02:14 2019 rev:2 rq:674958 version:0.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes 2018-08-18 00:03:09.918907304 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.28833/python-pytest-doctestplus.changes 2019-02-15 10:02:18.495627563 +0100 @@ -1,0 +2,9 @@ +Thu Feb 14 12:22:53 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.0: + * Add doctest-plus-atol and doctest-plus-rtol options for setting the numerical tolerance. [#21] + * Update behavior of --doctest-modules option when plugin is installed. [#26] +- Switch to github tarball to obtain tests +- Enable tests using _multibuild + +--- Old: pytest-doctestplus-0.1.3.tar.gz New: _multibuild v0.2.0.tar.gz Other differences: -- ++ python-pytest-doctestplus.spec ++ --- /var/tmp/diff_new_pack.rkxrs8/_old 2019-02-15 10:02:18.911627429 +0100 +++ /var/tmp/diff_new_pack.rkxrs8/_new 2019-02-15 10:02:18.911627429 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-doctestplus # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,27 +12,40 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %{?!python_module:%define python_module() python-%{**} python3-%{**}} -Name: python-pytest-doctestplus -Version:0.1.3 +Name: python-pytest-doctestplus%{psuffix} +Version:0.2.0 Release:0 -License:BSD-3-Clause Summary:Pytest plugin with advanced doctest features -Url:https://github.com/astropy/pytest-doctestplus +License:BSD-3-Clause Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/p/pytest-doctestplus/pytest-doctestplus-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} +URL:https://github.com/astropy/pytest-doctestplus +Source: https://github.com/astropy/pytest-doctestplus/archive/v%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-numpy >= 1.10 -Requires: python-pytest >= 2.8.0 +Requires: python-pytest >= 3.0 Requires: python-six BuildArch: noarch - +%if %{with test} +BuildRequires: %{python_module numpy >= 1.10} +BuildRequires: %{python_module pytest >= 3.0} +BuildRequires: %{python_module pytest-doctestplus} +BuildRequires: %{python_module six} +%endif %python_subpackages %description @@ -42,17 +55,28 @@ %prep %setup -q -n pytest-doctestplus-%{version} +# do not change the pytest behaviour for us +rm -f setup.cfg %build %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} tests/ --doctest-plus --doctest-rst +%endif +%if !%{with test} %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.rst %{python_sitelib}/* +%endif %changelog ++ _multibuild ++ test