Skip to content

Commit 7e08920

Browse files
committed
Version 0.7.2
1 parent f7927c3 commit 7e08920

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 0.7.2 - August 26, 2022
1+
Version 0.7.2 - August 27, 2022
22
- Added library version retrieval functions
33
oqs_version()
44
oqs_python_version()

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The **Open Quantum Safe (OQS) project** has the goal of developing and prototypi
1313
Release notes
1414
=============
1515

16-
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.
16+
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.
1717

1818
What's New
1919
----------

oqs/oqs.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

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

6263
def oqs_python_version():
6364
"""liboqs-python version string."""
64-
from pkg_resources import require as pkg_resources_require
65-
return pkg_resources_require("liboqs-python")[0].version
65+
try:
66+
result = pkg_resources.require("liboqs-python")[0].version
67+
except pkg_resources.DistributionNotFound:
68+
warnings.warn("Please install liboqs-python using setup.py")
69+
return None
70+
return result
6671

6772

6873
# warn the use if the liboqs version differs from liboqs-python version

0 commit comments

Comments
 (0)