Skip to content

Commit 937c260

Browse files
authored
SEAL 3.7.2 (#362)
* master -> main * SEAL 3.7.2 * bump version * update SEAL tests * drop python 3.6 * disable HEXL * update tag * update publish workflow * drop test * drop python 3.6 * debug HEXL crash * bump version again
1 parent af35c0f commit 937c260

File tree

10 files changed

+15
-31
lines changed

10 files changed

+15
-31
lines changed

.github/workflows/pythonpublish-linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
strategy:
1010
matrix:
1111
python-version:
12-
- cp36-cp36m
1312
- cp37-cp37m
1413
- cp38-cp38
1514
- cp39-cp39
@@ -18,7 +17,7 @@ jobs:
1817
container: quay.io/pypa/manylinux2014_x86_64
1918

2019
steps:
21-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v2
2221
with:
2322
submodules: true
2423
- name: Prepare ENV

.github/workflows/pythonpublish-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: macos-latest
1010
strategy:
1111
matrix:
12-
python-version: [3.6, 3.7, 3.8, 3.9]
12+
python-version: [3.7, 3.8, 3.9]
1313

1414
steps:
1515
- uses: actions/checkout@v2

.github/workflows/pythonpublish-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: windows-latest
1010
strategy:
1111
matrix:
12-
python-version: [3.6, 3.7, 3.8, 3.9]
12+
python-version: [3.7, 3.8, 3.9]
1313

1414
steps:
1515
- uses: actions/checkout@v2

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ${{ matrix.os }}
3535
strategy:
3636
matrix:
37-
python-version: [3.6, 3.7, 3.8, 3.9]
37+
python-version: [3.7, 3.8, 3.9]
3838
os: [macos-latest, ubuntu-latest, windows-latest]
3939
steps:
4040
- uses: actions/checkout@v2
@@ -86,7 +86,7 @@ jobs:
8686
runs-on: ${{ matrix.os }}
8787
strategy:
8888
matrix:
89-
python-version: [3.6, 3.7, 3.8, 3.9]
89+
python-version: [3.7, 3.8, 3.9]
9090
os: [macos-latest, ubuntu-latest, windows-latest]
9191
steps:
9292
- uses: actions/checkout@v2

cmake/seal.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ include(FetchContent)
22

33
set(SEAL_BUILD_DEPS ON)
44
set(SEAL_USE_MSGSL ON)
5-
set(SEAL_USE_INTEL_HEXL ON)
5+
set(SEAL_USE_INTEL_HEXL OFF)
66

77
FetchContent_Declare(
88
com_microsoft_seal
99
GIT_REPOSITORY https://github.com/microsoft/SEAL
10-
GIT_TAG 6bfac481aae4057ea887d42eb0f24371e9b4c4f9 #v3.7.1
10+
GIT_TAG v3.7.2 #v3.7.2
1111
)
1212
FetchContent_MakeAvailable(com_microsoft_seal)
1313

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def run(self):
4747

4848
def build_extension(self, ext):
4949
extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
50-
hexl = "ON"
50+
hexl = "OFF"
5151
cmake_args = [
5252
"-DSEAL_USE_INTEL_HEXL=" + hexl,
5353
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir,

tenseal/deps.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def tenseal_deps():
2626
http_archive(
2727
name = "com_microsoft_seal",
2828
build_file = "//third_party:seal.BUILD",
29-
strip_prefix = "SEAL-3.7.1",
30-
sha256 = "27446ea4fcea334faabc7439b1e312603ed700e3d26a45ec8408fd1d114374ec",
31-
urls = ["https://github.com/microsoft/SEAL/archive/v3.7.1.tar.gz"],
29+
strip_prefix = "SEAL-3.7.2",
30+
sha256 = "12676de5766b8e2d641d6e45e92114ccdf8debd6f6d44b42a2ecc39a59b0bf13",
31+
urls = ["https://github.com/microsoft/SEAL/archive/v3.7.2.tar.gz"],
3232
)
3333

3434
if "com_xtensorstack_xtensor" not in native.existing_rules():

tenseal/preload.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def tenseal_preload():
4040

4141
if "rules_python" not in native.existing_rules():
4242
http_archive(
43-
name = "rules_python",
44-
sha256 = "b6d46438523a3ec0f3cead544190ee13223a52f6a6765a29eae7b7cc24cc83a0",
45-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz",
43+
name = "rules_python",
44+
url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz",
45+
sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332",
4646
)

tenseal/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3.6"
1+
__version__ = "0.3.8"

tests/python/sealapi/test_util.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,21 +122,6 @@ def test_util_croots():
122122
assert croot.get_root(5) != 0
123123

124124

125-
def test_util_polyarithsmallmod():
126-
assert util.modulo_poly_coeffs([5, 6, 7, 8, 9], 5, sealapi.Modulus(2)) == [1, 0, 1, 0, 1]
127-
assert util.negate_poly_coeffmod([1, 2], 2, sealapi.Modulus(5)) == [4, 3]
128-
assert util.add_poly_coeffmod([1, 2], [1, 2], 2, sealapi.Modulus(5)) == [2, 4]
129-
assert util.sub_poly_coeffmod([1, 2], [1, 2], 2, sealapi.Modulus(5)) == [0, 0]
130-
assert util.multiply_poly_scalar_coeffmod([1, 2], 2, 3, sealapi.Modulus(5)) == [3, 1]
131-
assert util.dyadic_product_coeffmod([5, 7], [2, 3], 2, sealapi.Modulus(5), 4) == [0, 1, 0, 0]
132-
assert util.poly_infty_norm_coeffmod([5, 7], 2, sealapi.Modulus(5)) == 2
133-
assert util.negacyclic_shift_poly_coeffmod([4, 3], 2, 1, sealapi.Modulus(5)) == [2, 4]
134-
assert util.negacyclic_multiply_poly_mono_coeffmod([4, 3], 2, 2, 1, sealapi.Modulus(5)) == [
135-
4,
136-
3,
137-
]
138-
139-
140125
def test_util_polycore():
141126
assert util.poly_to_hex_string([1, 2], 2, 1) == "2x^1 + 1"
142127
assert util.poly_to_dec_string([1, 2], 2, 1) == "2x^1 + 1"

0 commit comments

Comments
 (0)