Skip to content

Commit 829a10a

Browse files
authored
v0.8.0 (#63)
1 parent 2703175 commit 829a10a

File tree

11 files changed

+288
-162
lines changed

11 files changed

+288
-162
lines changed

.github/workflows/python.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
contents: read
1111

1212
env:
13+
BUILD_TYPE: Debug
1314
LD_LIBRARY_PATH: /usr/local/lib
1415
WIN_LIBOQS_INSTALL_PATH: C:\liboqs
1516

@@ -37,8 +38,9 @@ jobs:
3738
if: matrix.os != 'windows-latest'
3839
run: |
3940
git clone --branch main --single-branch --depth 1 https://github.com/open-quantum-safe/liboqs
40-
cmake -S liboqs -B liboqs/build -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON
41-
sudo cmake --build liboqs/build --parallel 4 --target install
41+
cmake -S liboqs -B liboqs/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON
42+
cmake --build liboqs/build --parallel 4
43+
sudo cmake --build liboqs/build --target install
4244
4345
- name: Run examples POSIX
4446
if: matrix.os != 'windows-latest'
@@ -60,14 +62,15 @@ jobs:
6062
shell: cmd
6163
run: |
6264
git clone --branch main --single-branch --depth 1 https://github.com/open-quantum-safe/liboqs
63-
cmake -S liboqs -B liboqs\build -DCMAKE_INSTALL_PREFIX=${{env.WIN_LIBOQS_INSTALL_PATH}} -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON
64-
cmake --build liboqs\build --parallel 4 --target install
65+
cmake -S liboqs -B liboqs\build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.WIN_LIBOQS_INSTALL_PATH}} -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON
66+
cmake --build liboqs\build --parallel 4
67+
cmake --build liboqs\build --target install
6568
6669
- name: Run examples Windows
6770
if: matrix.os == 'windows-latest'
6871
shell: cmd
6972
run: |
70-
set "PATH=${{env.WIN_LIBOQS_INSTALL_PATH}}\bin;%PATH%"
73+
set PATH=%PATH%;${{env.WIN_LIBOQS_INSTALL_PATH}}\bin
7174
pip install .
7275
python examples/kem.py
7376
echo.
@@ -79,5 +82,5 @@ jobs:
7982
shell: cmd
8083
if: matrix.os == 'windows-latest'
8184
run: |
82-
set "PATH=${{env.WIN_LIBOQS_INSTALL_PATH}}\bin;%PATH%"
85+
set PATH=%PATH%;${{env.WIN_LIBOQS_INSTALL_PATH}}\bin
8386
nose2 --verbose

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 0.8.0 - July 5, 2023
2+
- This is a maintenance release, minor fixes
3+
- Migrated installation method to pyproject.toml
4+
- Removed AppVeyor and CircleCI, all continuous integration is now done
5+
via GitHub actions
6+
17
Version 0.7.2 - August 27, 2022
28
- Added library version retrieval functions
39
oqs_version()

Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM ubuntu:latest
2+
3+
# Install dependencies
4+
RUN apt-get -y update && \
5+
apt-get install -y build-essential git cmake libssl-dev python3 python3-venv pip
6+
7+
# Get liboqs
8+
RUN git clone --depth 1 --branch main https://github.com/open-quantum-safe/liboqs
9+
10+
# Install liboqs
11+
RUN cmake -S liboqs -B liboqs/build -DBUILD_SHARED_LIBS=ON && \
12+
cmake --build liboqs/build --parallel 4 && \
13+
cmake --build liboqs/build --target install
14+
15+
# Enable a normal user
16+
RUN useradd -m -c "Open Quantum Safe" oqs
17+
USER oqs
18+
WORKDIR /home/oqs
19+
20+
# Create a Python 3 virtual environment
21+
RUN python3 -mvenv venv
22+
23+
# Get liboqs-python
24+
RUN git clone --depth 1 --branch main https://github.com/open-quantum-safe/liboqs-python.git
25+
26+
# Install liboqs-python
27+
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
28+
ENV PYTHONPATH=$PYTHONPATH:/home/oqs/liboqs-python
29+
RUN . venv/bin/activate && cd liboqs-python && pip install . && cd $HOME

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018-2022 Open Quantum Safe
3+
Copyright (c) 2018-2023 Open Quantum Safe
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)