-
Notifications
You must be signed in to change notification settings - Fork 88
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
Unintentional dependency on pytest #1473
Comments
Yup, it's an unintentional dependency :( We have some unit tests for
@marcoskirsch, thoughts? |
Or move them to their own separate file so that we don't add further conditional logic to the mako template. |
Having the tests be in the same file as the source code is not something I'd expect when installing a Python module.
If you want people to be able to run tests after installation you should allow installation using an extra (like |
We don't. |
Meeting Python user expectations is important to |
Description of issue
nidcpower has a dependency on pytest (I assume unintentional since it is not listed as a dependency).
System report
python -c "import niscope; niscope.print_diagnostic_information()"
output (replaceniscope
with appropriate package name)python -c "import nidcpower; nidcpower.print_diagnostic_information()
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\nitest.virtualenvs\nidcpower_test-yBwmuPo5\lib\site-packages\nidcpower_init_.py", line 10, in
from nidcpower.session import Session # noqa: F401
File "C:\Users\nitest.virtualenvs\nidcpower_test-yBwmuPo5\lib\site-packages\nidcpower\session.py", line 8, in
import nidcpower._attributes as _attributes
File "C:\Users\nitest.virtualenvs\nidcpower_test-yBwmuPo5\lib\site-packages\nidcpower_attributes.py", line 3, in
import nidcpower._converters as _converters
File "C:\Users\nitest.virtualenvs\nidcpower_test-yBwmuPo5\lib\site-packages\nidcpower_converters.py", line 10, in
import pytest
ModuleNotFoundError: No module named 'pytest'
Steps to reproduce issue
pip install nidcpower==1.3.0
python
import nidcpower
The text was updated successfully, but these errors were encountered: