Skip to content

Build tests on Debian GNU/Linux testing #366

@lopippo

Description

@lopippo

Greetings,

I am packaging version 2.5.10 for Debian.

When I try to build/run the tests, the pymzml module is not found. This is the command line from the top source directory:

$ pybuild --test --test-pytest -i python{version} -p 3.12

from pymzml.file_interface import FileInterface
E   ModuleNotFoundError: No module named 'pymzml' 

I guess the path to the pymzml directory is not know here, so I try:

$ PYTHONPATH=$PWD pybuild --test --test-pytest -i python{version} -p 3.12

And then, the build goes on... until the tests for pynumpress that fail because that module is not packaged for Debian (I'll remove the two corresponding test files).
And then, the build goes on... until the test for obo because there is a path problem:

E       FileNotFoundError: [Errno 2] No such file or directory: '/home/rusconi/devel/python-pymzml/development/.pybuild/cpython3_3.12_python-pymzml/build/tests/../pymzml/obo'
tests/obo_test.py:34: FileNotFoundError

Would you try to manage to have that pybuild run somehow get to know that pymzml is a subdirectory of the main source directory and that the obo subdirectory of that directory also is correctly referenced during the tests?

I am not sure this is a glitch on your part or on mine :-)

One note: the build.command file in the top source directory is somehow misleading: it does not build, it packages, no ? In fact, nowhere one would know how to run the tests; or is anyone expected to know how to run the tests in a Python development source tree ?

Sincerely,
Filippo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions