Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17389

[Python] In pyarrow, conftest is installed even when tests are not

    XMLWordPrintableJSON

Details

    Description

      When PYARROW_INSTALL_TESTS is set to 0, the packages keyword to setuptools.setup is:

      find_namespace_packages(include=['pyarrow*'], exclude=["pyarrow.tests*"])

      Since pyarrow.conftest is associated with the tests, I think it should be added to the list of modules to exclude in this case, i.e.,

      find_namespace_packages(include=['pyarrow*'], exclude=["pyarrow.tests*", "pyarrow.conftest"])

      (As a separate issue, it doesn’t seem like any of these excludes is having any effect for me anyway, as I find the tests are still included in wheels no matter what.)

      Attachments

        Issue Links

          Activity

            People

              milesgranger Miles Granger
              musicinmybrain Benjamin Beasley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m