Hello community,
here is the log from the commit of package python-whatever for openSUSE:Factory
checked in at 2020-02-07 15:54:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-whatever (Old)
and /work/SRC/openSUSE:Factory/.python-whatever.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-whatever"
Fri Feb 7 15:54:14 2020 rev:3 rq:770595 version:0.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-whatever/python-whatever.changes
2019-03-15 10:52:36.616966349 +0100
+++
/work/SRC/openSUSE:Factory/.python-whatever.new.26092/python-whatever.changes
2020-02-07 15:55:42.131552434 +0100
@@ -1,0 +2,7 @@
+Thu Feb 6 13:28:58 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- update to version 0.6
+ * support Python 3.8
+ * dropped Python 2.6 and 3.3 support
+
+-------------------------------------------------------------------
Old:
----
0.5.tar.gz
New:
----
0.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-whatever.spec ++++++
--- /var/tmp/diff_new_pack.WoeQcA/_old 2020-02-07 15:55:43.079552917 +0100
+++ /var/tmp/diff_new_pack.WoeQcA/_new 2020-02-07 15:55:43.079552917 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-whatever
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -18,12 +18,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-whatever
-Version: 0.5
+Version: 0.6
Release: 0
Summary: Module to make anonymous functions by partial application of
operators
License: BSD-3-Clause
Group: Development/Languages/Python
-URL: http://github.com/Suor/whatever
+URL: https://github.com/Suor/whatever
Source: https://github.com/Suor/whatever/archive/%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
++++++ 0.5.tar.gz -> 0.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.5/.travis.yml new/whatever-0.6/.travis.yml
--- old/whatever-0.5/.travis.yml 2017-08-24 08:44:34.000000000 +0200
+++ new/whatever-0.6/.travis.yml 2019-11-16 19:05:36.000000000 +0100
@@ -2,12 +2,12 @@
sudo: false
cache: pip
python:
- - "2.6"
- "2.7"
- - "3.3"
- "3.4"
- "3.5"
- "3.6"
+ - "3.7"
+ - "3.8"
- "pypy"
- "pypy3"
install:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.5/CHANGELOG new/whatever-0.6/CHANGELOG
--- old/whatever-0.5/CHANGELOG 2017-08-24 08:44:34.000000000 +0200
+++ new/whatever-0.6/CHANGELOG 2019-11-16 19:05:36.000000000 +0100
@@ -1,3 +1,9 @@
+0.6
+- support Python 3.8 (Felix Yan)
+- explicit support for Python 3.7
+Backward incompatible changes:
+- dropped Python 2.6 and 3.3 support
+
0.5
- added caller functionality to whatever
- improved __code__ introspection
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.5/setup.py new/whatever-0.6/setup.py
--- old/whatever-0.5/setup.py 2017-08-24 08:44:34.000000000 +0200
+++ new/whatever-0.6/setup.py 2019-11-16 19:05:36.000000000 +0100
@@ -2,7 +2,7 @@
setup(
name='whatever',
- version='0.5',
+ version='0.6',
author='Alexander Schepanovski',
author_email='[email protected]',
@@ -19,13 +19,13 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ 'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.5/tox.ini new/whatever-0.6/tox.ini
--- old/whatever-0.5/tox.ini 2017-08-24 08:44:34.000000000 +0200
+++ new/whatever-0.6/tox.ini 2019-11-16 19:05:36.000000000 +0100
@@ -1,6 +1,6 @@
[tox]
minversion = 2.7
-envlist = py26, py27, py33, py34, py35, py36, pypy, pypy3, flakes
+envlist = py27, py33, py34, py35, py36, py37, py38, pypy, pypy3, flakes
[travis]
python =
@@ -14,7 +14,7 @@
[flake8]
max-line-length = 100
-ignore = E401,E126,E127,E265,E302,E272,E261,E266,E731,E131
+ignore = E401,E126,E127,E265,E302,E272,E261,E266,E731,E131,W503
[testenv:flakes]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.5/whatever.py new/whatever-0.6/whatever.py
--- old/whatever-0.5/whatever.py 2017-08-24 08:44:34.000000000 +0200
+++ new/whatever-0.6/whatever.py 2019-11-16 19:05:36.000000000 +0100
@@ -9,6 +9,7 @@
__all__ = ['_', 'that']
PY2 = sys.version_info[0] == 2
+PY38 = sys.version_info[:2] >= (3, 8)
# TODO: or not to do
@@ -26,8 +27,8 @@
def __call__(*args, **kwargs):
return WhateverCode.make_call(lambda f: f(*args, **kwargs), 1)
- __code__ = CodeType(*((1, 1) if PY2 else (1, 0, 1)) +
- (1, 67, b'', (), (), ('f',), __name__, 'Whatever', 1,
b''))
+ __code__ = CodeType(*((1, 1) if PY2 else (1, 0, 0, 1) if PY38 else (1, 0,
1))
+ + (1, 67, b'', (), (), ('f',), __name__, 'Whatever',
1, b''))
class WhateverCode(object):
@@ -48,8 +49,9 @@
fname = self.__call__.__name__ or 'operator'
varnames =
tuple('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'[:self._arity])
# Adding co_kwonlyargcount for Python 3
- args = ((self._arity, self._arity) if PY2 else (self._arity, 0,
self._arity)) \
- + (1, 67, b'', (), (), varnames, __name__, fname, 1, b'')
+ args = ((self._arity, self._arity) if PY2 else (self._arity, 0, 0,
self._arity)
+ if PY38 else (self._arity, 0, self._arity)) + \
+ (1, 67, b'', (), (), varnames, __name__, fname, 1, b'')
return CodeType(*args)