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

Python 3.10 #205

Merged
merged 11 commits into from Apr 1, 2022
Merged

Python 3.10 #205

merged 11 commits into from Apr 1, 2022

Conversation

taybin
Copy link
Contributor

@taybin taybin commented Oct 21, 2021

This builds off of #204 to remove the deprecated loop argument that was finally removed in python-3.10.

It uses an unreleased version of mode so probably blocked on releasing mode-0.2.0, but the tests pass.

@taybin taybin self-assigned this Oct 21, 2021
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2021

Codecov Report

Merging #205 (e28f66e) into master (d15d349) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #205      +/-   ##
==========================================
- Coverage   94.71%   94.71%   -0.01%     
==========================================
  Files         100      100              
  Lines       10842    10840       -2     
  Branches     1481     1515      +34     
==========================================
- Hits        10269    10267       -2     
  Misses        500      500              
  Partials       73       73              
Impacted Files Coverage Δ
faust/agents/agent.py 98.06% <ø> (ø)
faust/app/base.py 99.51% <ø> (ø)
faust/channels.py 100.00% <ø> (ø)
faust/transport/conductor.py 100.00% <ø> (ø)
faust/agents/replies.py 100.00% <100.00%> (ø)
faust/streams.py 96.26% <100.00%> (-0.01%) ⬇️
faust/tables/manager.py 96.74% <100.00%> (ø)
faust/transport/consumer.py 94.57% <100.00%> (ø)

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 d15d349...e28f66e. Read the comment docs.

Copy link
Contributor

@austinnichols101 austinnichols101 left a comment

Choose a reason for hiding this comment

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

I made a couple of notes for your review...

requirements/requirements.txt Outdated Show resolved Hide resolved
faust/types/app.py Outdated Show resolved Hide resolved
@taybin taybin marked this pull request as draft October 21, 2021 15:01
@taybin
Copy link
Contributor Author

taybin commented Oct 21, 2021

Converted to draft PR until we can point to a real mode-streaming release.

@mxcoder
Copy link

mxcoder commented Oct 21, 2021

Maybe edit the PR to merge to your color-less branch, that way this PR wouldn't show those changes too.

@PushUpek
Copy link

PushUpek commented Dec 2, 2021

any chance to merge this PR soon?

@theY4Kman
Copy link

I see mode-streaming lists @taybin as maintainer, with a release from last week, and I'm very excited. Where must I send my cryptokitties to shepherd this along? Or I can do your laundry? Mow your lawn? Hell, I'll floss your teeth for you, or floss my teeth in your stead, with an official note to pass to your dentist!

@AntonOfTheWoods
Copy link
Contributor

@taybin , is there anything stopping this being pointed to the new streaming?

@tritas tritas mentioned this pull request Feb 14, 2022
2 tasks
@blazing-gig
Copy link
Contributor

blazing-gig commented Feb 15, 2022

@taybin Would love for this PR to get merged ASAP as there doesn't seem to be any blockers. Happy to help if required.

@taybin
Copy link
Contributor Author

taybin commented Feb 15, 2022

I'm going to get this ready for testing today.

@taybin taybin marked this pull request as ready for review February 15, 2022 18:25
@theY4Kman
Copy link

theY4Kman commented Feb 18, 2022

whose back do i gotta scratch to apply a diff? @patkivikram?

diff --git a/faust/streams.py b/faust/streams.py
index 111be051..c87db350 100644
--- a/faust/streams.py
+++ b/faust/streams.py
@@ -414,8 +414,8 @@ class Stream(StreamT[T_co], Service):
         buffer_add = buffer.append
         event_add = events.append
         buffer_size = buffer.__len__
-        buffer_full = asyncio.Event(loop=self.loop)
-        buffer_consumed = asyncio.Event(loop=self.loop)
+        buffer_full = asyncio.Event()
+        buffer_consumed = asyncio.Event()
         timeout = want_seconds(within) if within else None
         stream_enable_acks: bool = self.enable_acks

@taybin
Copy link
Contributor Author

taybin commented Feb 18, 2022

Okay, the tests are passing. I suppose now we just need a PR approval and merge and then a beta release for trying it out.

@taybin
Copy link
Contributor Author

taybin commented Mar 4, 2022

@patkivikram What do you think? Can this get merged?

@VikalpRusia
Copy link

@patkivikram @austinnichols101 any update on this?

@AntonOfTheWoods
Copy link
Contributor

Am I missing something here? It looks as though all the work has been done, there is reasonable interest from the community but maintainers are just ignoring it. It is not that the maintainers are MIA, they are just (actively?) ignoring this. No mention of "you forgot ABC" or "we need better testing" or even "we don't want this on grounds of principle because XYZ".

Is there something political I am missing here? Is there something dubious with 3.10 that I have failed to find?

@blazing-gig
Copy link
Contributor

@AntonOfTheWoods Cant agree more... Would definitely like this to get merged.

@taybin taybin merged commit 71630ed into faust-streaming:master Apr 1, 2022
@taybin taybin deleted the python_3.10 branch April 1, 2022 15:42
@AntonOfTheWoods
Copy link
Contributor

Thank you @austinnichols101 and @taybin !!!

@VikalpRusia
Copy link

When we are releasing this?
I need to use it ASAP

cbrand pushed a commit to cbrand/faust that referenced this pull request Jun 5, 2022
* Remove deprecated loop argument for python-3.10

* reformat file for black

* remove unused variable, fix typo

* at least point to the faust-streaming/mode repo

* fix noack_take() for python-3.10

* use black to add commas

* set mode-streaming to 0.2.0 or higher

* remove loop argument from Event (thank you @theY4Kman)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants