TileDB-Py
TileDB-Py copied to clipboard
Enable python 3.12
Enable python 3.12 for this repo
See also #1865
Reasons why tests were failing:
- tarfile supports extraction filters, a mechanism to mitigate some of the security issues: https://docs.python.org/3.12/library/tarfile.html#extraction-filters. Solved it using
filter="fully_trusted"argument fortf.extractall(). For some older Windows versions of Pythonfilterargument is not implemented. Handled it with a try catch. __repr__ofcollections.OrderedDictfor py3.12 has changed: https://github.com/python/cpython/pull/101661. This means we are getting different expected output for 3.12. Solved it using ellipsis marker: https://docs.python.org/3/library/doctest.html#doctest.ELLIPSIS
Please include pytest outputs for 3.12 executions
Please include pytest outputs for 3.12 executions
Python 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:20:11) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tiledb
>>> tiledb.version()
(0, 28, 1, 'dev10')
>>> tiledb.libtiledb.version()
(2, 20, 1)
Tests run successfully.