-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hi!
There is RFP(Request for package) on Debian . So I am trying to package it.
Packaging it like others python package, but I am stuck in tests here.
First, what is right step to run tests? I just run tox
in d/rules from here
override_dh_auto_test:
tox
It should work. But I am confused how to explain the results:
...
removing build/bdist.linux-x86_64/wheel
Successfully built tox_current_env-0.0.11-py3-none-any.whl
I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.11 with "installer" module
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
tox
# skipped because could not find python interpreter with spec(s): py36-p310
...
py311-tox324: install_deps> python -I -m pip install 'tox<3.25,>=3.24'
FAILED tests/test_integration_tox3.py::test_noquiet_installed_packages[None]
FAILED tests/test_integration_tox3.py::test_regular_after_first_print_deps_is_supported[--print-deps-to-file=-]
FAILED tests/test_integration_tox3.py::test_regular_after_first_print_deps_is_supported[--print-deps-to=-]
FAILED tests/test_integration_tox3.py::test_regular_after_first_print_deps_is_supported[--print-deps-only]
FAILED tests/test_integration_tox3.py::test_regular_run_native_toxenv - Asser...
============= 5 failed, 250 passed, 4 skipped, 1 xfailed in 18.15s =============
py311-tox324: exit 1 (18.60 seconds) /<<PKGBUILDDIR>>> pytest -v tests pid=3985560
py311-tox324: FAIL ✖ in 46.6 seconds
...
FAILED tests/test_integration_tox3.py::test_regular_run_native_toxenv - Asser...
FAILED tests/test_integration_tox3.py::test_noquiet_installed_packages[None]
FAILED tests/test_integration_tox3.py::test_regular_after_first_print_deps_is_supported[--print-deps-to=-]
FAILED tests/test_integration_tox3.py::test_regular_after_first_print_deps_is_supported[--print-deps-only]
FAILED tests/test_integration_tox3.py::test_regular_after_first_print_deps_is_supported[--print-deps-to-file=-]
============= 5 failed, 250 passed, 4 skipped, 1 xfailed in 14.10s =============
...
================== 185 passed, 2 skipped, 1 xfailed in 11.77s ==================
.pkg: _exit> python /usr/lib/python3/dist-packages/pyproject_api/_backend.py True setuptools.build_meta
py36-tox324: SKIP (0.03 seconds)
py36-tox3: SKIP (0.00 seconds)
py37-tox324: SKIP (0.00 seconds)
py37-tox3: SKIP (0.00 seconds)
py37-tox4: SKIP (0.00 seconds)
py38-tox324: SKIP (0.00 seconds)
py38-tox3: SKIP (0.00 seconds)
py38-tox4: SKIP (0.00 seconds)
py39-tox324: SKIP (0.00 seconds)
py39-tox3: SKIP (0.00 seconds)
py39-tox4: SKIP (0.00 seconds)
py310-tox324: SKIP (0.00 seconds)
py310-tox3: SKIP (0.00 seconds)
py310-tox4: SKIP (0.00 seconds)
py311-tox324: FAIL code 1 (46.60=setup[27.99]+cmd[18.60] seconds)
py311-tox3: FAIL code 1 (40.62=setup[26.07]+cmd[14.55] seconds)
py311-tox4: OK (41.31=setup[29.14]+cmd[12.18] seconds)
evaluation failed :( (128.62 seconds)
The specially failed log is here
yes, here only py311-tox4 was built ok, like py311-tox324 and py311-tox3
was built failed due to the same test failed.
The current Debain sid env is : python-3.11,
tox-4.11. So there is only one tox and python3 to test, like tox's goal.
So can I remove test_integration_tox3.py here? because Debian python team request a
test successfully for new package. In fact, this is my first time to touch tox plugin module,
if i am wrong somewhere, please let me know.
Thanks.