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

Add proper condition for installing uvloop #595

Merged
merged 5 commits into from
Sep 8, 2023

Conversation

banipreetr
Copy link
Contributor

Description

This PR fixes #594

@netlify
Copy link

netlify bot commented Aug 29, 2023

Deploy Preview for robyn canceled.

Name Link
🔨 Latest commit 2ff8764
🔍 Latest deploy log https://app.netlify.com/sites/robyn/deploys/64fa6599aa54f90008594bfa

@banipreetr
Copy link
Contributor Author

@sansyrox

Can you please approve the rest of the workflows in CI ?
image

@sansyrox sansyrox marked this pull request as ready for review August 30, 2023 08:30
@sansyrox
Copy link
Member

@banipreetr done 😄

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 30, 2023

CodSpeed Performance Report

Merging #595 will not alter performance

Comparing banipreetr:fix-pyproject (2ff8764) with main (62b285f)

Summary

✅ 106 untouched benchmarks

pyproject.toml Outdated
@@ -30,7 +30,7 @@ dependencies = [
'nestd == 0.3.1',
'inquirerpy == 0.3.4',
# conditional
"uvloop>=0.17.0; sys_platform == 'darwin' and platform_machine == 'aarch_64' and platform_machine == 'x86_64' and platform_machine == 'i686'"
"uvloop>=0.17.0; sys_platform == 'darwin' and (platform_machine == 'aarch_64' or platform_machine == 'x86_64' or platform_machine == 'i686')"
Copy link
Member

Choose a reason for hiding this comment

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

I am pretty sure uvloop is not available on all aarch_64 platforms.

This will still not work imo

Copy link
Member

Choose a reason for hiding this comment

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

This condition will only install uvloop on osx and not other platforms.

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated
@@ -30,7 +30,7 @@ dependencies = [
'nestd == 0.3.1',
'inquirerpy == 0.3.4',
# conditional
"uvloop>=0.17.0; sys_platform == 'darwin' and platform_machine == 'aarch_64' and platform_machine == 'x86_64' and platform_machine == 'i686'"
"uvloop~=0.17.0; sys_platform != 'win32' and platform_python_implementation == 'CPython'"
Copy link
Contributor Author

@banipreetr banipreetr Sep 4, 2023

Choose a reason for hiding this comment

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

Hey @sansyrox ! Thanks for pushing this. Can you please explain the condition:

platform_python_implementation == 'CPython'

Why is it needed here in Robyn's case?

Thanks.

Copy link
Member

Choose a reason for hiding this comment

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

Hey @banipreetr 👋

This is needed when the users try to use robyn with PyPy. While we don't explicitly show support for PyPy on our repo. I am 70% sure that robyn works with PyPy lol

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
Copy link
Member

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

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

LGTM! 🔥

@sansyrox sansyrox merged commit 00f55af into sparckles:main Sep 8, 2023
51 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.

ModuleNotFoundError: No module named 'uvloop'
2 participants