python-odmantic: please RM from resolute

Bug #2137538 reported by Eduardo Barretto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pydantic (Ubuntu)
New
Undecided
Unassigned
python-odmantic (Debian)
Fix Released
Unknown
python-odmantic (Ubuntu)
New
Undecided
Graham Inggs

Bug Description

Imported from Debian bug http://bugs.debian.org/1123274:

Package: src:python-odmantic
Version: 1.0.2+ds1-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-odmantic, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   debian/rules override_dh_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf .mypy_cache .pytest_cache
dh_clean
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   debian/rules override_dh_auto_build

[... snipped ...]

DEBUG - Running `page_context` event from plugin 'material/search'
DEBUG - Running `post_build` event from plugin 'material/search'
DEBUG - Running `post_build` event from plugin 'macros'
DEBUG - Running `post_build` event from plugin 'mkdocstrings'
DEBUG - mkdocstrings: Tearing handlers down
INFO - Documentation built in 1.95 seconds
rm -rf html/sitemap.xml.gz html/__pycache__
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_odmantic/build; python3.14 -m pytest --ignore tests/integration/benchmarks/test_bench_sync.py --ignore tests/integration/fastapi/test_doc_example.py --ignore tests/integration/test_embedded_model.py --ignore tests/integration/test_engine.py --ignore tests/integration/test_engine_reference.py --ignore tests/integration/test_index.py --ignore tests/integration/test_query.py --ignore tests/integration/test_session.py --ignore tests/integration/test_types.py --ignore tests/integration/test_zoo.py -k 'not test_session_find and not test_session_find_one and not test_session_count and not test_session_save and not test_session_save_all and not test_session_delete and not test_session_remove and not test_get_first_type_argument_subclassing_on_non_matching_generics and not test_datetime_naive '
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0
codspeed: 3.2.0 (disabled, mode: walltime, timer_resolution: 1.0ns)
benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_odmantic/build
configfile: pyproject.toml
plugins: benchmark-5.2.3, codspeed-3.2.0, asyncio-1.2.0, inline-snapshot-0.31.0, anyio-4.11.0, xdist-3.8.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 328 items / 3 errors / 16 deselected / 312 selected

==================================== ERRORS ====================================
______ ERROR collecting tests/integration/benchmarks/test_bench_async.py _______
tests/integration/benchmarks/test_bench_async.py:5: in <module>
    from .models import VALID_LEVELS, SmallJournal
tests/integration/benchmarks/models.py:20: in <module>
    class SmallJournal(Model):
odmantic/model.py:451: in __new__
    mcs.__validate_cls_namespace__(name, namespace)
