1 Does the test suite of Basix need an update?
══════════════════════════════════════════════
Hi!
(<https: / / github. com / FEniCS / basix / search?q=pytest+version> shows that
there are no issues mentioning pytest and version.) As I am trying to
install Basix and its Python API, the tests told me:
┌────
│ test/test_version.py F. [100%]
│
│ ================================== FAILURES ==================================
│ ________________________________ test_version ________________________________
│
│ python_version = ‘0.5.0’, cpp_version = ‘0.5.1.0’
│
│ def test_version(python_version=pkg_resources.get_distribution(“fenics-basix”).version, cpp_version=basix.version):
│ assert is_canonical(python_version)
│
│ # Strip Python-specific versioning (dev, post) and compare with C++
│ # versioning
│ stripped_version = re.sub(r"(.post(0|[1-9][0-9]*))“, “”, python_version)
│ stripped_version = stripped_version.replace(“dev”, “”)
│ if stripped_version != cpp_version:
│ > raise RuntimeError(
│ f"The version numbers of the Python ({pkg_resources.get_distribution(‘fenics-basix’).version} "
│ + f”-> {stripped_version}) and pybind11/C++ ({basix.version}) libraries does not match")
│ E RuntimeError: The version numbers of the Python (0.5.0 → 0.5.0) and pybind11/C++ (0.5.1.0) libraries does not match
│
│ test/test_version.py:26: RuntimeError
│ ========================== short test summary info ===========================
│ FAILED test/test_version.py::test_version - RuntimeError: The version numbers of the …
│ ===== 1 failed, 8135 passed, 364 skipped, 9 xfailed in 118.27s (0:01:58) =====
└────
I guess that it is safe to install it anyway. I just wanted to report
this. Thank you!
┌────
│ uname -r
│ python --version
│ gcc --version | head -n 1
│ pytest --version
│ cmake --version | head -n 1
└────
┌────
│ 5.18.14-arch1-1
│ Python 3.10.5
│ gcc (GCC) 12.1.0
│ pytest 7.1.2
│ cmake version 3.23.2
└────
For building instructions, you can consult [this] and [this].
[this] <https: / / notabug. org / broncodev / basix-pkgbuild.git>
[this] <https: / / aur.archlinux. org / packages / fenics-basix-git>