Hello community,

here is the log from the commit of package python-colorama for openSUSE:Factory 
checked in at 2017-05-17 17:17:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-colorama (Old)
 and      /work/SRC/openSUSE:Factory/.python-colorama.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-colorama"

Wed May 17 17:17:54 2017 rev:11 rq:491169 version:0.3.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-colorama/python-colorama.changes  
2016-12-08 00:29:30.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-colorama.new/python-colorama.changes     
2017-05-17 17:17:58.404296752 +0200
@@ -1,0 +2,11 @@
+Tue Apr 25 22:43:01 UTC 2017 - [email protected]
+
+- update to 0.3.8
+  * Fix issue #121: "invalid escape sequence" deprecation fixes on Python 3.6+
+  * Fix issue #110: fix "set console title" when working with unicode strings
+  * Fix issue #103: enable color when using "input" function on Python 3.5+
+  * Fix issue #95: enable color when stderr is a tty but stdout is not
+- Implement single-spec version
+- Fix source url.
+
+-------------------------------------------------------------------

Old:
----
  colorama-0.3.7.tar.gz

New:
----
  colorama-0.3.8.tar.gz

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

Other differences:
------------------
++++++ python-colorama.spec ++++++
--- /var/tmp/diff_new_pack.1UrLTP/_old  2017-05-17 17:17:59.052205388 +0200
+++ /var/tmp/diff_new_pack.1UrLTP/_new  2017-05-17 17:17:59.056204824 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-colorama
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,22 +16,22 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-colorama
-Version:        0.3.7
+Version:        0.3.8
 Release:        0
 Summary:        Cross-platform colored terminal text
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            https://github.com/tartley/colorama
-Source:         
https://pypi.io/packages/source/c/colorama/colorama-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+Source:         
https://files.pythonhosted.org/packages/source/c/colorama/colorama-%{version}.tar.gz
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Makes ANSI escape character sequences, for producing colored terminal text and
@@ -52,14 +52,16 @@
 %setup -q -n colorama-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc CHANGELOG.rst LICENSE.txt README.rst demos
