Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename async keyword to asynchronous #839

Merged
merged 4 commits into from
Mar 19, 2018
Merged

Rename async keyword to asynchronous #839

merged 4 commits into from
Mar 19, 2018

Conversation

tomchuk
Copy link
Contributor

@tomchuk tomchuk commented Mar 16, 2018

* Fixes celery#742
* Resolves "DeprecationWarning: 'async' and 'await' will become reserved
  keywords in Python 3.7"
@codecov
Copy link

codecov bot commented Mar 16, 2018

Codecov Report

Merging #839 into master will decrease coverage by 1.29%.
The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #839     +/-   ##
=========================================
- Coverage   87.44%   86.15%   -1.3%     
=========================================
  Files          61       63      +2     
  Lines        6261     6486    +225     
  Branches      725      767     +42     
=========================================
+ Hits         5475     5588    +113     
- Misses        709      818    +109     
- Partials       77       80      +3
Impacted Files Coverage Δ
kombu/asynchronous/aws/__init__.py 100% <ø> (ø)
kombu/asynchronous/aws/sqs/ext.py 66.66% <ø> (ø)
kombu/transport/virtual/base.py 97.84% <ø> (ø) ⬆️
kombu/asynchronous/hub.py 77.69% <ø> (ø)
kombu/transport/pyamqp.py 89.28% <ø> (ø) ⬆️
kombu/asynchronous/__init__.py 100% <ø> (ø)
kombu/asynchronous/aws/sqs/queue.py 100% <ø> (ø)
kombu/asynchronous/timer.py 82.14% <ø> (ø)
kombu/asynchronous/semaphore.py 100% <ø> (ø)
kombu/asynchronous/aws/sqs/message.py 61.11% <ø> (ø)
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dba85e2...6321405. Read the comment docs.

Copy link
Member

@thedrow thedrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the code review. Overall this looks good to me.
Can you please add Python 3.7 to the build matrix?

Changelog Outdated
@@ -866,7 +866,7 @@ Deprecations and removals
:release-date: 2014-09-04 03:00 P.M UTC
:release-by: Ask Solem

- kombu.async: Min. delay between waiting for timer was always increased to
- kombu.asynchronous: Min. delay between waiting for timer was always increased to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to edit old release notes. Please remove these from the PR.

Changelog Outdated
@@ -937,7 +937,7 @@ Deprecations and removals
:release-date: 2014-06-02 06:00 P.M UTC
:release-by: Ask Solem

- A typo introduced in 3.0.17 caused kombu.async.hub to crash (Issue #360).
- A typo introduced in 3.0.17 caused kombu.asynchronous.hub to crash (Issue #360).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to edit old release notes. Please remove these from the PR.

Changelog Outdated
@@ -1488,7 +1488,7 @@ Deprecations and removals
same security implications as pickle, but Kombu uses the
:func:`yaml.safe_load` function which is not known to be affected.

- kombu.async: Experimental event loop implementation.
- kombu.asynchronous: Experimental event loop implementation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to edit old release notes. Please remove these from the PR.

Copy link
Member

@thedrow thedrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what went wrong with our PowerShell script on AppVeyor but that's a story for a different PR.
Windows is not a blocker :)

@thedrow thedrow merged commit 7569520 into celery:master Mar 19, 2018
@thedrow
Copy link
Member

thedrow commented Mar 19, 2018

Thank you very much for your contribution.
Feel free to add yourself to the AUTHORS file.

@auvipy auvipy added this to the 4.2 milestone Apr 10, 2018
@clokep clokep mentioned this pull request May 21, 2018
rajadain added a commit to WikiWatershed/model-my-watershed that referenced this pull request May 21, 2018
Latest Kombu renamed async to asynchronous celery/kombu#839
breaking Celery, which has a PR to fix this celery/celery#4679
but the changes haven't been released yet celery/celery#4387
so we use this in the interim.
robertknight added a commit to hypothesis/h that referenced this pull request Jul 23, 2018
This fixes an issue with use of reserved keywords as identifiers (`async`).

See celery/kombu#839
robertknight added a commit to hypothesis/h that referenced this pull request Jul 24, 2018
This fixes an issue with use of reserved keywords as identifiers (`async`).

See celery/kombu#839
kevinhyang pushed a commit to udemy/kombu that referenced this pull request Apr 4, 2019
* Rename `async` keyword to `asynchronous`

* Fixes celery#742
* Resolves "DeprecationWarning: 'async' and 'await' will become reserved
  keywords in Python 3.7"

* Address PR feedback

* Update appveyor config

* Rename docs and tests
@jxltom
Copy link

jxltom commented May 12, 2019

@thedrow Could this be applied to kombu v3 as well? It will be nice to support python37 for celery 3.1.25.

@auvipy
Copy link
Member

auvipy commented May 12, 2019

lol no. that version is long been abandoned and we are focusing on celery 5 and 4.x versions stability

@thedrow
Copy link
Member

thedrow commented May 12, 2019

@thedrow Could this be applied to kombu v3 as well? It will be nice to support python37 for celery 3.1.25.

There will be other problems with 3.7 support on the v3 branch.
You can either fork and maintain it or upgrade.

@jxltom
Copy link

jxltom commented May 12, 2019

@auvipy @thedrow Thanks, I will keep using python36 with celery v3 then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

async parameter should be renamed to support future python 3.7
4 participants