odmantic/model.py:229: in __validate_cls_namespace__
    raise TypeError(
E TypeError: field timestamp is defined without type annotation
____________ ERROR collecting tests/unit/test_json_serialization.py ____________
tests/unit/test_json_serialization.py:17: in <module>
    from tests.zoo.tree import TreeKind, TreeModel
tests/zoo/tree.py:13: in <module>
    class TreeModel(Model):
odmantic/model.py:451: in __new__
    mcs.__validate_cls_namespace__(name, namespace)
odmantic/model.py:229: in __validate_cls_namespace__
    raise TypeError(
E TypeError: field name is defined without type annotation
__________________ ERROR collecting tests/unit/test_query.py ___________________
tests/unit/test_query.py:3: in <module>
    from tests.zoo.tree import TreeKind, TreeModel
tests/zoo/tree.py:13: in <module>
    class TreeModel(Model):
odmantic/model.py:451: in __new__
    mcs.__validate_cls_namespace__(name, namespace)
odmantic/model.py:229: in __validate_cls_namespace__
    raise TypeError(
E TypeError: field name is defined without type annotation
=============================== warnings summary ===============================
odmantic/typing.py:6
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_odmantic/build/odmantic/typing.py:6: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
    from pydantic.v1.typing import is_classvar, resolve_annotations # noqa: F401

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR tests/integration/benchmarks/test_bench_async.py - TypeError: field tim...
ERROR tests/unit/test_json_serialization.py - TypeError: field name is define...
ERROR tests/unit/test_query.py - TypeError: field name is defined without typ...
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
================= 16 deselected, 1 warning, 3 errors in 0.56s ==================
E: pybuild pybuild:389: test: plugin pyproject failed with: [too-long-redacted] s and not test_datetime_naive '
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_odmantic/build; python3.13 -m pytest --ignore tests/integration/benchmarks/test_bench_sync.py --ignore tests/integration/fastapi/test_doc_example.py --ignore tests/integration/test_embedded_model.py --ignore tests/integration/test_engine.py --ignore tests/integration/test_engine_reference.py --ignore tests/integration/test_index.py --ignore tests/integration/test_query.py --ignore tests/integration/test_session.py --ignore tests/integration/test_types.py --ignore tests/integration/test_zoo.py -k 'not test_session_find and not test_session_find_one and not test_session_count and not test_session_save and not test_session_save_all and not test_session_delete and not test_session_remove and not test_get_first_type_argument_subclassing_on_non_matching_generics and not test_datetime_naive '
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
codspeed: 3.2.0 (disabled, mode: walltime, timer_resolution: 1.0ns)
benchmark: 5.2.3 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_odmantic/build
configfile: pyproject.toml
plugins: benchmark-5.2.3, codspeed-3.2.0, asyncio-1.2.0, inline-snapshot-0.31.0, anyio-4.11.0, xdist-3.8.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 359 items / 16 deselected / 343 selected

tests/integration/benchmarks/test_bench_async.py sssssssssssssss [ 4%]
tests/integration/fastapi/test_models.py ..s................. [ 10%]
tests/test_typing_utils.py ... [ 11%]
tests/unit/test_bson_fields.py ..................... [ 17%]
tests/unit/test_config.py ... [ 18%]
tests/unit/test_deprecations.py ..... [ 19%]
tests/unit/test_document_serialization.py .. [ 20%]
tests/unit/test_field.py ............... [ 24%]
tests/unit/test_index_definition.py .......... [ 27%]
tests/unit/test_json_serialization.py ........x [ 30%]
tests/unit/test_model_definition.py ...............ss.....s............. [ 40%]
.................................. [ 50%]
tests/unit/test_model_logic.py ......................................... [ 62%]
.......................... [ 69%]
tests/unit/test_model_type_validation.py ............................... [ 79%]
............................................... [ 92%]
tests/unit/test_query.py ....... [ 94%]
tests/unit/test_reference.py ... [ 95%]
tests/unit/test_session.py .............. [ 99%]
tests/unit/test_typing.py . [100%]

=============================== warnings summary ===============================
tests/unit/test_bson_fields.py::test_datetime_non_naive
  tests/unit/test_bson_fields.py:21: PytestWarning: The test <Function test_datetime_non_naive> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_datetime_non_naive():

tests/unit/test_bson_fields.py::test_datetime_non_naive_utc
  tests/unit/test_bson_fields.py:32: PytestWarning: The test <Function test_datetime_non_naive_utc> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_datetime_non_naive_utc():

tests/unit/test_bson_fields.py::test_datetime_non_naive_utc_as_simplified_extended_iso_format_string
  tests/unit/test_bson_fields.py:39: PytestWarning: The test <Function test_datetime_non_naive_utc_as_simplified_extended_iso_format_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_datetime_non_naive_utc_as_simplified_extended_iso_format_string():

tests/unit/test_bson_fields.py::test_datetime_non_naive_utc_as_gmt_zero_offset_string
  tests/unit/test_bson_fields.py:46: PytestWarning: The test <Function test_datetime_non_naive_utc_as_gmt_zero_offset_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_datetime_non_naive_utc_as_gmt_zero_offset_string():

tests/unit/test_bson_fields.py::test_datetime_milliseconds_rounding
  tests/unit/test_bson_fields.py:60: PytestWarning: The test <Function test_datetime_milliseconds_rounding> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_datetime_milliseconds_rounding():

tests/unit/test_bson_fields.py::test_validate_datetime_from_strings
  tests/unit/test_bson_fields.py:79: PytestWarning: The test <Function test_validate_datetime_from_strings> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_datetime_from_strings():

tests/unit/test_bson_fields.py::test_validate_bson_objectid
  tests/unit/test_bson_fields.py:91: PytestWarning: The test <Function test_validate_bson_objectid> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_bson_objectid():

tests/unit/test_bson_fields.py::test_validate_invalid_bson_objectid
  tests/unit/test_bson_fields.py:100: PytestWarning: The test <Function test_validate_invalid_bson_objectid> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_invalid_bson_objectid():

tests/unit/test_bson_fields.py::test_validate_decimal_valid_string
  tests/unit/test_bson_fields.py:112: PytestWarning: The test <Function test_validate_decimal_valid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_decimal_valid_string():

tests/unit/test_bson_fields.py::test_validate_decimal_valid_bson_decimal
  tests/unit/test_bson_fields.py:122: PytestWarning: The test <Function test_validate_decimal_valid_bson_decimal> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_decimal_valid_bson_decimal():

tests/unit/test_bson_fields.py::test_validate_decimal_invalid_string
  tests/unit/test_bson_fields.py:133: PytestWarning: The test <Function test_validate_decimal_invalid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_decimal_invalid_string():

tests/unit/test_bson_fields.py::test_validate_bson_decimal_valid_string
  tests/unit/test_bson_fields.py:145: PytestWarning: The test <Function test_validate_bson_decimal_valid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_bson_decimal_valid_string():

tests/unit/test_bson_fields.py::test_validate_bson_decimal_valid_bson_decimal
  tests/unit/test_bson_fields.py:155: PytestWarning: The test <Function test_validate_bson_decimal_valid_bson_decimal> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_bson_decimal_valid_bson_decimal():

tests/unit/test_bson_fields.py::test_validate_bson_decimal_invalid_string
  tests/unit/test_bson_fields.py:165: PytestWarning: The test <Function test_validate_bson_decimal_invalid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_bson_decimal_invalid_string():

tests/unit/test_bson_fields.py::test_validate_regex_valid_regex
  tests/unit/test_bson_fields.py:177: PytestWarning: The test <Function test_validate_regex_valid_regex> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_regex_valid_regex():

tests/unit/test_bson_fields.py::test_validate_regex_valid_string
  tests/unit/test_bson_fields.py:187: PytestWarning: The test <Function test_validate_regex_valid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_regex_valid_string():

tests/unit/test_bson_fields.py::test_validate_regex_invalid_string
  tests/unit/test_bson_fields.py:197: PytestWarning: The test <Function test_validate_regex_invalid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_regex_invalid_string():

tests/unit/test_bson_fields.py::test_validate_pattern_valid_string
  tests/unit/test_bson_fields.py:209: PytestWarning: The test <Function test_validate_pattern_valid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_pattern_valid_string():

tests/unit/test_bson_fields.py::test_validate_pattern_valid_bson_regex
  tests/unit/test_bson_fields.py:219: PytestWarning: The test <Function test_validate_pattern_valid_bson_regex> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_pattern_valid_bson_regex():

tests/unit/test_bson_fields.py::test_validate_pattern_invalid_string
  tests/unit/test_bson_fields.py:231: PytestWarning: The test <Function test_validate_pattern_invalid_string> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_validate_pattern_invalid_string():

tests/unit/test_bson_fields.py::test_with_bson_serializer_override_builtin_bson
  tests/unit/test_bson_fields.py:243: PytestWarning: The test <Function test_with_bson_serializer_override_builtin_bson> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_with_bson_serializer_override_builtin_bson():

tests/unit/test_json_serialization.py::test_simple_model_serialization
  tests/unit/test_json_serialization.py:23: PytestWarning: The test <Function test_simple_model_serialization> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_simple_model_serialization():

tests/unit/test_json_serialization.py::test_zoo_serialization_no_id[instance0-expected_parsed_json0]
  tests/unit/test_json_serialization.py:34: PytestWarning: The test <Function test_zoo_serialization_no_id[instance0-expected_parsed_json0]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.parametrize(

tests/unit/test_json_serialization.py::test_zoo_serialization_no_id[instance1-expected_parsed_json1]
  tests/unit/test_json_serialization.py:34: PytestWarning: The test <Function test_zoo_serialization_no_id[instance1-expected_parsed_json1]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.parametrize(

tests/unit/test_json_serialization.py::test_zoo_serialization_no_id[instance2-expected_parsed_json2]
  tests/unit/test_json_serialization.py:34: PytestWarning: The test <Function test_zoo_serialization_no_id[instance2-expected_parsed_json2]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.parametrize(

tests/unit/test_json_serialization.py::test_zoo_serialization_no_id[instance3-expected_parsed_json3]
  tests/unit/test_json_serialization.py:34: PytestWarning: The test <Function test_zoo_serialization_no_id[instance3-expected_parsed_json3]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.parametrize(

tests/unit/test_json_serialization.py::test_zoo_serialization_no_id[instance4-expected_parsed_json4]
  tests/unit/test_json_serialization.py:34: PytestWarning: The test <Function test_zoo_serialization_no_id[instance4-expected_parsed_json4]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.parametrize(

tests/unit/test_json_serialization.py::test_zoo_serialization_no_id[instance5-expected_parsed_json5]
  tests/unit/test_json_serialization.py:34: PytestWarning: The test <Function test_zoo_serialization_no_id[instance5-expected_parsed_json5]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.parametrize(

tests/unit/test_json_serialization.py::test_custom_json_encoders
  tests/unit/test_json_serialization.py:122: PytestWarning: The test <Function test_custom_json_encoders> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.filterwarnings("ignore:`json_encoders` is deprecated")

tests/unit/test_json_serialization.py::test_custom_json_encoders_override_builtin_bson
  tests/unit/test_json_serialization.py:134: PytestWarning: The test <Function test_custom_json_encoders_override_builtin_bson> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    @pytest.mark.xfail(

tests/unit/test_session.py::test_sync_session_find[session]
  tests/unit/test_session.py:121: PytestWarning: The test <Function test_sync_session_find[session]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_find(

tests/unit/test_session.py::test_sync_session_find[transaction]
  tests/unit/test_session.py:121: PytestWarning: The test <Function test_sync_session_find[transaction]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_find(

tests/unit/test_session.py::test_sync_session_find_one[session]
  tests/unit/test_session.py:129: PytestWarning: The test <Function test_sync_session_find_one[session]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_find_one(

tests/unit/test_session.py::test_sync_session_find_one[transaction]
  tests/unit/test_session.py:129: PytestWarning: The test <Function test_sync_session_find_one[transaction]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_find_one(

tests/unit/test_session.py::test_sync_session_count[session]
  tests/unit/test_session.py:139: PytestWarning: The test <Function test_sync_session_count[session]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_count(

tests/unit/test_session.py::test_sync_session_count[transaction]
  tests/unit/test_session.py:139: PytestWarning: The test <Function test_sync_session_count[transaction]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_count(

tests/unit/test_session.py::test_sync_session_save[session]
  tests/unit/test_session.py:147: PytestWarning: The test <Function test_sync_session_save[session]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_save(

tests/unit/test_session.py::test_sync_session_save[transaction]
  tests/unit/test_session.py:147: PytestWarning: The test <Function test_sync_session_save[transaction]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_save(

tests/unit/test_session.py::test_sync_session_save_all[session]
  tests/unit/test_session.py:155: PytestWarning: The test <Function test_sync_session_save_all[session]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_save_all(

tests/unit/test_session.py::test_sync_session_save_all[transaction]
  tests/unit/test_session.py:155: PytestWarning: The test <Function test_sync_session_save_all[transaction]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_save_all(

tests/unit/test_session.py::test_sync_session_delete[session]
  tests/unit/test_session.py:165: PytestWarning: The test <Function test_sync_session_delete[session]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_delete(

tests/unit/test_session.py::test_sync_session_delete[transaction]
  tests/unit/test_session.py:165: PytestWarning: The test <Function test_sync_session_delete[transaction]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_delete(

tests/unit/test_session.py::test_sync_session_remove[session]
  tests/unit/test_session.py:175: PytestWarning: The test <Function test_sync_session_remove[session]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_remove(

tests/unit/test_session.py::test_sync_session_remove[transaction]
  tests/unit/test_session.py:175: PytestWarning: The test <Function test_sync_session_remove[transaction]> is marked with '@pytest.mark.asyncio' but it is not an async function. Please remove the asyncio mark. If the test is not marked explicitly, check for global marks applied via 'pytestmark'.
    def test_sync_session_remove(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==== 323 passed, 19 skipped, 16 deselected, 1 xfailed, 44 warnings in 0.92s ====
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13
make: *** [debian/rules:32: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Revision history for this message
Eduardo Barretto (ebarretto) wrote :

This package seems to be dead on upstream:
https://github.com/art049/odmantic/issues/513

And the possible alternative mentioned (beanie) is already present in Debian and Ubuntu: python-beanie

Revision history for this message
Eduardo Barretto (ebarretto) wrote :

There are no reverse dependencies:

$ reverse-depends src:python-odmantic
No reverse dependencies found

$ reverse-depends src:python-odmantic -a source
No reverse dependencies found

Revision history for this message
Eduardo Barretto (ebarretto) wrote :

Please remove this package from resolute to allow pydantic and other packages to migrate.

Graham Inggs (ginggs)
Changed in python-odmantic (Ubuntu):
assignee: nobody → Graham Inggs (ginggs)
Changed in python-odmantic (Debian):
importance: Undecided → Unknown
Graham Inggs (ginggs)
tags: added: ftbfs update-excuse
summary: - python-odmantic: FTBFS: dh_auto_test: error: pybuild --test --test-
- pytest -i python{version} -p "3.14 3.13" returned exit code 13
+ python-odmantic: please RM from resolute
Revision history for this message
Graham Inggs (ginggs) wrote :

Removing packages from resolute:
 python-odmantic 1.0.2-4 in resolute
  python-odmantic-doc 1.0.2-4 in resolute amd64
  python-odmantic-doc 1.0.2-4 in resolute amd64v3
  python-odmantic-doc 1.0.2-4 in resolute arm64
  python-odmantic-doc 1.0.2-4 in resolute armhf
  python-odmantic-doc 1.0.2-4 in resolute i386
  python-odmantic-doc 1.0.2-4 in resolute ppc64el
  python-odmantic-doc 1.0.2-4 in resolute riscv64
  python-odmantic-doc 1.0.2-4 in resolute s390x
  python3-odmantic 1.0.2-4 in resolute amd64
  python3-odmantic 1.0.2-4 in resolute amd64v3
  python3-odmantic 1.0.2-4 in resolute arm64
  python3-odmantic 1.0.2-4 in resolute armhf
  python3-odmantic 1.0.2-4 in resolute i386
  python3-odmantic 1.0.2-4 in resolute ppc64el
  python3-odmantic 1.0.2-4 in resolute riscv64
  python3-odmantic 1.0.2-4 in resolute s390x
Comment: FTBFS, blocking pydantic, LP: #2137538
Remove [y|N]? y
1 package successfully removed.

Changed in python-odmantic (Debian):
status: New → Confirmed
Changed in python-odmantic (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.