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
ClobberError: This transaction has incompatible packages due to a shared path.
packages: conda-forge/noarch::pyprojroot-0.2.0-py_0, conda-forge/noarch::shtab-1.3.4-pyhd3deb0d_0
path: 'lib/site-packages/tests/__init__.py'
This suggests that this package is distributing a module called tests, which is wrong.
I assume that the same problem will occur with pip too.
In conda, I get the following error:
This suggests that this package is distributing a module called
tests
, which is wrong.I assume that the same problem will occur with pip too.
In my experience, the best solution is a
src
layout as described in https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure and https://hynek.me/articles/testing-packaging/#src.It's also worth noting that the "tests outside application code" pattern usually doesn't make the
tests
directory into a module: https://docs.pytest.org/en/latest/goodpractices.html?highlight=src#tests-outside-application-code. Note that this good practice guide also strongly suggests a src layout.The text was updated successfully, but these errors were encountered: