Skip to content

Commit 1d53f7e

Browse files
Fix various build issues (#261)
* Bump numpy/setuptools dependencies for Python 3.12 * Fix scheme_t -> Scheme_t in PyPoly.pyx * update SEAL to most recent version Modern versions of cmake commonly installed on, e.g., recent Ubuntu releases, no longer support the old version of cmake required by some of the previous SEAL version's dependencies. By updating to the most recent SEAL version, we resolve this (and get some other bugfixes and improvements) * Increase Pyfhel version to 3.4.3
1 parent d7ee84c commit 1d53f7e

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

Pyfhel/PyPoly.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ cdef class PyPoly:
8383

8484
@_scheme.setter
8585
def _scheme(self, new_scheme):
86-
if not isinstance(new_scheme, scheme_t):
86+
if not isinstance(new_scheme, Scheme_t):
8787
raise TypeError("<Pyfhel ERROR> Scheme type of PyPoly must be scheme_t")
8888
self._scheme = new_scheme
8989

Pyfhel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
__name__ = "Pyfhel"
88
__author__ = "Alberto Ibarrondo"
99

10-
__version__ = "3.4.2"
10+
__version__ = "3.4.3"

Pyfhel/backend/SEAL

Submodule SEAL updated 69 files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Python library for Addition, Subtraction, Multiplication and Scalar Product over
1414
|--------------------------------------------|--------------------------------------------------------------------------------------------|
1515
| :flags: **Language** | Python (3.7+), with Cython and C++ (:warning: _requires a [C++17 compiler][3]_ :warning:.) |
1616
| :computer: **OS** | Linux, Windows & MacOS. |
17-
| :1234: **Version** | 3.4.2 (stable) |
17+
| :1234: **Version** | 3.4.3 (stable) |
1818
| :books: **Docs** | In [readthedocs][1]! |
1919
| :pencil2: **Demos/Examples** | [In the docs][4] with the outputs, sources in the [`examples`][2] folder. |
2020
| :electric_plug: **Backends** | [SEAL][5], [OpenFHE (WIP)][6]. Shipped alongside Pyfhel. |

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Pyfhel's core metadata
1010
[project]
1111
name = "Pyfhel"
12-
version = "3.4.2"
12+
version = "3.4.3"
1313
description = "Python for Homomorphic Encryption Libraries"
1414
readme = "README.md"
1515
requires-python = ">=3.7"
@@ -27,6 +27,8 @@ classifiers = [
2727
"Programming Language :: Python :: 3.8",
2828
"Programming Language :: Python :: 3.9",
2929
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
3032
"Programming Language :: Python :: Implementation :: CPython",
3133
"Development Status :: 5 - Production/Stable",
3234
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
@@ -38,7 +40,7 @@ classifiers = [
3840
]
3941

4042
dependencies = [
41-
"numpy>=1.21"
43+
"numpy>=1.26"
4244
]
4345

4446
[project.optional-dependencies]
@@ -57,10 +59,10 @@ repository = "https://github.com/ibarrond/github"
5759
# Minimum requirements for the build system to execute.
5860
[build-system]
5961
requires = [
60-
"setuptools<=60.9",
62+
"setuptools>=64",
6163
"wheel",
6264
"cython>=3.0.0",
63-
"numpy>=1.21",
65+
"numpy>=1.26",
6466
"cmake>=3.15",
6567
"toml>=0.10"
6668
]

0 commit comments

Comments
 (0)