astropy / astropy-helpers

Helpers for Astropy and Affiliated packages
BSD 3-Clause "New" or "Revised" License
28 stars 42 forks source link

Test_ah_bootstrap fails due to missing ah_bootstrap.py #477

Closed olebole closed 4 years ago

olebole commented 5 years ago

When trying to build the current git as a Debian package, I get the following test error:

I: pybuild base:217: cd '/build/astropy-helpers-3.2~rc1/.pybuild/cpython3_3.7_astropy-helpers/build'; python3.7 -m pytest 
============================= test session starts ==============================
platform linux -- Python 3.7.3, pytest-3.10.1, py-1.7.0, pluggy-0.8.0
rootdir: /build/astropy-helpers-3.2~rc1, inifile: setup.cfg
collected 22 items / 1 errors
====================================
 ERROR collecting .pybuild/cpython3_3.7_astropy-helpers/build/astropy_helpers/tests/test_ah_bootstrap.py 
astropy_helpers/tests/test_ah_bootstrap.py:72: in <module>
    with open(AH_BOOTSTRAP_FILE) as f:
E   FileNotFoundError: [Errno 2] No such file or directory: '/build/astropy-helpers-3.2~rc1/.pybuild/cpython3_3.7_astropy-helpers/build/astropy_helpers/tests/../../ah_bootstrap.py'

The test command is automatically created by our build system and may be adjusted/overwritten (but to mee it looks sensible). I am however wondering whether ah_bootstrap.py should be copied during build?

bsipocz commented 5 years ago

Yes, I suppose it needs to be copied (in packages that use the helpers as a submodule we copy it out of the submodule, too).