Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-doctestplus for 
openSUSE:Factory checked in at 2023-05-05 15:58:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-doctestplus (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-doctestplus"

Fri May  5 15:58:25 2023 rev:14 rq:1084899 version:0.12.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-doctestplus/python-pytest-doctestplus.changes
      2022-08-19 17:58:59.408416205 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-doctestplus.new.1533/python-pytest-doctestplus.changes
    2023-05-05 15:58:50.540620435 +0200
@@ -1,0 +2,6 @@
+Thu May  4 22:39:44 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 0.12.1:
+  * Allow floating point comparison in Python dictionary. [#186]
+
+-------------------------------------------------------------------

Old:
----
  pytest-doctestplus-0.12.0.tar.gz

New:
----
  pytest-doctestplus-0.12.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-doctestplus.spec ++++++
--- /var/tmp/diff_new_pack.qO0QRW/_old  2023-05-05 15:58:51.012623139 +0200
+++ /var/tmp/diff_new_pack.qO0QRW/_new  2023-05-05 15:58:51.020623185 +0200
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,9 @@
 %bcond_with test
 %endif
 
-%{?!python_module:%define python_module() python3-%{**}}
-%define skip_python2 1
+%{?sle15_python_module_pythons}
 Name:           python-pytest-doctestplus%{psuffix}
-Version:        0.12.0
+Version:        0.12.1
 Release:        0
 Summary:        Pytest plugin with advanced doctest features
 License:        BSD-3-Clause
@@ -45,8 +44,8 @@
 Requires:       python-setuptools >= 30.3.0
 %if %{with test}
 BuildRequires:  %{python_module Sphinx}
-BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module numpy-devel}
+BuildRequires:  %{python_module numpy}
 BuildRequires:  %{python_module pip >= 19.3.1}
 BuildRequires:  %{python_module pytest-doctestplus = %{version}}
 BuildRequires:  %{python_module pytest-remotedata >= 0.3.2}

++++++ pytest-doctestplus-0.12.0.tar.gz -> pytest-doctestplus-0.12.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-doctestplus-0.12.0/.github/workflows/python-tests.yml 
new/pytest-doctestplus-0.12.1/.github/workflows/python-tests.yml
--- old/pytest-doctestplus-0.12.0/.github/workflows/python-tests.yml    
2022-02-25 20:54:11.000000000 +0100
+++ new/pytest-doctestplus-0.12.1/.github/workflows/python-tests.yml    
2022-09-26 21:22:32.000000000 +0200
@@ -20,7 +20,7 @@
           - os: ubuntu-latest
             python-version: 3.7
             toxenv: py37-test-pytest46
-          - os: windows-2019
+          - os: windows-latest
             python-version: 3.7
             toxenv: py37-test-pytest50
           - os: macos-latest
@@ -29,7 +29,7 @@
           - os: ubuntu-latest
             python-version: 3.7
             toxenv: py37-test-pytest52
-          - os: windows-2019
+          - os: windows-latest
             python-version: 3.8
             toxenv: py38-test-pytest53
           - os: ubuntu-latest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-doctestplus-0.12.0/CHANGES.rst 
new/pytest-doctestplus-0.12.1/CHANGES.rst
--- old/pytest-doctestplus-0.12.0/CHANGES.rst   2022-02-25 20:54:11.000000000 
+0100
+++ new/pytest-doctestplus-0.12.1/CHANGES.rst   2022-09-26 21:22:32.000000000 
+0200
@@ -1,3 +1,8 @@
+0.12.1 (2022-09-26)
+===================
+
+- Allow floating point comparison in Python dictionary. [#186]
+
 0.12.0 (2022-02-25)
 ===================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-doctestplus-0.12.0/PKG-INFO 
new/pytest-doctestplus-0.12.1/PKG-INFO
--- old/pytest-doctestplus-0.12.0/PKG-INFO      2022-02-25 20:54:24.130348000 
+0100
+++ new/pytest-doctestplus-0.12.1/PKG-INFO      2022-09-26 21:22:59.767977500 
+0200
@@ -1,13 +1,12 @@
 Metadata-Version: 2.1
 Name: pytest-doctestplus
-Version: 0.12.0
+Version: 0.12.1
 Summary: Pytest plugin with advanced doctest features.
 Home-page: https://github.com/astropy/pytest-doctestplus
 Author: The Astropy Developers
 Author-email: astropy.t...@gmail.com
 License: BSD
 Keywords: doctest,rst,pytest,py.test
-Platform: UNKNOWN
 Classifier: Development Status :: 3 - Alpha
 Classifier: Framework :: Pytest
 Classifier: Intended Audience :: Developers
@@ -174,6 +173,11 @@
   >>> 1.0 / 3.0  # doctest: +FLOAT_CMP
   0.333333333333333311
 
+.. code-block:: python
+
+  >>> {'a': 1 / 3., 'b': 2 / 3.}  # doctest: +FLOAT_CMP
+  {'a': 0.333333, 'b': 0.666666}
+
 When this flag is used, the expected and actual outputs are both parsed to find
 any floating point values in the strings.  Those are then converted to actual
 Python `float` objects and compared numerically.  This means that small
@@ -365,5 +369,3 @@
 -------
 This plugin is licensed under a 3-clause BSD style license - see the
 ``LICENSE.rst`` file.
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-doctestplus-0.12.0/README.rst 
new/pytest-doctestplus-0.12.1/README.rst
--- old/pytest-doctestplus-0.12.0/README.rst    2022-02-25 20:54:11.000000000 
+0100
+++ new/pytest-doctestplus-0.12.1/README.rst    2022-09-26 21:22:32.000000000 
+0200
@@ -144,6 +144,11 @@
   >>> 1.0 / 3.0  # doctest: +FLOAT_CMP
   0.333333333333333311
 
+.. code-block:: python
+
+  >>> {'a': 1 / 3., 'b': 2 / 3.}  # doctest: +FLOAT_CMP
+  {'a': 0.333333, 'b': 0.666666}
+
 When this flag is used, the expected and actual outputs are both parsed to find
 any floating point values in the strings.  Those are then converted to actual
 Python `float` objects and compared numerically.  This means that small
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-doctestplus-0.12.0/pytest_doctestplus/output_checker.py 
new/pytest-doctestplus-0.12.1/pytest_doctestplus/output_checker.py
--- old/pytest-doctestplus-0.12.0/pytest_doctestplus/output_checker.py  
2022-02-25 20:54:11.000000000 +0100
+++ new/pytest-doctestplus-0.12.1/pytest_doctestplus/output_checker.py  
2022-09-26 21:22:32.000000000 +0200
@@ -70,7 +70,7 @@
         want_floats = got_floats + r'(\.{3})?'
 
         front_sep = r'\s|[*+-,<=(\[]'
-        back_sep = front_sep + r'|[>j)\]]'
+        back_sep = front_sep + r'|[>j)\]}]'
 
         fbeg = r'^{}(?={}|$)'.format(got_floats, back_sep)
         fmidend = r'(?<={}){}(?={}|$)'.format(front_sep, got_floats, back_sep)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-doctestplus-0.12.0/pytest_doctestplus/version.py 
new/pytest-doctestplus-0.12.1/pytest_doctestplus/version.py
--- old/pytest-doctestplus-0.12.0/pytest_doctestplus/version.py 2022-02-25 
20:54:23.000000000 +0100
+++ new/pytest-doctestplus-0.12.1/pytest_doctestplus/version.py 2022-09-26 
21:22:59.000000000 +0200
@@ -1,5 +1,5 @@
 # coding: utf-8
 # file generated by setuptools_scm
 # don't change, don't track in version control
-version = '0.12.0'
-version_tuple = (0, 12, 0)
+__version__ = version = '0.12.1'
+__version_tuple__ = version_tuple = (0, 12, 1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-doctestplus-0.12.0/pytest_doctestplus.egg-info/PKG-INFO 
new/pytest-doctestplus-0.12.1/pytest_doctestplus.egg-info/PKG-INFO
--- old/pytest-doctestplus-0.12.0/pytest_doctestplus.egg-info/PKG-INFO  
2022-02-25 20:54:23.000000000 +0100
+++ new/pytest-doctestplus-0.12.1/pytest_doctestplus.egg-info/PKG-INFO  
2022-09-26 21:22:59.000000000 +0200
@@ -1,13 +1,12 @@
 Metadata-Version: 2.1
 Name: pytest-doctestplus
-Version: 0.12.0
+Version: 0.12.1
 Summary: Pytest plugin with advanced doctest features.
 Home-page: https://github.com/astropy/pytest-doctestplus
 Author: The Astropy Developers
 Author-email: astropy.t...@gmail.com
 License: BSD
 Keywords: doctest,rst,pytest,py.test
-Platform: UNKNOWN
 Classifier: Development Status :: 3 - Alpha
 Classifier: Framework :: Pytest
 Classifier: Intended Audience :: Developers
@@ -174,6 +173,11 @@
   >>> 1.0 / 3.0  # doctest: +FLOAT_CMP
   0.333333333333333311
 
+.. code-block:: python
+
+  >>> {'a': 1 / 3., 'b': 2 / 3.}  # doctest: +FLOAT_CMP
+  {'a': 0.333333, 'b': 0.666666}
+
 When this flag is used, the expected and actual outputs are both parsed to find
 any floating point values in the strings.  Those are then converted to actual
 Python `float` objects and compared numerically.  This means that small
@@ -365,5 +369,3 @@
 -------
 This plugin is licensed under a 3-clause BSD style license - see the
 ``LICENSE.rst`` file.
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-doctestplus-0.12.0/tests/test_doctestplus.py 
new/pytest-doctestplus-0.12.1/tests/test_doctestplus.py
--- old/pytest-doctestplus-0.12.0/tests/test_doctestplus.py     2022-02-25 
20:54:11.000000000 +0100
+++ new/pytest-doctestplus-0.12.1/tests/test_doctestplus.py     2022-09-26 
21:22:32.000000000 +0200
@@ -112,6 +112,29 @@
     reprec.assertoutcome(failed=0, passed=1)
 
 
+def test_float_cmp_dict(testdir):
+    testdir.makeini(
+        """
+        [pytest]
+        doctest_optionflags = ELLIPSIS
+        doctestplus = enabled
+    """
+    )
+    p = testdir.makepyfile(
+        """
+        def g():
+            '''
+            >>> x = {'a': 1/3., 'b': 2/3.}
+            >>> x    # doctest: +FLOAT_CMP
+            {'a': 0.333333, 'b': 0.666666}
+            '''
+            pass
+    """
+    )
+    reprec = testdir.inline_run(p, "--doctest-plus")
+    reprec.assertoutcome(failed=0, passed=1)
+
+
 def test_float_cmp_global(testdir):
     testdir.makeini("""
         [pytest]

Reply via email to