You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of 0.11.0, the source distribution of typer on PyPI no longer seems to contain the docs_src directory. As, however, all of the tutorial tests import from this directory, all of them fail. Just to give one example:
____________________________________________________________ ERROR collecting tests/test_completion/test_completion.py ____________________________________________________________
ImportError while importing test module '/home/marix/openSUSE_Build_Service/devel:languages:python/python-typer/tmp/typer-0.11.0/tests/test_completion/test_completion.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_completion/test_completion.py:6: in <module>
from docs_src.commands.index import tutorial001 as mod
E ModuleNotFoundError: No module named 'docs_src'
Admittedly running the tests from the source distribution is somewhat of a fringe case. But when packaging for distributions that's the easiest way.
Operating System
Linux
Operating System Details
This is on openSUSE but the problem should not be affected by that.
Typer Version
0.11.0
Python Version
3.11 but affects any.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
This was handled in #773, now the sdist includes the necessary files to install dependencies and test it before repackaging it. It will be available in Typer 0.11.1 in the next hours. 🚀
Discussed in #771
Originally posted by theMarix March 27, 2024
First Check
Commit to Help
Example Code
Description
As of 0.11.0, the source distribution of typer on PyPI no longer seems to contain the
docs_src
directory. As, however, all of the tutorial tests import from this directory, all of them fail. Just to give one example:Admittedly running the tests from the source distribution is somewhat of a fringe case. But when packaging for distributions that's the easiest way.
Operating System
Linux
Operating System Details
This is on openSUSE but the problem should not be affected by that.
Typer Version
0.11.0
Python Version
3.11 but affects any.
Additional Context
No response
The text was updated successfully, but these errors were encountered: