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 2023-08-17 19:43:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-celery-batches (Old)
and /work/SRC/openSUSE:Factory/.python-celery-batches.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-celery-batches"
Thu Aug 17 19:43:00 2023 rev:6 rq:1104141 version:0.8.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-celery-batches/python-celery-batches.changes
2023-03-30 22:51:30.360651528 +0200
+++
/work/SRC/openSUSE:Factory/.python-celery-batches.new.1766/python-celery-batches.changes
2023-08-17 19:43:12.202750983 +0200
@@ -1,0 +2,12 @@
+Wed Aug 9 07:34:59 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 0.8.1:
+ * Fix installing celery-batches with Celery 5.3.
+ * Support passing through the `request_dict` from the original
+ Celery request.
+ * Support Celery 5.3.
+ * Drop support for Celery < 5.0.
+ * Support Python 3.11.
+ * Drop support for Python 3.7.
+
+-------------------------------------------------------------------
Old:
----
celery-batches-0.7.tar.gz
New:
----
celery-batches-0.8.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-celery-batches.spec ++++++
--- /var/tmp/diff_new_pack.9qDph3/_old 2023-08-17 19:43:12.834752165 +0200
+++ /var/tmp/diff_new_pack.9qDph3/_new 2023-08-17 19:43:12.850752194 +0200
@@ -20,7 +20,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define _pkgname celery-batches
Name: python-%{_pkgname}
-Version: 0.7
+Version: 0.8.1
Release: 0
Summary: Django module to process multiple Celery task requests together
License: BSD-3-Clause
@@ -28,8 +28,8 @@
URL: https://github.com/percipient/celery-batches
Source:
https://github.com/percipient/%{_pkgname}/archive/v%{version}.tar.gz#/%{_pkgname}-%{version}.tar.gz
Patch0: celery-fixtures.patch
-BuildRequires: %{python_module base >= 3.7}
-BuildRequires: %{python_module celery >= 4.4}
+BuildRequires: %{python_module base >= 3.8}
+BuildRequires: %{python_module celery >= 5.0}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
++++++ celery-batches-0.7.tar.gz -> celery-batches-0.8.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/.github/workflows/main.yml
new/celery-batches-0.8.1/.github/workflows/main.yml
--- old/celery-batches-0.7/.github/workflows/main.yml 2022-05-02
16:18:46.000000000 +0200
+++ new/celery-batches-0.8.1/.github/workflows/main.yml 2023-06-27
19:01:34.000000000 +0200
@@ -18,7 +18,7 @@
- uses: "actions/setup-python@v3"
with:
- python-version: "3.7"
+ python-version: "3.8"
- name: "Install dependencies"
run: python -m pip install -r requirements/pkgutils.txt
@@ -66,7 +66,7 @@
strategy:
matrix:
- python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8"]
+ python-version: ["3.8", "3.9", "3.10", "3.11", "pypy-3.8"]
steps:
- uses: actions/checkout@v2
@@ -81,7 +81,7 @@
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
- python -m pip install --upgrade tox tox-gh-actions
+ python -m pip install --upgrade "tox<4" "tox-gh-actions<3"
- name: "Run tox targets for ${{ matrix.python-version }}"
env:
@@ -134,7 +134,7 @@
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
- python -m pip install --upgrade tox tox-gh-actions
+ python -m pip install --upgrade "tox<4" "tox-gh-actions<3"
- name: "Run tox targets"
env:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/CHANGELOG.rst
new/celery-batches-0.8.1/CHANGELOG.rst
--- old/celery-batches-0.7/CHANGELOG.rst 2022-05-02 16:18:46.000000000
+0200
+++ new/celery-batches-0.8.1/CHANGELOG.rst 2023-06-27 19:01:34.000000000
+0200
@@ -3,6 +3,36 @@
Changelog
#########
+0.8.1 (2023-06-27)
+==================
+
+Bugfixes
+--------
+
+* Fix installing celery-batches with Celery 5.3.
+ (`#80 <https://github.com/clokep/celery-batches/pull/80>`_)
+
+
+0.8 (2023-06-27)
+================
+
+Improvements
+------------
+
+* Support passing through the `request_dict` from the original Celery request.
+ Contributed by `@montasaurus <https://github.com/montasaurus>`_.
+ (`#71 <https://github.com/clokep/celery-batches/pull/71>`_)
+
+Maintenance
+-----------
+
+* Support Celery 5.3. (`#68
<https://github.com/clokep/celery-batches/pull/68>`_,
+ `#75 <https://github.com/clokep/celery-batches/pull/75>`_,
+ `#77 <https://github.com/clokep/celery-batches/pull/77>`_)
+* Drop support for Celery < 5.0. (`#78
<https://github.com/clokep/celery-batches/pull/78>`_)
+* Support Python 3.11. (`#75
<https://github.com/clokep/celery-batches/pull/75>`_)
+* Drop support for Python 3.7. (`#77
<https://github.com/clokep/celery-batches/pull/77>`_)
+
0.7 (2022-05-02)
================
@@ -75,8 +105,8 @@
* Clean-up and re-organize code. (`#31
<https://github.com/clokep/celery-batches/pull/31>`_)
* Support Celery 5.2. (`#36
<https://github.com/clokep/celery-batches/pull/36>`_)
-* Drop support for Python 3.6. (`#36
<https://github.com/clokep/celery-batches/pull/36>`_)
* Support Python 3.10. (`#37
<https://github.com/clokep/celery-batches/pull/37>`_)
+* Drop support for Python 3.6. (`#36
<https://github.com/clokep/celery-batches/pull/36>`_)
* Changed packaging to use setuptools declarative config in ``setup.cfg``.
(`#37 <https://github.com/clokep/celery-batches/pull/37>`_)
@@ -105,7 +135,8 @@
Maintenance
-----------
-* Support Celery 5.0. Drop support for Celery < 4.4. (`#21
<https://github.com/clokep/celery-batches/pull/21>`_)
+* Support Celery 5.0. (`#21
<https://github.com/clokep/celery-batches/pull/21>`_)
+* Drop support for Celery < 4.4. (`#21
<https://github.com/clokep/celery-batches/pull/21>`_)
* Drop support for Python < 3.6. (`#21
<https://github.com/clokep/celery-batches/pull/21>`_)
@@ -128,10 +159,11 @@
* Improved documentation. Contributed by
`@nijel <https://github.com/nijel>`_. (`#3
<https://github.com/clokep/celery-batches/pull/3>`_,
`#7 <https://github.com/clokep/celery-batches/pull/7>`_)
-* Support Python 3.7 and 3.8. Drop support for Python 3.4. (`#19
<https://github.com/clokep/celery-batches/pull/19>`_)
* Support Celery 4.2, 4.3, and 4.4. (`#12
<https://github.com/clokep/celery-batches/pull/12>`_,
`#14 <https://github.com/clokep/celery-batches/pull/14>`_,
`#19 <https://github.com/clokep/celery-batches/pull/19>`_)
+* Support Python 3.7 and 3.8. (`#19
<https://github.com/clokep/celery-batches/pull/19>`_)
+* Drop support for Python 3.4. (`#19
<https://github.com/clokep/celery-batches/pull/19>`_)
* CI improvements. (`#5 <https://github.com/clokep/celery-batches/pull/5>`_,
`#11 <https://github.com/clokep/celery-batches/pull/11>`_,
`#13 <https://github.com/clokep/celery-batches/pull/13>`_,)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/README.rst
new/celery-batches-0.8.1/README.rst
--- old/celery-batches-0.7/README.rst 2022-05-02 16:18:46.000000000 +0200
+++ new/celery-batches-0.8.1/README.rst 2023-06-27 19:01:34.000000000 +0200
@@ -18,7 +18,7 @@
Some potential use-cases for batching of task calls include:
* De-duplicating tasks.
-* Accumlating / only handling the latest task with similar arguments.
+* Accumulating / only handling the latest task with similar arguments.
* Bulk inserting / updating of data.
* Tasks with expensive setup that can run across a range of arguments.
@@ -27,10 +27,10 @@
celery-batches version runs on,
-- Python (3.7, 3.8, 3.9, 3.10)
+- Python (3.8, 3.9, 3.10, 3.11)
- PyPy3 (7.6)
-And is tested with Celery >= 4.4.
+And is tested with Celery >= 5.0.
If you're running an older version of Python, you need to be running
an older version of celery-batches:
@@ -39,12 +39,14 @@
- Python 3.4: celery-batches 0.2.
- Python 3.5: celery-batches 0.3.
- Python 3.6: celery-batches 0.5.
+- Python 3.7: celery-batches 0.7.
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.
+- Celery 4.4: celery-batches 0.7.
History
=======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/RELEASING.rst
new/celery-batches-0.8.1/RELEASING.rst
--- old/celery-batches-0.7/RELEASING.rst 1970-01-01 01:00:00.000000000
+0100
+++ new/celery-batches-0.8.1/RELEASING.rst 2023-06-27 19:01:34.000000000
+0200
@@ -0,0 +1,12 @@
+Releasing django-querysetsequence
+=================================
+
+1. Bump the version in ``setup.cfg`` and ``CHANGELOG.rst``.
+2. Double check the trove classifiers in ``setup.cfg`` (they should match the
+ supported Python version in ``README.rst`` and ``tox.ini``).
+3. Make a git commit.
+4. Create a git tag: ``git tag <version>``
+5. Push to GitHub: ``git push origin main`` & ``git push --tags``
+6. Build the package via ``python -m build``.
+7. Run twine checks: ``twine check dist/*``
+8. Upload to PyPI: ``twine upload dist/*``
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/celery_batches/__init__.py
new/celery-batches-0.8.1/celery_batches/__init__.py
--- old/celery-batches-0.7/celery_batches/__init__.py 2022-05-02
16:18:46.000000000 +0200
+++ new/celery-batches-0.8.1/celery_batches/__init__.py 2023-06-27
19:01:34.000000000 +0200
@@ -110,6 +110,9 @@
#: used similarly to reply_to
correlation_id = None
+ #: includes all of the original request headers
+ request_dict: Optional[Dict[str, Any]] = {}
+
#: TODO
chord = None
@@ -124,6 +127,7 @@
ignore_result: bool,
reply_to: Optional[str],
correlation_id: Optional[str],
+ request_dict: Optional[Dict[str, Any]],
):
self.id = id
self.name = name
@@ -134,6 +138,7 @@
self.ignore_result = ignore_result
self.reply_to = reply_to
self.correlation_id = correlation_id
+ self.request_dict = request_dict
@classmethod
def from_request(cls, request: Request) -> "SimpleRequest":
@@ -151,6 +156,7 @@
ignore_result,
request.reply_to,
request.correlation_id,
+ request.request_dict,
)
@@ -285,6 +291,7 @@
ignore_result=options.get("ignore_result", False),
reply_to=None,
correlation_id=None,
+ request_dict={},
)
return super().apply(([request],), {}, *_args, **options)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/docs/conf.py
new/celery-batches-0.8.1/docs/conf.py
--- old/celery-batches-0.7/docs/conf.py 2022-05-02 16:18:46.000000000 +0200
+++ new/celery-batches-0.8.1/docs/conf.py 2023-06-27 19:01:34.000000000
+0200
@@ -25,7 +25,7 @@
release = metadata.version("celery-batches")
version = ".".join(release.split(".")[0:2])
-language = None
+language = "en"
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
@@ -72,6 +72,6 @@
intersphinx_mapping = {
"python": ("https://docs.python.org/dev/", None),
- "kombu": ("https://docs.celeryq.dev/projects/kombu/en/master/", None),
- "celery": ("https://docs.celeryq.dev/en/master/", None),
+ "kombu": ("https://docs.celeryq.dev/projects/kombu/en/main/", None),
+ "celery": ("https://docs.celeryq.dev/en/main/", None),
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/docs/index.rst
new/celery-batches-0.8.1/docs/index.rst
--- old/celery-batches-0.7/docs/index.rst 2022-05-02 16:18:46.000000000
+0200
+++ new/celery-batches-0.8.1/docs/index.rst 2023-06-27 19:01:34.000000000
+0200
@@ -10,7 +10,7 @@
Some potential use-cases for batching of task calls include:
* De-duplicating tasks.
-* Accumlating / only handling the latest task with similar arguments.
+* Accumulating / only handling the latest task with similar arguments.
* Bulk inserting / updating of data.
* Tasks with expensive setup that can run across a range of arguments.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/setup.cfg
new/celery-batches-0.8.1/setup.cfg
--- old/celery-batches-0.7/setup.cfg 2022-05-02 16:18:46.000000000 +0200
+++ new/celery-batches-0.8.1/setup.cfg 2023-06-27 19:01:34.000000000 +0200
@@ -1,6 +1,6 @@
[metadata]
name = celery-batches
-version = 0.7
+version = 0.8.1
description = Experimental task class that buffers messages and processes them
as a list.
long_description = file: README.rst
long_description_content_type = text/x-rst
@@ -9,7 +9,7 @@
url = https://github.com/clokep/celery-batches
keywords = task, job, queue, distributed, messaging, actor
license = BSD
-license_file = LICENSE
+license_files = LICENSE
classifiers =
Development Status :: 3 - Alpha
License :: OSI Approved :: BSD License
@@ -18,10 +18,10 @@
Programming Language :: Python
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
- 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
Operating System :: OS Independent
@@ -35,8 +35,8 @@
[options]
packages =
celery_batches
-install_requires = celery>=4.4,<5.3
-python_requires = >=3.7
+install_requires = celery>=5.0,<5.4
+python_requires = >=3.8
[flake8]
extend-ignore = E203
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/celery-batches-0.7/tox.ini
new/celery-batches-0.8.1/tox.ini
--- old/celery-batches-0.7/tox.ini 2022-05-02 16:18:46.000000000 +0200
+++ new/celery-batches-0.8.1/tox.ini 2023-06-27 19:01:34.000000000 +0200
@@ -1,8 +1,10 @@
[tox]
envlist =
- {pypy3,3.7,3.8,3.9}-celery{44,50,51,52,master}-unit,
+ {pypy3,3.8,3.9}-celery{50,51,52,master}-unit,
# Celery 5.2 added support for Python 3.10.
- 3.10-celery{52,master}-unit,
+ 3.10-celery{52,53,master}-unit,
+ # Celery 5.3 added support for Python 3.11.
+ 3.11-celery{53,master}-unit,
# Integration tests.
3.10-celery52-integration-{rabbitmq,redis},
flake8
@@ -11,19 +13,18 @@
[gh-actions]
python =
pypy-3: pypy3
- 3.7: 3.7
3.8: 3.8
3.9: 3.9
3.10: 3.10
+ 3.11: 3.11
[testenv]
deps=
-r{toxinidir}/requirements/test.txt
- celery44: celery>=4.4,<4.5
celery50: celery>=5.0,<5.1
celery51: celery>=5.1,<5.2
- # pypy3 seems to only have celery 5.2.0b3 available and not the final
release.
- celery52: celery>=5.2.0b3,<5.3
+ celery52: celery>=5.2.0,<5.3
+ celery53: celery>=5.3.0,<5.4
celerymaster: https://codeload.github.com/celery/celery/zip/master
# By default celery (via kombu) install py-amqp.