diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9870f650..e8776221 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14] + os: [ubuntu-22.04, ubuntu-24.04, macos-14, macos-15] build_type: [static_build, shared_build] steps: diff --git a/src/xinterpreter.cpp b/src/xinterpreter.cpp index ff210b2d..100e480b 100644 --- a/src/xinterpreter.cpp +++ b/src/xinterpreter.cpp @@ -300,8 +300,9 @@ namespace xpyt {"url", "https://xeus-python.readthedocs.io"} }); - return xeus::create_info_reply( - "5.3", // protocol_version + bool has_debugger = (PY_MAJOR_VERSION != 3) || (PY_MAJOR_VERSION != 13); + nl::json rep = xeus::create_info_reply( + "5.5", // protocol_version - overwrited in xeus core "xeus-python", // implementation XPYT_VERSION, // implementation_version "python", // language_name @@ -312,9 +313,16 @@ namespace xpyt R"({"name": "ipython", "version": )" + std::to_string(PY_MAJOR_VERSION) + "}", // language_codemirror_mode "python", // language_nbconvert_exporter banner, // banner - (PY_MAJOR_VERSION != 3) || (PY_MINOR_VERSION != 13), // debugger + has_debugger, // debugger help_links // help_links ); + + if (has_debugger) + { + rep["supported_features"] = nl::json::array({"debugger"}); + } + + return rep; } void interpreter::shutdown_request_impl()