From 4c3a5423a4b90430b7ed14f2223b38034b561f7a Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Wed, 13 May 2026 19:35:53 -0400 Subject: [PATCH 1/2] Bump version to 0.16.0-dev; track liboqs main for -dev builds liboqs-python 0.13/0.14/0.15 were never released; jumping directly to 0.16.0 to realign with the upcoming liboqs 0.16.0. Auto-install treats any "-dev" suffix as "clone liboqs main" since no matching tag exists yet. Signed-off-by: Douglas Stebila Co-Authored-By: Claude Opus 4.7 (1M context) --- oqs/oqs.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/oqs/oqs.py b/oqs/oqs.py index 674f92c..e1c7d46 100644 --- a/oqs/oqs.py +++ b/oqs/oqs.py @@ -170,6 +170,10 @@ def _install_liboqs( if oqs_version_to_install is None: pass + elif oqs_version_to_install.endswith("-dev"): + # Pre-release dev versions of liboqs-python track liboqs main + oqs_version_to_install = None + elif "rc" in oqs_version_to_install: # removed the "-" from the version string tmp = oqs_version_to_install.split("rc") diff --git a/pyproject.toml b/pyproject.toml index b50d645..1129b9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "liboqs-python" requires-python = ">=3.9" -version = "0.14.0" +version = "0.16.0-dev" description = "Python bindings for liboqs, providing post-quantum public key cryptography algorithms" authors = [ { name = "Open Quantum Safe project", email = "contact@openquantumsafe.org" }, From b6bd7bf257ee43bdf2ecbf90530a95f6677e48cb Mon Sep 17 00:00:00 2001 From: Douglas Stebila Date: Wed, 13 May 2026 19:38:18 -0400 Subject: [PATCH 2/2] Detect PEP 440 dev versions in liboqs auto-install PEP 440 normalizes "0.16.0-dev" to "0.16.0.dev0" at install time, so the previous .endswith("-dev") check missed the actual runtime form. Signed-off-by: Douglas Stebila Co-Authored-By: Claude Opus 4.7 (1M context) --- oqs/oqs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oqs/oqs.py b/oqs/oqs.py index e1c7d46..9772e77 100644 --- a/oqs/oqs.py +++ b/oqs/oqs.py @@ -170,8 +170,9 @@ def _install_liboqs( if oqs_version_to_install is None: pass - elif oqs_version_to_install.endswith("-dev"): - # Pre-release dev versions of liboqs-python track liboqs main + elif "dev" in oqs_version_to_install: + # Pre-release dev versions of liboqs-python (e.g. 0.16.0.dev0, + # 0.16.0-dev) track liboqs main, since no matching tag exists. oqs_version_to_install = None elif "rc" in oqs_version_to_install: