Open dschwoerer opened 1 year ago
Might be better to just move all the tests to a top-level directory so they're not installed at all?
Would that not still be pulled in (and than provide a top-level package)? https://github.com/boutproject/xBOUT/blob/master/setup.cfg#L41
Might be better to just move all the tests to a top-level directory so they're not installed at all?
I think having tests installed is a feature - it means you can test the installed package by doing
$ pytest --pyargs xbout
For finding the packages, it's trivial to just have packages = ["xbout"]
as there's only the one package to install.
Ah, I didn't realise people tested installed packages! When developing, I usually do an editable install into a virtual env, which does test the package as it would be installed, but I can't say I ever test any package I've installed from pypi.
Ah, I didn't realise people tested installed packages! When developing, I usually do an editable install into a virtual env, which does test the package as it would be installed, but I can't say I ever test any package I've installed from pypi.
I don't know if it's actually useful, but it seems nice to have as a possibility!
Edit: also we use that method at the moment to run the tests on conda-forge, although it would probably be possible to change that.
It seems some tests are currently installed as data, but that might change in the future.
See the output of setuptools below: