Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-whatever for openSUSE:Factory
checked in at 2023-02-23 16:29:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-whatever (Old)
and /work/SRC/openSUSE:Factory/.python-whatever.new.1706 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-whatever"
Thu Feb 23 16:29:17 2023 rev:4 rq:1067281 version:0.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-whatever/python-whatever.changes
2020-02-07 15:55:42.131552434 +0100
+++
/work/SRC/openSUSE:Factory/.python-whatever.new.1706/python-whatever.changes
2023-02-23 16:53:25.773143911 +0100
@@ -1,0 +2,7 @@
+Mon Feb 20 08:36:04 UTC 2023 - Daniel Garcia <[email protected]>
+
+- update to version 0.7
+ * support Python 3.11
+ * include CHANGELOG into a release (Igor Gnatenko)
+
+-------------------------------------------------------------------
Old:
----
0.6.tar.gz
New:
----
0.7.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-whatever.spec ++++++
--- /var/tmp/diff_new_pack.9bK8cI/_old 2023-02-23 16:53:26.357147297 +0100
+++ /var/tmp/diff_new_pack.9bK8cI/_new 2023-02-23 16:53:26.361147320 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-whatever
#
-# Copyright (c) 2020 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
@@ -16,9 +16,8 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-whatever
-Version: 0.6
+Version: 0.7
Release: 0
Summary: Module to make anonymous functions by partial application of
operators
License: BSD-3-Clause
@@ -52,6 +51,8 @@
%files %{python_files}
%license LICENSE
%doc README.rst
-%{python_sitelib}/*
+%{python_sitelib}/whatever.py
+%{python_sitelib}/whatever-%{version}*-info
+%pycache_only %{python_sitelib}/__pycache__
%changelog
++++++ 0.6.tar.gz -> 0.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.6/.github/workflows/test.yml
new/whatever-0.7/.github/workflows/test.yml
--- old/whatever-0.6/.github/workflows/test.yml 1970-01-01 01:00:00.000000000
+0100
+++ new/whatever-0.7/.github/workflows/test.yml 2023-01-29 10:40:19.000000000
+0100
@@ -0,0 +1,40 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+jobs:
+ lint:
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python 3.10
+ uses: actions/setup-python@v2
+ with:
+ python-version: "3.10"
+ - name: Lint
+ run: |
+ pip install flake8
+ flake8 whatever.py
+ flake8 --ignore=E231,E711,E20,E22,E701 test_whatever.py
+
+ test:
+ runs-on: ubuntu-18.04
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: ["2.7", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8",
"3.9", "3.10", "3.11", "pypy2", "pypy3"]
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: pip install --upgrade pip pytest
+ - name: Run tests
+ run: pytest -W error
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.6/.travis.yml new/whatever-0.7/.travis.yml
--- old/whatever-0.6/.travis.yml 2019-11-16 19:05:36.000000000 +0100
+++ new/whatever-0.7/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,16 +0,0 @@
-language: python
-sudo: false
-cache: pip
-python:
- - "2.7"
- - "3.4"
- - "3.5"
- - "3.6"
- - "3.7"
- - "3.8"
- - "pypy"
- - "pypy3"
-install:
- - pip install tox-travis
-script:
- - tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.6/CHANGELOG new/whatever-0.7/CHANGELOG
--- old/whatever-0.6/CHANGELOG 2019-11-16 19:05:36.000000000 +0100
+++ new/whatever-0.7/CHANGELOG 2023-01-29 10:40:19.000000000 +0100
@@ -1,3 +1,7 @@
+0.7
+- support Python 3.11
+- include CHANGELOG into a release (Igor Gnatenko)
+
0.6
- support Python 3.8 (Felix Yan)
- explicit support for Python 3.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.6/MANIFEST.in new/whatever-0.7/MANIFEST.in
--- old/whatever-0.6/MANIFEST.in 2019-11-16 19:05:36.000000000 +0100
+++ new/whatever-0.7/MANIFEST.in 2023-01-29 10:40:19.000000000 +0100
@@ -1,2 +1,3 @@
include LICENSE
include README.rst
+include CHANGELOG
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.6/setup.py new/whatever-0.7/setup.py
--- old/whatever-0.6/setup.py 2019-11-16 19:05:36.000000000 +0100
+++ new/whatever-0.7/setup.py 2023-01-29 10:40:19.000000000 +0100
@@ -2,7 +2,7 @@
setup(
name='whatever',
- version='0.6',
+ version='0.7',
author='Alexander Schepanovski',
author_email='[email protected]',
@@ -26,6 +26,9 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
+ 'Programming Language :: Python :: 3.10',
+ 'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.6/tox.ini new/whatever-0.7/tox.ini
--- old/whatever-0.6/tox.ini 2019-11-16 19:05:36.000000000 +0100
+++ new/whatever-0.7/tox.ini 2023-01-29 10:40:19.000000000 +0100
@@ -1,10 +1,7 @@
[tox]
minversion = 2.7
-envlist = py27, py33, py34, py35, py36, py37, py38, pypy, pypy3, flakes
+envlist = py27, py33, py34, py35, py36, py37, py38, py39, py310, py311, pypy,
pypy3, flakes
-[travis]
-python =
- 2.7: py27, flakes
[testenv]
deps =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/whatever-0.6/whatever.py new/whatever-0.7/whatever.py
--- old/whatever-0.6/whatever.py 2019-11-16 19:05:36.000000000 +0100
+++ new/whatever-0.7/whatever.py 2023-01-29 10:40:19.000000000 +0100
@@ -10,6 +10,7 @@
__all__ = ['_', 'that']
PY2 = sys.version_info[0] == 2
PY38 = sys.version_info[:2] >= (3, 8)
+PY311 = sys.version_info[:2] >= (3, 11)
# TODO: or not to do
@@ -19,6 +20,20 @@
# object.__pow__(self, other[, modulo])
+def _make_code(arity, name, varnames):
+ # Python 3 got kwonlyargcount, Python 3.8 got posonlyargcount
+ args = [arity, arity] if PY2 else [arity, 0, 0, arity] if PY38 else
[arity, 0, arity]
+ args.extend([1, 67, b'', (), (), varnames, __name__, name])
+ # Python 3.11 got qualname
+ if PY311:
+ args.append('%s.%s' % (__name__, name))
+ args.extend([1, b''])
+ # Python 3.11 got exceptiontable
+ if PY311:
+ args.append(b'')
+ return CodeType(*args)
+
+
class Whatever(object):
def __contains__(self, other):
raise NotImplementedError('Sorry, can\'t to hook "in" operator in this
way')
@@ -27,8 +42,7 @@
def __call__(*args, **kwargs):
return WhateverCode.make_call(lambda f: f(*args, **kwargs), 1)
- __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''))
+ __code__ = _make_code(1, 'Whatever', ('f',))
class WhateverCode(object):
@@ -48,11 +62,7 @@
def __code__(self):
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, 0,
self._arity)
- if PY38 else (self._arity, 0, self._arity)) + \
- (1, 67, b'', (), (), varnames, __name__, fname, 1, b'')
- return CodeType(*args)
+ return _make_code(self._arity, fname, varnames)
### Unary ops