Skip to content

Commit

Permalink
disable exception on import of piplicenses for Python 3.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Jul 25, 2024
1 parent 46914af commit d43e76a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions dcicutils/license_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit d43e76a

Please sign in to comment.