-
First Check
Commit to Help
Example Codefawltydeps --check --detailed <project using typer> DescriptionSomewhat related question: #784
fawltydeps --check --detailed
These imports appear to be undeclared dependencies:
- 'typer' imported at:
src/<name>/__main__.py:6
src/<name>/cli.py:8
These dependencies appear to be unused (i.e. not imported):
- 'typer' declared in:
pyproject.toml We can fix this by adding an identity mapping:
But this feels artificial to me (and is also supposed to be a last resort). What has changed so that I tried to understand the packaging setup, but unfortunately I'm not familiar with your tools. Maybe this line is not really working? Operating SystemLinux, Windows Operating System DetailsNo response Typer Version0.12 Python Version3.10 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
From what I understand of the packaging, the I'm personally also confused by the new packaging, I think the intended effect is to have the |
Beta Was this translation helpful? Give feedback.
-
I just updated the release notes to include more info about it: https://typer.tiangolo.com/release-notes/#0121 Copying from there: In version If you don't want the extra optional dependencies ( You can also install In version This approach of having |
Beta Was this translation helpful? Give feedback.
I just updated the release notes to include more info about it: https://typer.tiangolo.com/release-notes/#0121
Copying from there:
In version
0.12.0
, thetyper
package depends ontyper-slim[standard]
which includes the default dependencies (instead oftyper[all]
) andtyper-cli
(that provides thetyper
command).If you don't want the extra optional dependencies (
rich
andshellingham
), you can installtyper-slim
instead.You can also install
typer-slim[standard]
, which includes the default optional dependencies, but not thetyper
command.In version
0.12.0
thetyper-cli
package only provides thetyper
command, but the code is still in the main code, so even without installingtyper-cli
, it…