Skip to content

Commit

Permalink
Support for Celery 5.2 and Python 3.10. (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Dec 17, 2021
1 parent 02b9307 commit 92795ca
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"]
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]

steps:
- uses: actions/checkout@v2
Expand All @@ -40,11 +40,11 @@ jobs:

- name: "Run tox targets for ${{ matrix.python-version }}"
env:
TOXENV: "${{ matrix.python-version }}-celery44,${{ matrix.python-version }}-celery50,${{ matrix.python-version }}-celery51"
TOX_SKIP_ENV: ".*celerymaster.*"
run: "python -m tox"

- name: "Run tox targets for ${{ matrix.python-version }} for celery master"
env:
TOXENV: "${{ matrix.python-version }}-celerymaster"
TOX_SKIP_ENV: ".*celery[^m].*"
run: "python -m tox"
continue-on-error: true
4 changes: 3 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ Changelog
next
====

* Clean-up and re-organize code. (`#31 <https://github.com/clokep/celery-batches/pull/31>`_)
* Fix a bug when passing a ``request`` to ``mark_as_done`` with Celery 5.1.0.
(`#32 <https://github.com/clokep/celery-batches/pull/32>`_)
* 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>`_)
* Support Python 3.10. (`#36 <https://github.com/clokep/celery-batches/pull/36>`_)

0.5 2021-05-24
==============
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ What do I need?

celery-batches version runs on,

- Python (3.6, 3.7, 3.8)
- Python (3.6, 3.7, 3.8, 3.9, 3.10)
- PyPy3 (7.6)

And is tested with Celery >= 4.4.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def long_description():
url='https://github.com/clokep/celery-batches',
license='BSD',
platforms=['any'],
install_requires=['celery>=4.4,<5.2'],
install_requires=['celery>=4.4,<5.3'],
python_requires=">=3.6,",
classifiers=[
'Development Status :: 3 - Alpha',
Expand Down
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
[tox]
envlist =
{pypy3,3.6,3.7,3.8,3.9}-celery{44,50,51,master}
{pypy3,3.6,3.7,3.8,3.9,3.10}-celery{44,50,51},
# Celery 5.2 drops support for Python < 3.7.
{pypy3,3.7,3.8,3.9,3.10}-celery{52,master},
flake8
isolated_build = True
skip_missing_interpreters = True

[testenv]
deps=
-r{toxinidir}/requirements/test.txt
celery44: celery>=4.4,<4.5
celery50: celery>=5.0,<5.1
celery51: celery>=5.1.0b2,<5.2
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
celerymaster: https://codeload.github.com/celery/celery/zip/master

flake8: -r{toxinidir}/requirements/pkgutils.txt
Expand Down

0 comments on commit 92795ca

Please sign in to comment.