-
Notifications
You must be signed in to change notification settings - Fork 13
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
ModuleNotFoundError if pytest is not installed #82
Comments
I think this is kindof expected? (ie: if you use the |
Ok, the cost is that there is some complexity in #81.
Not by me, but that might come down to personal experience. Some reasoning:
|
How can "pytest is a requirement if and only if you're using the pytest extension" be expressed in To be super clear: Sybil is currently usable without installing |
I'm not sure what this means by "using the pytest extension", but I'm guessing that it is something that one wouldn't want to do (read source code in the installation process). Another way that some projects may do this, if they want some functionality to depend on a library but they do not want to add that library as a dependency is to split the project in two. e.g. That said, these are all options with trade-offs which have some pros and cons in terms of simplicity, backwards compatibility, and the use cases where not having |
This is now relevant as Sybil is broken with Pytest 8.0.0. |
pytest
is not defined as a requirement ofsybil
, butsybil
depends onpytest
.pip install sybil==5.0.3
This raises the error:
This is not caught by the tests because
pytest
is a test dependency.I suggest that to fix this, move
pytest
to the install requirements forsybil
.FWIW a project like
pip-check-reqs
would find this issue.The text was updated successfully, but these errors were encountered: