tskit
tskit copied to clipboard
Support for python 3.11
3.11 betas are coming out, with this version having some breakage in the C API.
I've had a go at this but can't get numpy to build due to https://github.com/numpy/numpy/issues/21422 so will wait for things to settle down.
Have you some pointers to what we can expect in terms of C API breakage @benjeffery? Nice to know what's coming up.
The good news is "CPython 3.11 is on average 25% faster than CPython 3.10 when measured with the pyperformance benchmark suite"!!
The C API changes are at https://docs.python.org/3.11/whatsnew/3.11.html#id6 None of it looks too bad.
None of it obviously affects us from a quick glance, so hopefully we'll get through without changes :crossed_fingers:
3.11 is released this month, so we should have another look at this.
Bringing this forward to the next release milestone.
Already have conda builds on conda-forge btw, e.g.: https://anaconda.org/conda-forge/tskit/files
Already have conda builds on conda-forge btw, e.g.: https://anaconda.org/conda-forge/tskit/files
Yeah, seeing that made me bump this up!
So the sticking point is that lshmm
has numba
as a dependency. I suggest we skip the tests that need it when running under py3.11.