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

Sanic on pypy #2682

Merged
merged 20 commits into from
Jul 5, 2023
Merged

Sanic on pypy #2682

merged 20 commits into from
Jul 5, 2023

Conversation

deounix
Copy link
Contributor

@deounix deounix commented Feb 12, 2023

A small patch for the os module to make Sanic works with PyPy

The problem is that aiofiles uses os.readlink which doesn't exists on PyPy.

@deounix deounix requested a review from a team as a code owner February 12, 2023 13:00
@codecov
Copy link

codecov bot commented Feb 12, 2023

Codecov Report

Patch coverage: 100.000% and project coverage change: -0.052 ⚠️

Comparison is base (af67801) 88.938% compared to head (3c848f8) 88.887%.

Additional details and impacted files
@@              Coverage Diff              @@
##              main     #2682       +/-   ##
=============================================
- Coverage   88.938%   88.887%   -0.052%     
=============================================
  Files           92        92               
  Lines         6952      6956        +4     
  Branches      1185      1185               
=============================================
  Hits          6183      6183               
- Misses         527       529        +2     
- Partials       242       244        +2     
Impacted Files Coverage Δ
sanic/application/logo.py 100.000% <100.000%> (ø)
sanic/application/motd.py 97.849% <100.000%> (ø)
sanic/asgi.py 91.729% <100.000%> (+0.062%) ⬆️
sanic/helpers.py 100.000% <100.000%> (ø)
sanic/log.py 100.000% <100.000%> (ø)
sanic/mixins/startup.py 92.753% <100.000%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ahopkins
Copy link
Member

Nice find. Thanks.

sanic/compat.py Outdated Show resolved Hide resolved
sanic/compat.py Outdated Show resolved Hide resolved
deounix and others added 2 commits February 13, 2023 00:59
Co-authored-by: L. Kärkkäinen <98187+Tronic@users.noreply.github.com>
@deounix
Copy link
Contributor Author

deounix commented Feb 12, 2023

@Tronic
@ahopkins

Updated. Thank you guys for the good work ( Sanic )

@deounix deounix requested a review from a team as a code owner April 17, 2023 03:02
@Tronic
Copy link
Member

Tronic commented Apr 17, 2023

Oh right, you can have UTF-8 codepage nowadays too. Still, the fix belongs upstream in Pypy, can you get it there?

@deounix
Copy link
Contributor Author

deounix commented Apr 17, 2023

Oh right, you can have UTF-8 codepage nowadays too. Still, the fix belongs upstream in Pypy, can you get it there?

I'm sorry I can't. If you could do it.

@Tronic
Copy link
Member

Tronic commented Apr 18, 2023

Oh right, you can have UTF-8 codepage nowadays too. Still, the fix belongs upstream in Pypy, can you get it there?

I'm sorry I can't. If you could do it.

Nope, I never even used Pypy. I figured since you found the fix and solved the problem could make a PR or issue report to them as well. It would be very helpful to get this fixed for everybody, not just Sanic users.

@ahopkins ahopkins merged commit 273825d into sanic-org:main Jul 5, 2023
32 checks passed
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.

3 participants