Skip to content

Commit

Permalink
Merge pull request #199 from open-craft/gabor/bump-celery
Browse files Browse the repository at this point in the history
feat!: bump celery and drop python 3.5
  • Loading branch information
iamsobanjaved authored Feb 9, 2022
2 parents fbaa4b8 + 530161a commit 1a79ad8
Show file tree
Hide file tree
Showing 13 changed files with 168 additions and 58 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [django32-celery44-drf312, django32-celery44-drflatest, django32-celery50-drf312,
django32-celery50-drflatest, django40-celery44-drf312, django40-celery44-drflatest,
django40-celery50-drf312, django40-celery50-drflatest, quality, docs]
toxenv: [django32-celery44-drf312, django32-celery44-drflatest, django32-celery52-drf312,
django32-celery52-drflatest, django40-celery44-drf312, django40-celery44-drflatest,
django40-celery52-drf312, django40-celery52-drflatest, quality, docs]

steps:
- uses: actions/checkout@v2
Expand All @@ -36,7 +36,7 @@ jobs:
run: tox

- name: Run coverage
if: matrix.python-version == '3.8' && matrix.toxenv == 'django32-celery50-drf312'
if: matrix.python-version == '3.8' && matrix.toxenv == 'django32-celery52-drf312'
uses: codecov/codecov-action@v1
with:
flags: unittests
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ Change Log
Unreleased
~~~~~~~~~~

*
Removed
+++++++

* Removed Python 3.5 support.

Chore
+++++

* Upgraded celery to latest 5.x version.

[2.2.0] - 2022-01-26
~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ upgrade: ## update the requirements/*.txt files with the latest packages satisfy
$(PIP_COMPILE) -o requirements/ci.txt requirements/ci.in
$(PIP_COMPILE) -o requirements/dev.txt requirements/dev.in
# Let tox control the Django, djangorestframework, and celery versions for tests
grep -e "^amqp==\|^anyjson==\|^billiard==\|^celery==\|^kombu==\|^click-didyoumean==\|^click-repl==\|^click==\|^prompt-toolkit==\|^vine==" requirements/base.txt > requirements/celery44.txt
grep -e "^amqp==\|^anyjson==\|^billiard==\|^celery==\|^kombu==\|^click-didyoumean==\|^click-repl==\|^click==\|^prompt-toolkit==\|^vine==" requirements/base.txt > requirements/celery52.txt
sed -i.tmp '/^[d|D]jango==/d' requirements/test.txt
sed -i.tmp '/^djangorestframework==/d' requirements/test.txt
sed -i.tmp '/^amqp==/d' requirements/test.txt
Expand Down
30 changes: 26 additions & 4 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,28 @@
#
# make upgrade
#
amqp==2.6.1
amqp==5.0.9
# via kombu
asgiref==3.5.0
# via django
billiard==3.6.4.0
# via celery
celery==4.4.7
celery==5.2.3
# via
# -c requirements/constraints.txt
# -r requirements/base.in
click==8.0.3
# via
# celery
# click-didyoumean
# click-plugins
# click-repl
click-didyoumean==0.3.0
# via celery
click-plugins==1.1.1
# via celery
click-repl==0.2.0
# via celery
django==3.2.12
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
Expand All @@ -24,16 +36,26 @@ django-model-utils==4.2.0
# via -r requirements/base.in
djangorestframework==3.13.1
# via -r requirements/base.in
kombu==4.6.11
kombu==5.2.3
# via celery
prompt-toolkit==3.0.27
# via click-repl
pytz==2021.3
# via
# celery
# django
# djangorestframework
six==1.16.0
# via click-repl
sqlparse==0.4.2
# via django
vine==1.3.0
vine==5.0.0
# via
# amqp
# celery
# kombu
wcwidth==0.2.5
# via prompt-toolkit

# The following packages are considered to be unsafe in a requirements file:
# setuptools
9 changes: 0 additions & 9 deletions requirements/celery50.txt

This file was deleted.

9 changes: 9 additions & 0 deletions requirements/celery52.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
amqp==5.0.9
billiard==3.6.4.0
celery==5.2.3
click==8.0.3
click-didyoumean==0.3.0
click-repl==0.2.0
kombu==5.2.3
prompt-toolkit==3.0.27
vine==5.0.0
3 changes: 1 addition & 2 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# This file contains all common constraints for edx-repos
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt

# v 5.0 drops support of python3.5
celery<5.0
celery<6.0