+%doc CHANGELOG.rst LICENSE.txt README.rst
+%doc demos/
 %{python_sitelib}/*
 
 %changelog

++++++ colorama-0.3.7.tar.gz -> colorama-0.3.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/CHANGELOG.rst 
new/colorama-0.3.8/CHANGELOG.rst
--- old/colorama-0.3.7/CHANGELOG.rst    2016-03-08 10:14:21.000000000 +0100
+++ new/colorama-0.3.8/CHANGELOG.rst    2017-04-23 11:23:00.000000000 +0200
@@ -1,3 +1,8 @@
+0.3.8
+  * Fix issue #121: "invalid escape sequence" deprecation fixes on Python 3.6+
+  * Fix issue #110: fix "set console title" when working with unicode strings
+  * Fix issue #103: enable color when using "input" function on Python 3.5+
+  * Fix issue #95: enable color when stderr is a tty but stdout is not
 0.3.7
   * Fix issue #84: check if stream has 'closed' attribute before testing it
   * Fix issue #74: objects might become None at exit
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/PKG-INFO new/colorama-0.3.8/PKG-INFO
--- old/colorama-0.3.7/PKG-INFO 2016-03-08 10:18:24.000000000 +0100
+++ new/colorama-0.3.8/PKG-INFO 2017-04-23 11:40:20.000000000 +0200
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: colorama
-Version: 0.3.7
+Version: 0.3.8
 Summary: Cross-platform colored terminal text.
 Home-page: https://github.com/tartley/colorama
 Author: Arnon Yaari
 Author-email: [email protected]
 License: BSD
-Description: .. image:: https://pypip.in/version/colorama/badge.svg
+Description: .. image:: https://img.shields.io/pypi/v/colorama.svg
             :target: https://pypi.python.org/pypi/colorama/
             :alt: Latest Version
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/README.rst 
new/colorama-0.3.8/README.rst
--- old/colorama-0.3.7/README.rst       2015-12-03 23:05:32.000000000 +0100
+++ new/colorama-0.3.8/README.rst       2017-01-18 15:36:32.000000000 +0100
@@ -1,4 +1,4 @@
-.. image:: https://pypip.in/version/colorama/badge.svg
+.. image:: https://img.shields.io/pypi/v/colorama.svg
     :target: https://pypi.python.org/pypi/colorama/
     :alt: Latest Version
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/colorama/__init__.py 
new/colorama-0.3.8/colorama/__init__.py
--- old/colorama-0.3.7/colorama/__init__.py     2016-03-08 10:14:45.000000000 
+0100
+++ new/colorama-0.3.8/colorama/__init__.py     2017-04-23 11:17:09.000000000 
+0200
@@ -3,5 +3,5 @@
 from .ansi import Fore, Back, Style, Cursor
 from .ansitowin32 import AnsiToWin32
 
-__version__ = '0.3.7'
+__version__ = '0.3.8'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/colorama/ansitowin32.py 
new/colorama-0.3.8/colorama/ansitowin32.py
--- old/colorama-0.3.7/colorama/ansitowin32.py  2016-02-11 11:19:34.000000000 
+0100
+++ new/colorama-0.3.8/colorama/ansitowin32.py  2017-04-20 17:13:27.000000000 
+0200
@@ -39,6 +39,9 @@
     def write(self, text):
         self.__convertor.write(text)
 
+    def fileno():
+        raise OSError()
+
 
 class AnsiToWin32(object):
     '''
@@ -46,8 +49,8 @@
     sequences from the text, and if outputting to a tty, will convert them into
     win32 function calls.
     '''
-    ANSI_CSI_RE = re.compile('\001?\033\[((?:\d|;)*)([a-zA-Z])\002?')     # 
Control Sequence Introducer
-    ANSI_OSC_RE = re.compile('\001?\033\]((?:.|;)*?)(\x07)\002?')         # 
Operating System Command
+    ANSI_CSI_RE = re.compile('\001?\033\\[((?:\\d|;)*)([a-zA-Z])\002?')   # 
Control Sequence Introducer
+    ANSI_OSC_RE = re.compile('\001?\033\\]((?:.|;)*?)(\x07)\002?')        # 
Operating System Command
 
     def __init__(self, wrapped, convert=None, strip=None, autoreset=False):
         # The wrapped stream (normally sys.stdout or sys.stderr)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/colorama/win32.py 
new/colorama-0.3.8/colorama/win32.py
--- old/colorama-0.3.7/colorama/win32.py        2015-09-24 13:22:55.000000000 
+0200
+++ new/colorama-0.3.8/colorama/win32.py        2017-01-18 15:36:32.000000000 
+0100
@@ -83,9 +83,9 @@
     ]
     _FillConsoleOutputAttribute.restype = wintypes.BOOL
 
-    _SetConsoleTitleW = windll.kernel32.SetConsoleTitleA
+    _SetConsoleTitleW = windll.kernel32.SetConsoleTitleW
     _SetConsoleTitleW.argtypes = [
-        wintypes.LPCSTR
+        wintypes.LPCWSTR
     ]
     _SetConsoleTitleW.restype = wintypes.BOOL
 
@@ -94,13 +94,15 @@
         STDERR: _GetStdHandle(STDERR),
     }
 
-    def winapi_test():
-        handle = handles[STDOUT]
+    def _winapi_test(handle):
         csbi = CONSOLE_SCREEN_BUFFER_INFO()
         success = _GetConsoleScreenBufferInfo(
             handle, byref(csbi))
         return bool(success)
 
+    def winapi_test():
+        return any(_winapi_test(h) for h in handles.values())
+
     def GetConsoleScreenBufferInfo(stream_id=STDOUT):
         handle = handles[stream_id]
         csbi = CONSOLE_SCREEN_BUFFER_INFO()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/colorama.egg-info/PKG-INFO 
new/colorama-0.3.8/colorama.egg-info/PKG-INFO
--- old/colorama-0.3.7/colorama.egg-info/PKG-INFO       2016-03-08 
10:18:24.000000000 +0100
+++ new/colorama-0.3.8/colorama.egg-info/PKG-INFO       2017-04-23 
11:40:20.000000000 +0200
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: colorama
-Version: 0.3.7
+Version: 0.3.8
 Summary: Cross-platform colored terminal text.
 Home-page: https://github.com/tartley/colorama
 Author: Arnon Yaari
 Author-email: [email protected]
 License: BSD
-Description: .. image:: https://pypip.in/version/colorama/badge.svg
+Description: .. image:: https://img.shields.io/pypi/v/colorama.svg
             :target: https://pypi.python.org/pypi/colorama/
             :alt: Latest Version
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/colorama.egg-info/SOURCES.txt 
new/colorama-0.3.8/colorama.egg-info/SOURCES.txt
--- old/colorama-0.3.7/colorama.egg-info/SOURCES.txt    2016-03-08 
10:18:24.000000000 +0100
+++ new/colorama-0.3.8/colorama.egg-info/SOURCES.txt    2017-04-23 
11:40:20.000000000 +0200
@@ -13,6 +13,7 @@
 colorama.egg-info/PKG-INFO
 colorama.egg-info/SOURCES.txt
 colorama.egg-info/dependency_links.txt
+colorama.egg-info/pbr.json
 colorama.egg-info/top_level.txt
 demos/demo.bat
 demos/demo.sh
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorama-0.3.7/colorama.egg-info/pbr.json 
new/colorama-0.3.8/colorama.egg-info/pbr.json
--- old/colorama-0.3.7/colorama.egg-info/pbr.json       1970-01-01 
01:00:00.000000000 +0100
+++ new/colorama-0.3.8/colorama.egg-info/pbr.json       2017-01-02 
15:30:57.000000000 +0100
@@ -0,0 +1 @@
+{"is_release": false, "git_version": "69e4069"}
\ No newline at end of file


Reply via email to