oremanj / greenback

Reenter an asyncio or Trio event loop from synchronous code
https://greenback.readthedocs.io/
Other
80 stars 2 forks source link

Add support for greenlet >= 1.0 #8

Closed oremanj closed 2 years ago

oremanj commented 2 years ago

I contributed a patch to upstream greenlet that exposes a gr_context attribute, so we don't have to hack-change the context using ctypes. Drop support for greenlet 0.4.17 which changes the context but doesn't make it configurable.

codecov[bot] commented 2 years ago

Codecov Report

Merging #8 (ebc8989) into master (965932e) will increase coverage by 0.15%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master        #8      +/-   ##
===========================================
+ Coverage   99.84%   100.00%   +0.15%     
===========================================
  Files           7         7              
  Lines         632       612      -20     
  Branches       52        79      +27     
===========================================
- Hits          631       612      -19     
+ Misses          1         0       -1     
Flag Coverage Δ
cpython 98.69% <93.54%> (+0.27%) :arrow_up:
pypy36nightly ?
pypy36release 93.69% <83.87%> (+4.61%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
greenback/_impl.py 100.00% <100.00%> (+0.49%) :arrow_up:
greenback/_tests/test_impl.py 100.00% <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 965932e...ebc8989. Read the comment docs.