# pyyaml==6.0 made the `Loader` a necessary argument for `yaml.load()` function.
# swagger2rst uses pyyaml and fails with the new version hence failing the `make docs` command.
Expand Down
40 changes: 34 additions & 6 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# make upgrade
#
amqp==2.6.1
amqp==5.0.9
# via
# -r requirements/test.txt
# kombu
Expand All @@ -25,7 +25,7 @@ billiard==3.6.4.0
# via
# -r requirements/test.txt
# celery
celery==4.4.7
celery==5.2.3
# via
# -c requirements/constraints.txt
# -r requirements/test.txt
Expand All @@ -41,14 +41,31 @@ click==8.0.3
# via
# -r requirements/pip-tools.txt
# -r requirements/quality.txt
# -r requirements/test.txt
# celery
# click-didyoumean
# click-log
# click-plugins
# click-repl
# code-annotations
# edx-lint
# pip-tools
click-didyoumean==0.3.0
# via
# -r requirements/test.txt
# celery
click-log==0.3.2
# via
# -r requirements/quality.txt
# edx-lint
click-plugins==1.1.1
# via
# -r requirements/test.txt
# celery
click-repl==0.2.0
# via
# -r requirements/test.txt
# celery
code-annotations==1.3.0
# via
# -r requirements/quality.txt
Expand Down Expand Up @@ -103,7 +120,7 @@ jinja2==3.0.3
# via
# -r requirements/quality.txt
# code-annotations
kombu==4.6.11
kombu==5.2.3
# via
# -r requirements/test.txt
# celery
Expand Down Expand Up @@ -137,7 +154,7 @@ pep517==0.12.0
# via
# -r requirements/pip-tools.txt
# pip-tools
pip-tools==6.5.0
pip-tools==6.5.1
# via -r requirements/pip-tools.txt
platformdirs==2.4.1
# via
Expand All @@ -153,6 +170,10 @@ pluggy==1.0.0
# tox
polib==1.1.1
# via edx-i18n-tools
prompt-toolkit==3.0.27
# via
# -r requirements/test.txt
# click-repl
py==1.11.0
# via
# -r requirements/ci.txt
Expand Down Expand Up @@ -223,6 +244,8 @@ six==1.16.0
# via
# -r requirements/ci.txt
# -r requirements/quality.txt
# -r requirements/test.txt
# click-repl
# edx-lint
# tox
# virtualenv
Expand Down Expand Up @@ -250,7 +273,7 @@ toml==0.10.2
# -r requirements/quality.txt
# pylint
# tox
tomli==2.0.0
tomli==2.0.1
# via
# -r requirements/pip-tools.txt
# -r requirements/test.txt
Expand All @@ -272,15 +295,20 @@ urllib3==1.26.8
# via
# -r requirements/ci.txt
# requests
vine==1.3.0
vine==5.0.0
# via
# -r requirements/test.txt
# amqp
# celery
# kombu
virtualenv==20.13.1
# via
# -r requirements/ci.txt
# tox
wcwidth==0.2.5
# via
# -r requirements/test.txt
# prompt-toolkit
wheel==0.37.1
# via
# -r requirements/pip-tools.txt
Expand Down
53 changes: 37 additions & 16 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
alabaster==0.7.12
# via sphinx
amqp==2.6.1
amqp==5.0.9
# via
# -r requirements/base.txt
# kombu
Expand All @@ -26,16 +26,33 @@ bleach==4.1.0
# via readme-renderer
cached-property==1.5.2
# via swagger2rst
celery==4.4.7
celery==5.2.3
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
certifi==2021.10.8
# via requests
cffi==1.15.0
# via cryptography
charset-normalizer==2.0.11
# via requests
click==8.0.3
# via
# -r requirements/base.txt
# celery
# click-didyoumean
# click-plugins
# click-repl
click-didyoumean==0.3.0
# via
# -r requirements/base.txt
# celery
click-plugins==1.1.1
# via
# -r requirements/base.txt
# celery
click-repl==0.2.0
# via
# -r requirements/base.txt
# celery
colorama==0.4.4
# via twine
coreapi==2.3.3
Expand All @@ -44,8 +61,6 @@ coreapi==2.3.3
# openapi-codec
coreschema==0.0.4
# via coreapi
cryptography==36.0.1
# via secretstorage
django==3.2.12
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
Expand Down Expand Up @@ -83,10 +98,6 @@ importlib-resources==5.4.0
# via jsonschema
itypes==1.2.0
# via coreapi
jeepney==0.7.1
# via
# keyring
# secretstorage
jinja2==3.0.3
# via
# coreschema
Expand All @@ -96,7 +107,7 @@ jsonschema==4.4.0
# via swagger2rst
keyring==23.5.0
# via twine
kombu==4.6.11
kombu==5.2.3
# via
# -r requirements/base.txt
# celery
Expand All @@ -112,8 +123,10 @@ pbr==5.8.1
# via stevedore
pkginfo==1.8.2
# via twine
pycparser==2.21
# via cffi
prompt-toolkit==3.0.27
# via
# -r requirements/base.txt
# click-repl
pygments==2.11.2
# via
# doc8
Expand Down Expand Up @@ -150,13 +163,13 @@ rfc3986==2.0.0
# via twine
rules==3.1
# via -r requirements/doc.in
secretstorage==3.3.1
# via keyring
simplejson==3.17.6
# via django-rest-swagger
six==1.16.0
# via
# -r requirements/base.txt
# bleach
# click-repl
# edx-sphinx-theme
snowballstemmer==2.2.0
# via sphinx
Expand Down Expand Up @@ -196,14 +209,22 @@ urllib3==1.26.8
# via
# requests
# twine
vine==1.3.0
vine==5.0.0
# via
# -r requirements/base.txt
# amqp
# celery
# kombu
wcwidth==0.2.5
# via
# -r requirements/base.txt
# prompt-toolkit
webencodings==0.5.1
# via bleach
zipp==3.7.0
# via
# importlib-metadata
# importlib-resources

# The following packages are considered to be unsafe in a requirements file:
# setuptools
4 changes: 2 additions & 2 deletions requirements/pip-tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ click==8.0.3
# via pip-tools
pep517==0.12.0
# via pip-tools
pip-tools==6.5.0
pip-tools==6.5.1
# via -r requirements/pip-tools.in
tomli==2.0.0
tomli==2.0.1
# via pep517
wheel==0.37.1
# via pip-tools
Expand Down
Loading

0 comments on commit 1a79ad8

Please sign in to comment.