Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-celery-batches for 
openSUSE:Factory checked in at 2021-01-27 18:57:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-celery-batches (Old)
 and      /work/SRC/openSUSE:Factory/.python-celery-batches.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-celery-batches"

Wed Jan 27 18:57:38 2021 rev:4 rq:866878 version:0.4

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-celery-batches/python-celery-batches.changes  
    2020-03-30 23:07:01.764300455 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-celery-batches.new.28504/python-celery-batches.changes
   2021-01-27 18:57:40.768381828 +0100
@@ -1,0 +2,8 @@
+Tue Jan 26 13:07:49 UTC 2021 - Mark??ta Machov?? <mmach...@suse.com>
+
+- Update to 0.4
+  * Officially support Celery 5.0. Drop support for Celery < 4.4.
+  * Drop support for Python < 3.6.
+- Add celery-fixtures.patch to fix the testsuite
+
+-------------------------------------------------------------------

Old:
----
  celery-batches-0.3.tar.gz

New:
----
  celery-batches-0.4.tar.gz
  celery-fixtures.patch

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

Other differences:
------------------
++++++ python-celery-batches.spec ++++++
--- /var/tmp/diff_new_pack.cX5gzx/_old  2021-01-27 18:57:41.332382701 +0100
+++ /var/tmp/diff_new_pack.cX5gzx/_new  2021-01-27 18:57:41.332382701 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-celery-batches
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2018 Matthias Fehring <buschman...@opensuse.org>
 #
 # All modifications and additions to the file contributed by third parties
@@ -20,21 +20,22 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define _pkgname celery-batches
 Name:           python-%{_pkgname}
-Version:        0.3
+Version:        0.4
 Release:        0
 Summary:        Django module to process multiple Celery task requests together
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 URL:            https://github.com/percipient/celery-batches
 Source:         
https://github.com/percipient/%{_pkgname}/archive/v%{version}.tar.gz#/%{_pkgname}-%{version}.tar.gz
-BuildRequires:  %{python_module celery >= 4.0}
+Patch0:         celery-fixtures.patch
+BuildRequires:  %{python_module celery >= 4.4}
 BuildRequires:  %{python_module coverage}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytz}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-celery >= 4.0
+Requires:       python-celery >= 4.4
 BuildArch:      noarch
 %python_subpackages
 
@@ -47,6 +48,7 @@
 
 %prep
 %setup -q -n %{_pkgname}-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ celery-batches-0.3.tar.gz -> celery-batches-0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/.gitignore 
new/celery-batches-0.4/.gitignore
--- old/celery-batches-0.3/.gitignore   2020-01-30 00:19:01.000000000 +0100
+++ new/celery-batches-0.4/.gitignore   2020-11-30 22:44:47.000000000 +0100
@@ -17,3 +17,4 @@
 
 # Editor related.
 .idea
+.python-version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/.travis.yml 
new/celery-batches-0.4/.travis.yml
--- old/celery-batches-0.3/.travis.yml  2020-01-30 00:19:01.000000000 +0100
+++ new/celery-batches-0.4/.travis.yml  2020-11-30 22:44:47.000000000 +0100
@@ -2,12 +2,9 @@
 dist: bionic
 cache: pip
 python:
-  - '2.7'
-  - '3.5'
   - '3.6'
   - '3.7'
   - '3.8'
-  - 'pypy'
   - 'pypy3'
 os:
   - linux
@@ -15,53 +12,22 @@
   - lint
   - test
 env:
-  - CELERY_VERSION=40
-  - CELERY_VERSION=41
-  - CELERY_VERSION=42
-  - CELERY_VERSION=43
   - CELERY_VERSION=44
+  - CELERY_VERSION=50
   - CELERY_VERSION=master
 matrix:
   include:
     - python: '3.6'
       env: TOXENV=flake8
       stage: lint
-  # Celery 4.3 added support for Python >= 3.7.
-  exclude:
-    - python: '3.7'
-      env: CELERY_VERSION=40
-    - python: '3.7'
-      env: CELERY_VERSION=41
-    - python: '3.7'
-      env: CELERY_VERSION=42
-    - python: '3.8'
-      env: CELERY_VERSION=40
-    - python: '3.8'
-      env: CELERY_VERSION=41
-    - python: '3.8'
-      env: CELERY_VERSION=42
   allow_failures:
     - env: CELERY_VERSION=master
-    - python: pypy
 before_install:
   # If TOXENV is not set, build it from the Python and Celery versions.
   - if [[ -v CELERY_VERSION ]]; then export 
TOXENV=${TRAVIS_PYTHON_VERSION}-celery${CELERY_VERSION}; fi; env
-  - |
-        if [[ "$TOXENV" =~ "pypy" ]]; then
-          export PYENV_ROOT="$HOME/.pyenv"
-          if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
-            cd "$PYENV_ROOT" && git pull
-          else
-            rm -rf "$PYENV_ROOT" && git clone --depth 1 
https://github.com/pyenv/pyenv.git "$PYENV_ROOT"
-          fi
-          "$PYENV_ROOT/bin/pyenv" install "$PYPY_VERSION"
-          virtualenv --python="$PYENV_ROOT/versions/$PYPY_VERSION/bin/python" 
"$HOME/virtualenvs/$PYPY_VERSION"
-          source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
-          which python
-        fi
 after_success:
   - |
-          if [[ -v MATRIX_TOXENV || "$TOXENV" =~ "pypy" ]]; then
+          if [[ -v MATRIX_TOXENV ]]; then
               .tox/$TOXENV/bin/coverage xml
               .tox/$TOXENV/bin/codecov -e TOXENV
           fi;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/CHANGELOG.rst 
new/celery-batches-0.4/CHANGELOG.rst
--- old/celery-batches-0.3/CHANGELOG.rst        2020-01-30 00:19:01.000000000 
+0100
+++ new/celery-batches-0.4/CHANGELOG.rst        2020-11-30 22:44:47.000000000 
+0100
@@ -3,6 +3,12 @@
 Changelog
 #########
 
+0.4 2020-11-30
+==============
+
+* Officially support Celery 5.0. Drop support for Celery < 4.4.
+* Drop support for Python < 3.6.
+
 0.3 2020-01-29
 ==============
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/README.rst 
new/celery-batches-0.4/README.rst
--- old/celery-batches-0.3/README.rst   2020-01-30 00:19:01.000000000 +0100
+++ new/celery-batches-0.4/README.rst   2020-11-30 22:44:47.000000000 +0100
@@ -1,10 +1,40 @@
 Celery Batches
 ==============
 
+.. image:: https://api.travis-ci.com/clokep/celery-batches.svg?branch=main
+    :target: https://travis-ci.com/clokep/celery-batches
+
+.. image:: 
https://readthedocs.org/projects/celery-batches/badge/?version=latest
+    :target: https://celery-batches.readthedocs.io/en/latest/?badge=latest
+    :alt: Documentation Status
+
 Celery Batches provides a ``Task`` class that allows processing of multiple
 Celery task calls together as a list. The buffer of tasks calls is flushed on a
 timer and based on the number of queued tasks.
 
+What do I need?
+===============
+
+celery-batches version runs on,
+
+- Python (3.6, 3.7, 3.8)
+- PyPy3 (7.6)
+
+And is tested with Celery >= 4.4.
+
+If you're running an older version of Python, you need to be running
+an older version of celery-batches:
+
+- Python 2.7: celery-batches 0.3 series.
+- Python 3.4: celery-batches 0.2 series.
+- Python 3.5: celery-batches 0.3 series.
+
+If you're running an older version of Celery, you need to be running
+an older version of celery-batches:
+
+- Celery < 4.0: Use `celery.contrib.batches` instead.
+- Celery 4.0 - 4.3: celery-batches 0.3 series.
+
 History
 =======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/celery_batches/__init__.py 
new/celery-batches-0.4/celery_batches/__init__.py
--- old/celery-batches-0.3/celery_batches/__init__.py   2020-01-30 
00:19:01.000000000 +0100
+++ new/celery-batches-0.4/celery_batches/__init__.py   2020-11-30 
22:44:47.000000000 +0100
@@ -92,22 +92,20 @@
         current_app.backend.mark_as_done(request.id, response)
 
 """
-from __future__ import absolute_import, unicode_literals
-
 from itertools import count
+from queue import Empty, Queue
 
 from celery import signals, states
 from celery._state import _task_stack
 from celery.app.task import Context, Task
-from celery.five import Empty, Queue
 from celery.utils import noop
 from celery.utils.log import get_logger
 from celery.worker.request import Request
 from celery.worker.strategy import proto1_to_proto2
 
-from kombu.five import buffer_t
 from kombu.utils.uuid import uuid
 
+
 __all__ = ['Batches']
 
 logger = get_logger(__name__)
@@ -257,15 +255,12 @@
         timer = consumer.timer
         put_buffer = self._buffer.put
         flush_buffer = self._do_flush
-        body_can_be_buffer = consumer.pool.body_can_be_buffer
 
         def task_message_handler(message, body, ack, reject, callbacks, **kw):
             if body is None:
                 body, headers, decoded, utc = (
                     message.body, message.headers, False, True,
                 )
-                if not body_can_be_buffer:
-                    body = bytes(body) if isinstance(body, buffer_t) else body
             else:
                 body, headers, decoded, utc = proto1_to_proto2(message, body)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/docs/conf.py 
new/celery-batches-0.4/docs/conf.py
--- old/celery-batches-0.3/docs/conf.py 2020-01-30 00:19:01.000000000 +0100
+++ new/celery-batches-0.4/docs/conf.py 2020-11-30 22:44:47.000000000 +0100
@@ -31,8 +31,8 @@
 
 # General information about the project.
 project = u'Celery Batches'
-copyright = u'2017, Percipient Networks'
-author = u'Percipient Networks'
+copyright = u'2017, Percipient Networks; 2020, Patrick Cloke'
+author = u'Patrick Cloke'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/requirements/default.txt 
new/celery-batches-0.4/requirements/default.txt
--- old/celery-batches-0.3/requirements/default.txt     2020-01-30 
00:19:01.000000000 +0100
+++ new/celery-batches-0.4/requirements/default.txt     2020-11-30 
22:44:47.000000000 +0100
@@ -1 +1 @@
-celery>=4.0,<5.0
+celery>=4.4,<5.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/requirements/docs.txt 
new/celery-batches-0.4/requirements/docs.txt
--- old/celery-batches-0.3/requirements/docs.txt        2020-01-30 
00:19:01.000000000 +0100
+++ new/celery-batches-0.4/requirements/docs.txt        2020-11-30 
22:44:47.000000000 +0100
@@ -1,2 +1,2 @@
-git+https://github.com/celery/sphinx_celery.git
-Sphinx==1.6.5
+sphinx_celery==2.0.0
+Sphinx>=3.0.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/requirements/test.txt 
new/celery-batches-0.4/requirements/test.txt
--- old/celery-batches-0.3/requirements/test.txt        2020-01-30 
00:19:01.000000000 +0100
+++ new/celery-batches-0.4/requirements/test.txt        2020-11-30 
22:44:47.000000000 +0100
@@ -1,2 +1,3 @@
+pytest-celery
 pytest>=3.8.0,<3.9
 coverage
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/setup.cfg 
new/celery-batches-0.4/setup.cfg
--- old/celery-batches-0.3/setup.cfg    2020-01-30 00:19:01.000000000 +0100
+++ new/celery-batches-0.4/setup.cfg    2020-11-30 22:44:47.000000000 +0100
@@ -2,8 +2,5 @@
 # Don't use a strict line limit if it makes the code more readable.
 ignore = E501
 
-[bdist_wheel]
-universal = 1
-
 [metadata]
 license_file = LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/setup.py 
new/celery-batches-0.4/setup.py
--- old/celery-batches-0.3/setup.py     2020-01-30 00:19:01.000000000 +0100
+++ new/celery-batches-0.4/setup.py     2020-11-30 22:44:47.000000000 +0100
@@ -14,28 +14,29 @@
 setuptools.setup(
     name='celery-batches',
     packages=setuptools.find_packages(),
-    version='0.3',
+    version='0.4',
     description='Experimental task class that buffers messages and processes 
them as a list.',
     long_description=long_description(),
+    long_description_content_type='text/x-rst',
     keywords='task job queue distributed messaging actor',
-    author='Percipient Networks',
-    author_email='supp...@strongarm.io',
-    url='https://github.com/percipient/celery-batches',
+    author='Patrick Cloke',
+    author_email='clo...@patrick.cloke.us',
+    url='https://github.com/clokep/celery-batches',
     license='BSD',
     platforms=['any'],
-    install_requires=['celery>=4.0,<5.0'],
+    install_requires=['celery>=4.4,<5.1'],
+    python_requires=">=3.6,",
     classifiers=[
         'Development Status :: 3 - Alpha',
         'License :: OSI Approved :: BSD License',
         'Topic :: System :: Distributed Computing',
         'Topic :: Software Development :: Object Brokering',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 2',
-        'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3 :: Only',
         'Programming Language :: Python :: 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',
         'Operating System :: OS Independent',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/celery-batches-0.3/tox.ini 
new/celery-batches-0.4/tox.ini
--- old/celery-batches-0.3/tox.ini      2020-01-30 00:19:01.000000000 +0100
+++ new/celery-batches-0.4/tox.ini      2020-11-30 22:44:47.000000000 +0100
@@ -1,21 +1,13 @@
 [tox]
 envlist =
-    {2.7,pypy,3.4,3.5,3.6,pypy3}-celery{40,41,42}
-    # Celery 4.3 adds support for Python 3.7 and higher.
-    {3.7,3.8}-celery{43,44,master}
+    {pypy3,3.6,3.7,3.8}-celery{44,50,master}
     flake8
 
 [testenv]
 deps=
     -r{toxinidir}/requirements/test.txt
-    celery40: celery>=4.0,<4.1
-    # Kombu 4.2.0 is incompatible with Celery 4.0.x. It is compatible with
-    # Celery 4.1.1 and 4.2.x.
-    celery40: kombu<4.2
-    celery41: celery>=4.1,<4.2
-    celery42: celery>=4.2,<4.3
-    celery43: celery>=4.3,<4.4
     celery44: celery>=4.4,<4.5
+    celery50: celery>=5.0,<5.1
     celerymaster: https://codeload.github.com/celery/celery/zip/master
 
     flake8: -r{toxinidir}/requirements/pkgutils.txt
@@ -25,12 +17,9 @@
     coverage run -m pytest
     coverage html
 basepython =
-    2.7: python2.7
-    3.5: python3.5
     3.6: python3.6
     3.7: python3.7
     3.8: python3.8
-    pypy: pypy
     pypy3: pypy3
     flake8: python3.6
 usedevelop = True

++++++ celery-fixtures.patch ++++++
Index: celery-batches-0.4/t/integration/test_batches.py
===================================================================
--- celery-batches-0.4.orig/t/integration/test_batches.py
+++ celery-batches-0.4/t/integration/test_batches.py
@@ -7,6 +7,8 @@ from celery import signals
 from celery.app.task import Task
 from celery.result import allow_join_result
 from celery.contrib.testing.tasks import ping
+# some fixtures
+from celery.contrib.pytest import *
 
 from .tasks import add, cumadd, Results
 

Reply via email to