-
Notifications
You must be signed in to change notification settings - Fork 25
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
TST: Investigate tox behavior with C-extension #295
Comments
Tried many things but nothing worked. @jhunkeler suspected some sort of upstream bug that is out of our control. Maybe when #294 is done, we only have to test the wheels and this problem would be irrelevant? |
I suspect this is due to this package having a layout of A way to get around this is to
Btw, we have the same issue with There's some discussion of this in |
Ah, yes! Nice. Yeah, tests should always have absolute imports. Also good. So many of these pitfalls go away if you package as
Which means the tests are completely separate and have to do absolute imports. And then if you run the tests from the top level there's no ambiguity when a test does If you package the tests separately, you can also chose not to distribute them with the runtime code if you like. And all of a sudden your glob patterns for |
I am not excited about re-arranging the whole package just so |
Me neither for |
I thought I tried with |
Blocked by:
tox
4.x release -- That version will have option to build and test wheel. See tox-dev/tox#852 (comment)Follow up of #293 . Need to see why C-extension needs to be manually built before running tests in
tox
. Perhaps it is expected or perhaps it is a symptom of a larger problem. Someone with expertise intox
and C-extension packaging needs to have a look.synphot_refactor/tox.ini
Lines 15 to 18 in 60be4e9
synphot_refactor/tox.ini
Lines 55 to 59 in 60be4e9
The text was updated successfully, but these errors were encountered: