Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-xdoctest for openSUSE:Factory 
checked in at 2021-02-19 23:44:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xdoctest (Old)
 and      /work/SRC/openSUSE:Factory/.python-xdoctest.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xdoctest"

Fri Feb 19 23:44:13 2021 rev:2 rq:873584 version:0.15.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xdoctest/python-xdoctest.changes  
2020-08-18 12:25:27.455832753 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-xdoctest.new.28504/python-xdoctest.changes   
    2021-02-19 23:45:22.423369769 +0100
@@ -1,0 +2,18 @@
+Fri Feb 19 00:21:50 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 0.15.4:
+  * pip install xdoctest can now specify [colors] or [jupyter]
+  * Enhanced REQUIRES directive behavior
+  * Xdoctest can now be run inside of Jupyter notebooks / IPython sessions
+  * Xdoctest can now be run on Jupyter notebooks
+  * Renamed Config to DoctestConfig
+  * Renamed static_analysis.parse_calldefs to
+    static_analysis.parse_static_calldefs.
+  * Changed argument name from modpath_or_name to module_identifier in several
+    functions.
+  * The REQUIRES directive can now inspect existence or values of environment
+    variables.
+  * Bugfixes
+* add 97.patch
+
+-------------------------------------------------------------------

Old:
----
  xdoctest-0.13.0.tar.gz

New:
----
  97.patch
  xdoctest-0.15.4.tar.gz

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

Other differences:
------------------
++++++ python-xdoctest.spec ++++++
--- /var/tmp/diff_new_pack.FmnIvJ/_old  2021-02-19 23:45:22.935370271 +0100
+++ /var/tmp/diff_new_pack.FmnIvJ/_new  2021-02-19 23:45:22.939370275 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xdoctest
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,12 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-xdoctest
-Version:        0.13.0
+Version:        0.15.4
 Release:        0
 Summary:        Enhanced Python builtin doctest module
 License:        Apache-2.0
 URL:            https://github.com/Erotemic/xdoctest
 Source:         
https://github.com/Erotemic/xdoctest/archive/%{version}.tar.gz#/xdoctest-%{version}.tar.gz
+Patch0:         https://github.com/Erotemic/xdoctest/pull/97.patch
 BuildRequires:  %{python_module pygments}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
@@ -40,6 +41,7 @@
 
 %prep
 %setup -q -n xdoctest-%{version}
+%autopatch -p1
 sed -i '1{/^#!/d}' xdoctest/__main__.py
 sed -i 's/--ignore-glob=setup.py//' pytest.ini
 
@@ -58,7 +60,7 @@
 %python_uninstall_alternative xdoctest
 
 %check
-mkdir ~/bin
+mkdir -p ~/bin
 export PATH=$PATH:~/bin
 export PYTHONDONTWRITEBYTECODE=1
 # Python 2 on openSUSE 15.x gets confused if buildroot installed copy is in 
PYTHONPATH

++++++ 97.patch ++++++
>From 253ef7e5f5aaa6c32a44b8bd27db435acd808f72 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <[email protected]>
Date: Fri, 19 Feb 2021 01:16:30 +0100
Subject: [PATCH] Add missing sys import on python 3.6

Otherwise this failure occurs on test native_mb_python_tag:0

   File "rpmbuild/BUILD/xdoctest-0.15.4/setup.py", line 173, in 
native_mb_python_tag
     if sys.version_info[:2] >= (3, 8):

   UnboundLocalError: local variable 'sys' referenced before assignment
---
 setup.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/setup.py b/setup.py
index f1be6fe..7814d8b 100755
--- a/setup.py
+++ b/setup.py
@@ -170,6 +170,7 @@ def native_mb_python_tag(plat_impl=None, version_info=None):
             else:
                 abi = 'm'
         else:
+            import sys
             if sys.version_info[:2] >= (3, 8):
                 # bpo-36707: 3.8 dropped the m flag
                 abi = ''
++++++ xdoctest-0.13.0.tar.gz -> xdoctest-0.15.4.tar.gz ++++++
++++ 6444 lines of diff (skipped)

Reply via email to