-
Notifications
You must be signed in to change notification settings - Fork 827
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
Make devtools deps extras, add note to internal ref docs, raise excep… #579
Changes from all commits
22f9adb
20eceb6
bfc585a
84565ed
9e83614
993cdcc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,16 @@ textual = "textual.cli.cli:run" | |
python = "^3.7" | ||
rich = "^12.4.3" | ||
#rich = {path="../rich", develop=true} | ||
click = "8.1.2" | ||
importlib-metadata = "^4.11.3" | ||
typing-extensions = { version = "^4.0.0", python = "<3.8" } | ||
msgpack = "^1.0.3" | ||
|
||
# Dependencies below are required for devtools only | ||
aiohttp = { version = "^3.8.1", optional = true } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @willmcgugan Do we move There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so. Is it possible to install the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I understand the question, but I don't believe you can install only the extras. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should only install the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't believe so. Think we'd have to distribute the devtools as a separate package. |
||
click = {version = "8.1.2", optional = true} | ||
msgpack = { version = "^1.0.3", optional = true } | ||
|
||
[tool.poetry.extras] | ||
dev = ["aiohttp", "click", "msgpack"] | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2.3" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Devtools | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are more just notes to remind us what to include in the docs when the structure is in place. They're not the final docs. |
||
|
||
## Installation | ||
|
||
Using the Textual Devtools requires installation of the `dev` extra dependency. | ||
|
||
https://python-poetry.org/docs/pyproject/#extras | ||
|
||
## Running | ||
|
||
TODO: Note how we run the devtools themselves and how we run our Textual apps | ||
such that they can connect. Don't forget Windows instructions :) | ||
We might also add a link to the documentation from the exception that gets | ||
raised when the "dev" extra dependencies aren't installed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://python-poetry.org/docs/pyproject/#extras