diff --git a/.github/workflows/pythonpublish-linux.yml b/.github/workflows/pythonpublish-linux.yml index eaab8583..ebb3c91d 100644 --- a/.github/workflows/pythonpublish-linux.yml +++ b/.github/workflows/pythonpublish-linux.yml @@ -9,7 +9,6 @@ jobs: strategy: matrix: python-version: - - cp36-cp36m - cp37-cp37m - cp38-cp38 - cp39-cp39 @@ -18,7 +17,7 @@ jobs: container: quay.io/pypa/manylinux2014_x86_64 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: submodules: true - name: Prepare ENV diff --git a/.github/workflows/pythonpublish-macos.yml b/.github/workflows/pythonpublish-macos.yml index 568cf22b..05fbb3c1 100644 --- a/.github/workflows/pythonpublish-macos.yml +++ b/.github/workflows/pythonpublish-macos.yml @@ -9,7 +9,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/pythonpublish-windows.yml b/.github/workflows/pythonpublish-windows.yml index 7be3fac7..cc262394 100644 --- a/.github/workflows/pythonpublish-windows.yml +++ b/.github/workflows/pythonpublish-windows.yml @@ -9,7 +9,7 @@ jobs: runs-on: windows-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6d983bda..95d66c73 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9] os: [macos-latest, ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 @@ -86,7 +86,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: [3.7, 3.8, 3.9] os: [macos-latest, ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 diff --git a/cmake/seal.cmake b/cmake/seal.cmake index 3b91f6dc..ba925c61 100644 --- a/cmake/seal.cmake +++ b/cmake/seal.cmake @@ -2,12 +2,12 @@ include(FetchContent) set(SEAL_BUILD_DEPS ON) set(SEAL_USE_MSGSL ON) -set(SEAL_USE_INTEL_HEXL ON) +set(SEAL_USE_INTEL_HEXL OFF) FetchContent_Declare( com_microsoft_seal GIT_REPOSITORY https://github.com/microsoft/SEAL - GIT_TAG 6bfac481aae4057ea887d42eb0f24371e9b4c4f9 #v3.7.1 + GIT_TAG v3.7.2 #v3.7.2 ) FetchContent_MakeAvailable(com_microsoft_seal) diff --git a/setup.py b/setup.py index 5ff5a3b3..3153ad77 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ def run(self): def build_extension(self, ext): extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name))) - hexl = "ON" + hexl = "OFF" cmake_args = [ "-DSEAL_USE_INTEL_HEXL=" + hexl, "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=" + extdir, diff --git a/tenseal/deps.bzl b/tenseal/deps.bzl index c780c017..a87c8728 100644 --- a/tenseal/deps.bzl +++ b/tenseal/deps.bzl @@ -26,9 +26,9 @@ def tenseal_deps(): http_archive( name = "com_microsoft_seal", build_file = "//third_party:seal.BUILD", - strip_prefix = "SEAL-3.7.1", - sha256 = "27446ea4fcea334faabc7439b1e312603ed700e3d26a45ec8408fd1d114374ec", - urls = ["https://github.com/microsoft/SEAL/archive/v3.7.1.tar.gz"], + strip_prefix = "SEAL-3.7.2", + sha256 = "12676de5766b8e2d641d6e45e92114ccdf8debd6f6d44b42a2ecc39a59b0bf13", + urls = ["https://github.com/microsoft/SEAL/archive/v3.7.2.tar.gz"], ) if "com_xtensorstack_xtensor" not in native.existing_rules(): diff --git a/tenseal/preload.bzl b/tenseal/preload.bzl index 37dca895..e350fb08 100644 --- a/tenseal/preload.bzl +++ b/tenseal/preload.bzl @@ -40,7 +40,7 @@ def tenseal_preload(): if "rules_python" not in native.existing_rules(): http_archive( - name = "rules_python", - sha256 = "b6d46438523a3ec0f3cead544190ee13223a52f6a6765a29eae7b7cc24cc83a0", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz", + name = "rules_python", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", + sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", ) diff --git a/tenseal/version.py b/tenseal/version.py index d7b30e12..4ad67eb7 100644 --- a/tenseal/version.py +++ b/tenseal/version.py @@ -1 +1 @@ -__version__ = "0.3.6" +__version__ = "0.3.8" diff --git a/tests/python/sealapi/test_util.py b/tests/python/sealapi/test_util.py index e785d72d..882640cc 100644 --- a/tests/python/sealapi/test_util.py +++ b/tests/python/sealapi/test_util.py @@ -122,21 +122,6 @@ def test_util_croots(): assert croot.get_root(5) != 0 -def test_util_polyarithsmallmod(): - assert util.modulo_poly_coeffs([5, 6, 7, 8, 9], 5, sealapi.Modulus(2)) == [1, 0, 1, 0, 1] - assert util.negate_poly_coeffmod([1, 2], 2, sealapi.Modulus(5)) == [4, 3] - assert util.add_poly_coeffmod([1, 2], [1, 2], 2, sealapi.Modulus(5)) == [2, 4] - assert util.sub_poly_coeffmod([1, 2], [1, 2], 2, sealapi.Modulus(5)) == [0, 0] - assert util.multiply_poly_scalar_coeffmod([1, 2], 2, 3, sealapi.Modulus(5)) == [3, 1] - assert util.dyadic_product_coeffmod([5, 7], [2, 3], 2, sealapi.Modulus(5), 4) == [0, 1, 0, 0] - assert util.poly_infty_norm_coeffmod([5, 7], 2, sealapi.Modulus(5)) == 2 - assert util.negacyclic_shift_poly_coeffmod([4, 3], 2, 1, sealapi.Modulus(5)) == [2, 4] - assert util.negacyclic_multiply_poly_mono_coeffmod([4, 3], 2, 2, 1, sealapi.Modulus(5)) == [ - 4, - 3, - ] - - def test_util_polycore(): assert util.poly_to_hex_string([1, 2], 2, 1) == "2x^1 + 1" assert util.poly_to_dec_string([1, 2], 2, 1) == "2x^1 + 1"