Skip to content

Conversation

@alexmunoz502
Copy link
Contributor

Because uvloop is only supported on unix systems, I added a OS check so that it's only added as a dependency if we're generating the project on a unix machine.

Another option could be to make the dependency:

"uvloop; sys_platform != 'win32'"

which would then only get installed by the package manager if we're on windows. The upside here is we don't have to manage which OS we're running on for project generation, the downside being that it would be added to all project configs, including those that may only be windows-based.

I'm open to suggestions on which method is preferred, and I can make any updates.

@sanders41
Copy link
Owner

"uvloop; sys_platform != 'win32'"

Let's go with this option. This will make it so Windows developers and *nix developers can use the same lock file and everyone gets what they need. It will also cover the most likely production scenarios getting uvloop installed.

Copy link
Owner

@sanders41 sanders41 left a comment

Choose a reason for hiding this comment

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

Thanks!

@sanders41 sanders41 merged commit 7d4d8f7 into sanders41:fastapi-template Sep 25, 2025
46 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.

2 participants