Debian Patches

Status for mypy/1.19.1-9

Patch Description Author Forwarded Bugs Origin Last update
clear-cflags clear out CFLAGS from the environement
While packaging from Debian we set

CFLAGS=-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/package/package=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection

This causes the following test failures:

FAILED mypyc/test/test_run.py::TestRun::run-i64.test::testI64GlueMethodsAndInheritance - data: /build/package/package/mypyc/test-data/run-i64.test:1338:
FAILED mypyc/test/test_run.py::TestRun::run-bools.test::testBoolOps - data: /build/package/package/mypyc/test-data/run-bools.test:17:
FAILED mypyc/test/test_run.py::TestRun::run-i64.test::testI64ErrorValuesAndUndefined - data: /build/package/package/mypyc/test-data/run-i64.test:519:
FAILED mypyc/test/test_run.py::TestRun::run-i64.test::testI64BasicOps - data: /build/package/package/mypyc/test-data/run-i64.test:1:
FAILED mypyc/test/test_run.py::TestRun::run-i64.test::testI64DefaultArgValues - data: /build/package/package/mypyc/test-data/run-i64.test:906:

All with the same underlying error:
python3.13: /usr/include/python3.13/object.h:352: Py_SIZE: Assertion `ob->ob_type != &PyLong_Type' failed.
Michael R. Crusoe <crusoe@debian.org> yes
lib-rt-tests discover lib-rt source more flexibly Michael R. Crusoe <crusoe@debian.org> yes
hint-typeshed-package point to python3-typeshed package for missing types "Michael R. Crusoe" <crusoe@debian.org> not-needed 2024-08-14
verbose make the build more verbose "Michael R. Crusoe" <crusoe@debian.org> not-needed 2022-04-02
intersphinx link to local documenatin "Michael R. Crusoe" <crusoe@debian.org> not-needed 2022-04-02
self_check_py_version Debian uses Python 3.13+ including a newer pytest version
So bump this version to avoid:
/usr/lib/python3/dist-packages/_pytest/terminal.py:1729: error: Pattern matching is only supported in Python 3.10 and greater [syntax]
self._tr.write_raw(sequence, flush=True)
^
Michael R. Crusoe <crusoe@debian.org> not-needed
accept_pathspec_v1 accept pathspec v1
Adapted from https://github.com/python/mypy/commit/7fee02ca109ad511bb55efd83ec13efc7f7eabfb
Michael R. Crusoe <crusoe@debian.org> not-needed

All known versions for source package 'mypy'

Links