Skip to content

Commit

Permalink
Version 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Aug 27, 2022
1 parent f7927c3 commit 7e08920
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version 0.7.2 - August 26, 2022
Version 0.7.2 - August 27, 2022
- Added library version retrieval functions
oqs_version()
oqs_python_version()
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The **Open Quantum Safe (OQS) project** has the goal of developing and prototypi
Release notes
=============

This release of liboqs-python was released on August 26, 2022. Its release page on GitHub is https://github.com/open-quantum-safe/liboqs-python/releases/tag/0.7.2.
This release of liboqs-python was released on August 27, 2022. Its release page on GitHub is https://github.com/open-quantum-safe/liboqs-python/releases/tag/0.7.2.

What's New
----------
Expand Down
9 changes: 7 additions & 2 deletions oqs/oqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import ctypes as ct # to call native
import ctypes.util as ctu
import pkg_resources # to determine the module's version
import platform # to learn the OS we're on
import sys
import warnings
Expand Down Expand Up @@ -61,8 +62,12 @@ def oqs_version():

def oqs_python_version():
"""liboqs-python version string."""
from pkg_resources import require as pkg_resources_require
return pkg_resources_require("liboqs-python")[0].version
try:
result = pkg_resources.require("liboqs-python")[0].version
except pkg_resources.DistributionNotFound:
warnings.warn("Please install liboqs-python using setup.py")
return None
return result


# warn the use if the liboqs version differs from liboqs-python version
Expand Down

0 comments on commit 7e08920

Please sign in to comment.