Skip to content

bug: tarball doesn't contain scripts/ directory required for testing #119

Description

@mcepl

Summary

When running the test suite:

[   36s] + pytest-3.14 --ignore=_build.python314 --ignore=_build.python313 -v -k 'not test_rpc'
[   37s] ============================= test session starts ==============================
[   37s] platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3.14
[   37s] cachedir: .pytest_cache
[   37s] rootdir: /home/abuild/rpmbuild/BUILD/python-agent-client-protocol-0.11.0-build/agent_client_protocol-0.11.0
[   37s] configfile: pyproject.toml
[   37s] testpaths: tests
[   37s] plugins: typeguard-4.5.2, asyncio-1.3.0
[   37s] asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
[   37s] collecting ... collected 117 items / 1 error / 23 deselected / 94 selected
[   37s] 
[   37s] ==================================== ERRORS ====================================
[   37s] ____________________ ERROR collecting tests/test_gen_all.py ____________________
[   37s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/python-agent-client-protocol-0.11.0-build/agent_client_protocol-0.11.0/tests/test_gen_all.py'.
[   37s] Hint: make sure your test modules/packages have valid Python names.
[   37s] Traceback:
[   37s] tests/test_gen_all.py:1: in <module>
[   37s]     from scripts.gen_all import resolve_ref, schema_source_paths
[   37s] E   ModuleNotFoundError: No module named 'scripts'
[   37s] =========================== short test summary info ============================
[   37s] ERROR tests/test_gen_all.py
[   37s] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
[   37s] ======================= 23 deselected, 1 error in 0.30s ========================

Reproduction steps

See above

Expected result

passing the test suite

Actual result

see above

Versions / environment

sdk 0.11.0, Python 3.13, Linux/openSUSE/Tumbleweed

Logs & screenshots

Open to submitting a fix?

  • I’m willing to open a PR for this bug.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions