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

Use optional package installs #666

Merged
merged 19 commits into from
Aug 10, 2020
Merged

Conversation

euri10
Copy link
Member

@euri10 euri10 commented May 5, 2020

continuation of #298

from last comments there this does:

pip install uvicorn # A minimal install

  • click
  • h11

pip install uvicorn[standard] # An install complete with extras and platform dependencies

that leaves wsproto aside as @tomchristie last comment suggests.

@euri10 euri10 requested review from tomchristie and rafalp May 5, 2020 09:26
rafalp
rafalp previously requested changes May 5, 2020
Copy link
Member

@rafalp rafalp left a comment

Choose a reason for hiding this comment

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

My biggest gripe with this change is that as a person only just coming to uvicorn, I have no idea what "fast deps" are, what they give me, what "possibles" I am to gain or lose.

We'll have to expand readme's intro and describe what I get when I do pip install uvicorn vs what I'll get when I do pip install uvicorn[smth].

@euri10
Copy link
Member Author

euri10 commented May 5, 2020

I tried to be more explicit on what those 2 installation options mean @rafalp , you're right that was cryptic.
Not convinced by the term "goodies" on the reloader thing but I couldnt come up with something better on top of my mind, happy to change the wording

@euri10 euri10 requested a review from rafalp May 28, 2020 07:14
@mojimi
Copy link

mojimi commented Jun 17, 2020

How can I help to move this forward?

README.md Outdated Show resolved Hide resolved
@euri10 euri10 requested a review from erewok August 1, 2020 15:28
Copy link
Member

@tomchristie tomchristie left a comment

Choose a reason for hiding this comment

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

Looking ace yup! I think we might want some minor tweaks in the docs languages. (Eg maybe "optional extras" over "goodies", and something like "Cython-based" rather than "fast"?)

@tomchristie tomchristie dismissed rafalp’s stale review August 10, 2020 12:28

Dismissing as stale

README.md Outdated

In this context, "fast" means the following:
In this context, "Cython-based" means the following:

- the event loop `uvloop` will be installed and used if possible.
- the http protocol will be handled by `httptools` if possible.
- the websocket protocol will be handled by `websockets` (should you want to use `wsproto` you'd need to install it manually) if possible.
Copy link
Member

Choose a reason for hiding this comment

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

I guess the "websockets" one ought to go under optional extras really. (The "uvloop" and "httptools" cases here are kinda different in that they're not adding extra behaviour, so they're purely due to performance-something-something)

Copy link
Member Author

Choose a reason for hiding this comment

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

yes this is indeeed the case !

Copy link
Member Author

Choose a reason for hiding this comment

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

amended

@euri10 euri10 merged commit 5fa99a1 into encode:master Aug 10, 2020
@euri10 euri10 deleted the almarklein-options branch August 11, 2020 16:21
@vikahl vikahl mentioned this pull request Sep 28, 2020
2 tasks
br3ndonland added a commit to br3ndonland/inboard that referenced this pull request Oct 3, 2020
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.

7 participants