From d43e76a7068382becfb2d03225e840eae41e7fa8 Mon Sep 17 00:00:00 2001 From: David Michaels Date: Thu, 25 Jul 2024 11:13:50 -0400 Subject: [PATCH] disable exception on import of piplicenses for Python 3.12+ --- dcicutils/license_utils.py | 2 -- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dcicutils/license_utils.py b/dcicutils/license_utils.py index 8e0f16197..3f085067c 100644 --- a/dcicutils/license_utils.py +++ b/dcicutils/license_utils.py @@ -13,8 +13,6 @@ try: import piplicenses except ImportError: # pragma: no cover - not worth unit testing this case - if (sys.version_info[0] == 3) and (sys.version_info[1] >= 12): - print("XYZZY: DEBUG GA FOR PYTHON 3.12 AND SUBMITR") if not ((sys.version_info[0] == 3) and (sys.version_info[1] >= 12)): # For some reason for with Python 3.12 this gets triggered at least for submitr (TODO: track down further). raise Exception("The dcicutils.license_utils module is intended for use at development time, not runtime." diff --git a/pyproject.toml b/pyproject.toml index 1549cef4b..f81bed4f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dcicutils" -version = "8.13.3.1b6" # TODO: To become 8.13.4 +version = "8.13.3.1b7" # TODO: To become 8.13.4 description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources" authors = ["4DN-DCIC Team "] license = "MIT"