Package installs 'tests' package which is likely a bug in the build system
pacho2 opened this issue · comments
This patch fixes it
+++ b/setup.py 2020-06-06 21:50:43.109010442 +0200
@@ -35,7 +35,7 @@
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Software Development :: Libraries :: Python Modules',
],
- packages=find_packages(exclude=['tests','scripts','extras','doc/examples']),
+ packages=find_packages(exclude=['tests','tests.*','scripts','extras','doc/examples']),
scripts = [
'scripts/gw-join_parts.py',
'scripts/gw-merge_topologies.py',```
Hm, yes, that's not good.
I think we just need to move tests
into gromacs
– just the way that most sane Python packages do.
EDIT (2020-09-03) — Keeping tests separate was made intentionally in PR #165 so just reverting it will lead to other issues, due to the specific way in which we have to run some tests.
@orbeckst can we just remove the __init__.py
files in tests
instead so tests
directory is not an installable python module?
Reading a bit more about where you're coming from with this question: Although I typically like it when one can run tests from an installed package, I don't think that in this case it's worth it. If the sanest course of action seems to be making it a CI/source only thing then I am ok with it.
We can still package it with the source tar ball, we just won't install it.
Does this sound reasonable?