From ce6c3a2aaeb93b278c3311017d2ae90dd7bad7b9 Mon Sep 17 00:00:00 2001 From: Vitaly Bogdanov Date: Sat, 27 Jul 2024 09:58:47 +0300 Subject: [PATCH 1/2] Disable subunit dependency of libcheck This prevents subunit from building by Conan and fixes Python 3.12 incompatibility with subunit 1.4.0 --- c/conanfile.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c/conanfile.txt b/c/conanfile.txt index f6e0d3b24..3c0de944e 100644 --- a/c/conanfile.txt +++ b/c/conanfile.txt @@ -3,3 +3,6 @@ libcheck/0.15.2 [generators] cmake + +[options] +libcheck:with_subunit=False From 425e9086c86063ed69da6177cbbd82cde7c33770 Mon Sep 17 00:00:00 2001 From: Vitaly Bogdanov Date: Sat, 27 Jul 2024 10:21:10 +0300 Subject: [PATCH 2/2] Python 3.12 works after fix --- README.md | 2 +- python/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f59543f4..9107ee162 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ page](https://www.rust-lang.org/tools/install). Make sure your Rust (see the Notes at the installation page). Requirements for building C and Python API - * Python3 and Python3-dev (3.7 or later, but not 3.12) + * Python3 and Python3-dev (3.7 or later) * Pip (23.1.2 or later) * GCC (7.5 or later) * CMake (3.19 or later) diff --git a/python/pyproject.toml b/python/pyproject.toml index 868c9655e..276dc944c 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "hyperon" description = "Hyperon API in Python" readme = "README.md" -requires-python = ">=3.7,<3.12" +requires-python = ">=3.7" keywords = ["metta", "hyperon", "opencog"] license = {text = "MIT License"} classifiers = [