Repository navigation
ARROW-17389: [Python] Properly exclude tests when PYARROW_INSTALL_TESTS=0 - #13904
jorisvandenbossche merged 3 commits into
Conversation
|
Testing this on the libarrow package in Fedora Linux, specifically on top of my open PR, I find that it works as advertised with respect to |
|
I can't seem to convince setuptools to ignore a specific file using Probably shouldn't do that though. Would be easier maybe to move tests out of |
|
There are a bunch of failures, because now test data is no longer included by default? (if we don't find an easy way to exclude conftest.py, I would just leave it like that; it's already useful you discovered that the tests weren't actually excluded) |
|
Bare with me, I have it working locally, just need to sort out CI discrepancies. 😅 |
|
Switching in 12c0fff to move AppVeyor is failing as expected in other PRs and master, and the docs I think is un-releated. |
|
Reference to setuptools adding back excluded packages: pypa/setuptools#3340 (comment) |
This excludes all test related files and data unless PYARROW_INSTALL_TEST is off. Otherwise tests is installed as pyarrow.tests as before.
|
After a tour of different ways to avoid adding the tests, seems maybe using Leaving the different implementations for any passersby. 😄 |
|
Thank you for taking the time to investigate this. |
|
@jorisvandenbossche do you think this is ready? |
|
In the end this didn't "really" close ARROW-17389, since conftest.py is still not excluded. But I am not sure it is worth keeping open that issue? |
|
Unfortunate, I agree, at least the bulk of tests are gone. Even though AFAIK, if we really want to close it
|
|
Benchmark runs are scheduled for baseline = 9882df5 and contender = 8b89147. 8b89147 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
|
['Python', 'R'] benchmarks have high level of regressions. |
…TS=0 (apache#13904) Authored-by: Miles Granger <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
Use a squashed patch corresponding to the final version of apache/arrow#13904. Fixes FTBFS on F38.
Will fix ARROW-17389
It appears when
PYARROW_INSTALL_TESTS=0, setuptools would continue to add importable packages anyway:(would also include warnings for
pyarrow.testsand other sub packages.)Adding in an explicit
package_dirseems to resolve the issue.Tested locally with both
bdistandbdist_wheelsdistwill still include tests, as I believe it's usingMANIFEST.in.