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 3a94278 commit 025f6dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dcicutils/license_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
if not ((sys.version_info[0] == 3) and (sys.version_info[1] >= 12)):
raise Exception("The dcicutils.license_utils module is intended for use at development time, not runtime."
" It does not export a requirement for the pip-licenses library,"
" but to use this in your unit tests, you are expected to assure a dev dependency on that library"
" as part of the [tool.poetry.dependencies] section of your pyproject.toml file."
" but to use this in your unit tests, you are expected to assure a dev dependency on that"
" library as part of the [tool.poetry.dependencies] section of your pyproject.toml file."
" If you are trying to manually evaluate the utility of this library, you can"
" do 'pip install pip-licenses' and then retry importing this library.")
# or you can comment out the above raise of Exception and instead execute:
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.1b4" # TODO: To become 8.13.4
version = "8.13.3.1b5" # 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 025f6dc

Please sign in to comment.