Hello community,

here is the log from the commit of package python-blessings for 
openSUSE:Factory checked in at 2018-07-19 22:55:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-blessings (Old)
 and      /work/SRC/openSUSE:Factory/.python-blessings.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-blessings"

Thu Jul 19 22:55:17 2018 rev:4 rq:623453 version:1.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-blessings/python-blessings.changes        
2018-01-09 14:53:31.482869697 +0100
+++ /work/SRC/openSUSE:Factory/.python-blessings.new/python-blessings.changes   
2018-07-19 22:57:20.337518745 +0200
@@ -1,0 +2,7 @@
+Tue Jul 17 13:18:24 UTC 2018 - [email protected]
+
+- Version update to 1.7:
+  * py 2.6 and 3.3 dropped support
+  * use six
+
+-------------------------------------------------------------------

Old:
----
  blessings-1.6.1.tar.gz

New:
----
  blessings-1.7.tar.gz

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

Other differences:
------------------
++++++ python-blessings.spec ++++++
--- /var/tmp/diff_new_pack.Nbj6g7/_old  2018-07-19 22:57:20.757517442 +0200
+++ /var/tmp/diff_new_pack.Nbj6g7/_new  2018-07-19 22:57:20.761517429 +0200
@@ -18,19 +18,20 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-blessings
-Version:        1.6.1
+Version:        1.7
 Release:        0
 Summary:        A thin, practical wrapper around terminal capabilities in 
Python
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/erikrose/blessings
+URL:            https://github.com/erikrose/blessings
 Source:         
https://files.pythonhosted.org/packages/source/b/blessings/blessings-%{version}.tar.gz
 BuildRequires:  %{python_module curses}
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module six}
 BuildRequires:  python-rpm-macros
 Requires:       python-curses
+Requires:       python-six
 BuildArch:      noarch
 %python_subpackages
 
@@ -47,9 +48,13 @@
 %install
 %python_install
 
+%check
+# Can't be run because it expects real term where it can play with colours
+#%%python_expand nosetests-%{$python_bin_suffix}
+
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE README.rst
+%license LICENSE
+%doc README.rst
 %{python_sitelib}/*
 
 %changelog

++++++ blessings-1.6.1.tar.gz -> blessings-1.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/PKG-INFO new/blessings-1.7/PKG-INFO
--- old/blessings-1.6.1/PKG-INFO        2018-01-03 17:59:54.000000000 +0100
+++ new/blessings-1.7/PKG-INFO  2018-06-21 15:57:01.000000000 +0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: blessings
-Version: 1.6.1
+Version: 1.7
 Summary: A thin, practical wrapper around terminal coloring, styling, and 
positioning
 Home-page: https://github.com/erikrose/blessings
 Author: Erik Rose
 Author-email: [email protected]
 License: MIT
-Description-Content-Type: UNKNOWN
 Description: =========
         Blessings
         =========
@@ -437,7 +436,8 @@
         
         .. _`Travis CI`: https://travis-ci.org/erikrose/blessings/
         
-        .. image:: https://secure.travis-ci.org/erikrose/blessings.png
+        .. image:: https://travis-ci.org/erikrose/blessings.svg?branch=master
+            :target: https://travis-ci.org/erikrose/blessings
         
         
         License
@@ -448,6 +448,10 @@
         Version History
         ===============
         
+        1.7
+          * Drop support for Python 2.6 and 3.3, which are end-of-lifed.
+          * Switch from 2to3 to the ``six`` library.
+        
         1.6.1
           * Don't crash if ``number_of_colors()`` is called when run in a 
non-terminal
             or when ``does_styling`` is otherwise false.
@@ -544,11 +548,13 @@
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: POSIX
 Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.5
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: User Interfaces
 Classifier: Topic :: Terminals
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/README.rst 
new/blessings-1.7/README.rst
--- old/blessings-1.6.1/README.rst      2018-01-03 17:42:45.000000000 +0100
+++ new/blessings-1.7/README.rst        2018-06-21 15:55:02.000000000 +0200
@@ -428,7 +428,8 @@
 
 .. _`Travis CI`: https://travis-ci.org/erikrose/blessings/
 
-.. image:: https://secure.travis-ci.org/erikrose/blessings.png
+.. image:: https://travis-ci.org/erikrose/blessings.svg?branch=master
+    :target: https://travis-ci.org/erikrose/blessings
 
 
 License
@@ -439,6 +440,10 @@
 Version History
 ===============
 
+1.7
+  * Drop support for Python 2.6 and 3.3, which are end-of-lifed.
+  * Switch from 2to3 to the ``six`` library.
+
 1.6.1
   * Don't crash if ``number_of_colors()`` is called when run in a non-terminal
     or when ``does_styling`` is otherwise false.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/blessings/__init__.py 
new/blessings-1.7/blessings/__init__.py
--- old/blessings-1.6.1/blessings/__init__.py   2018-01-03 17:24:45.000000000 
+0100
+++ new/blessings-1.7/blessings/__init__.py     2018-06-21 15:52:52.000000000 
+0200
@@ -5,6 +5,7 @@
 import curses
 from curses import setupterm, tigetnum, tigetstr, tparm
 from fcntl import ioctl
+from six import text_type, string_types
 
 try:
     from io import UnsupportedOperation as IOUnsupportedOperation
@@ -14,7 +15,6 @@
         ``io.UnsupportedOperation`` in Python 2"""
 
 from os import isatty, environ
-from platform import python_version_tuple
 import struct
 import sys
 from termios import TIOCGWINSZ
@@ -23,13 +23,6 @@
 __all__ = ['Terminal']
 
 
-if ('3', '0', '0') <= python_version_tuple() < ('3', '2', '2+'):  # Good till
-                                                                  # 3.2.10
-    # Python 3.x < 3.2.3 has a bug in which tparm() erroneously takes a string.
-    raise ImportError('Blessings needs Python 3.2.3 or greater for Python 3 '
-                      'support due to http://bugs.python.org/issue10570.')
-
-
 class Terminal(object):
     """An abstraction around terminal capabilities
 
@@ -428,7 +421,7 @@
                       'shadow', 'standout', 'subscript', 'superscript']))
 
 
-class ParametrizingString(unicode):
+class ParametrizingString(text_type):
     """A Unicode string which can be called to parametrize it as a terminal
     capability"""
 
@@ -440,7 +433,7 @@
             "normal" capability.
 
         """
-        new = unicode.__new__(cls, formatting)
+        new = text_type.__new__(cls, formatting)
         new._normal = normal
         return new
 
@@ -469,7 +462,7 @@
         except TypeError:
             # If the first non-int (i.e. incorrect) arg was a string, suggest
             # something intelligent:
-            if len(args) == 1 and isinstance(args[0], basestring):
+            if len(args) == 1 and isinstance(args[0], string_types):
                 raise TypeError(
                     'A native or nonexistent capability template received '
                     '%r when it was expecting ints. You probably misspelled a '
@@ -480,12 +473,12 @@
                 raise
 
 
-class FormattingString(unicode):
+class FormattingString(text_type):
     """A Unicode string which can be called upon a piece of text to wrap it in
     formatting"""
 
     def __new__(cls, formatting, normal):
-        new = unicode.__new__(cls, formatting)
+        new = text_type.__new__(cls, formatting)
         new._normal = normal
         return new
 
@@ -500,7 +493,7 @@
         return self + text + self._normal
 
 
-class NullCallableString(unicode):
+class NullCallableString(text_type):
     """A dummy callable Unicode to stand in for ``FormattingString`` and
     ``ParametrizingString``
 
@@ -508,7 +501,7 @@
 
     """
     def __new__(cls):
-        new = unicode.__new__(cls, u'')
+        new = text_type.__new__(cls, u'')
         return new
 
     def __call__(self, *args):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/blessings/tests.py 
new/blessings-1.7/blessings/tests.py
--- old/blessings-1.6.1/blessings/tests.py      2018-01-03 17:06:23.000000000 
+0100
+++ new/blessings-1.7/blessings/tests.py        2018-06-21 15:52:52.000000000 
+0200
@@ -9,14 +9,13 @@
 xterm-256color exists.
 
 """
-from __future__ import with_statement  # Make 2.5-compatible
 from curses import tigetstr, tparm
 from functools import partial
-from StringIO import StringIO
 import sys
 
 from nose import SkipTest
 from nose.tools import eq_
+from six import StringIO
 
 # This tests that __all__ is correct, since we use below everything that should
 # be imported:
@@ -229,22 +228,22 @@
     t = TestTerminal()
     try:
         t.bold_misspelled('hey')
-    except TypeError, e:
+    except TypeError as e:
         assert 'probably misspelled' in e.args[0]
 
     try:
         t.bold_misspelled(u'hey')  # unicode
-    except TypeError, e:
+    except TypeError as e:
         assert 'probably misspelled' in e.args[0]
 
     try:
         t.bold_misspelled(None)  # an arbitrary non-string
-    except TypeError, e:
+    except TypeError as e:
         assert 'probably misspelled' not in e.args[0]
 
     try:
         t.bold_misspelled('a', 'b')  # >1 string arg
-    except TypeError, e:
+    except TypeError as e:
         assert 'probably misspelled' not in e.args[0]
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/blessings.egg-info/PKG-INFO 
new/blessings-1.7/blessings.egg-info/PKG-INFO
--- old/blessings-1.6.1/blessings.egg-info/PKG-INFO     2018-01-03 
17:59:54.000000000 +0100
+++ new/blessings-1.7/blessings.egg-info/PKG-INFO       2018-06-21 
15:57:00.000000000 +0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: blessings
-Version: 1.6.1
+Version: 1.7
 Summary: A thin, practical wrapper around terminal coloring, styling, and 
positioning
 Home-page: https://github.com/erikrose/blessings
 Author: Erik Rose
 Author-email: [email protected]
 License: MIT
-Description-Content-Type: UNKNOWN
 Description: =========
         Blessings
         =========
@@ -437,7 +436,8 @@
         
         .. _`Travis CI`: https://travis-ci.org/erikrose/blessings/
         
-        .. image:: https://secure.travis-ci.org/erikrose/blessings.png
+        .. image:: https://travis-ci.org/erikrose/blessings.svg?branch=master
+            :target: https://travis-ci.org/erikrose/blessings
         
         
         License
@@ -448,6 +448,10 @@
         Version History
         ===============
         
+        1.7
+          * Drop support for Python 2.6 and 3.3, which are end-of-lifed.
+          * Switch from 2to3 to the ``six`` library.
+        
         1.6.1
           * Don't crash if ``number_of_colors()`` is called when run in a 
non-terminal
             or when ``does_styling`` is otherwise false.
@@ -544,11 +548,13 @@
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: POSIX
 Classifier: Programming Language :: Python :: 2
-Classifier: Programming Language :: Python :: 2.5
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.2
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: Implementation :: CPython
+Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: User Interfaces
 Classifier: Topic :: Terminals
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/blessings.egg-info/SOURCES.txt 
new/blessings-1.7/blessings.egg-info/SOURCES.txt
--- old/blessings-1.6.1/blessings.egg-info/SOURCES.txt  2018-01-03 
17:59:54.000000000 +0100
+++ new/blessings-1.7/blessings.egg-info/SOURCES.txt    2018-06-21 
15:57:01.000000000 +0200
@@ -8,4 +8,5 @@
 blessings.egg-info/PKG-INFO
 blessings.egg-info/SOURCES.txt
 blessings.egg-info/dependency_links.txt
+blessings.egg-info/requires.txt
 blessings.egg-info/top_level.txt
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/blessings.egg-info/requires.txt 
new/blessings-1.7/blessings.egg-info/requires.txt
--- old/blessings-1.6.1/blessings.egg-info/requires.txt 1970-01-01 
01:00:00.000000000 +0100
+++ new/blessings-1.7/blessings.egg-info/requires.txt   2018-06-21 
15:57:00.000000000 +0200
@@ -0,0 +1 @@
+six
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/setup.cfg new/blessings-1.7/setup.cfg
--- old/blessings-1.6.1/setup.cfg       2018-01-03 17:59:54.000000000 +0100
+++ new/blessings-1.7/setup.cfg 2018-06-21 15:57:01.000000000 +0200
@@ -1,4 +1,5 @@
 [egg_info]
 tag_build = 
 tag_date = 0
+tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/setup.py new/blessings-1.7/setup.py
--- old/blessings-1.6.1/setup.py        2018-01-03 17:24:45.000000000 +0100
+++ new/blessings-1.7/setup.py  2018-06-21 15:55:12.000000000 +0200
@@ -10,23 +10,21 @@
 from setuptools import setup, find_packages
 
 
-extra_setup = {}
-if sys.version_info >= (3,):
-    extra_setup['use_2to3'] = True
-
 setup(
     name='blessings',
-    version='1.6.1',
+    version='1.7',
     description='A thin, practical wrapper around terminal coloring, styling, 
and positioning',
     long_description=open('README.rst').read(),
     author='Erik Rose',
     author_email='[email protected]',
     license='MIT',
     packages=find_packages(exclude=['ez_setup']),
+    install_requires=['six'],
     tests_require=['nose'],
     test_suite='nose.collector',
     url='https://github.com/erikrose/blessings',
     include_package_data=True,
+    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
     classifiers=[
         'Intended Audience :: Developers',
         'Natural Language :: English',
@@ -36,15 +34,16 @@
         'License :: OSI Approved :: MIT License',
         'Operating System :: POSIX',
         'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.5',
-        'Programming Language :: Python :: 2.6',
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
-        'Programming Language :: Python :: 3.2',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: Implementation :: CPython',
+        'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Software Development :: Libraries',
         'Topic :: Software Development :: User Interfaces',
         'Topic :: Terminals'
         ],
     keywords=['terminal', 'tty', 'curses', 'ncurses', 'formatting', 'style', 
'color', 'console'],
-    **extra_setup
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blessings-1.6.1/tox.ini new/blessings-1.7/tox.ini
--- old/blessings-1.6.1/tox.ini 2018-01-03 17:47:51.000000000 +0100
+++ new/blessings-1.7/tox.ini   2018-06-21 15:52:52.000000000 +0200
@@ -1,8 +1,8 @@
 [tox]
-envlist = py26, py27, py33, py36
+envlist = py{27,34,35,36,py}
 
 [testenv]
 commands = nosetests blessings
-deps = nose
-# So Python 3 runs don't pick up incompatible, un-2to3'd source from the cwd:
-changedir = .tox
\ No newline at end of file
+deps =
+    nose
+    six


Reply via email to