forked from ibarrond/funshade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (65 loc) · 2.4 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#===============================================================================
#============================== PROJECT METADATA ===============================
#===============================================================================
[project]
name = "Funshade"
version = "1.0.2"
description = "Function Secret Sharing for Multiparty Computation"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "GNU GPLv3"}
keywords = ["function-secret-sharing" , "FSS", "Multiparty Computation", "MPC", "cython", "cryptography"]
authors = [
{name = "Alberto Ibarrondo", email = "ibarrond@eurecom.fr"},
]
classifiers = [
"Programming Language :: C",
"Programming Language :: Cython",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: Unix",
"Topic :: Security",
"Topic :: Security :: Cryptography",
]
dependencies = [
"numpy>=1.21"
]
# Minimum requirements for the build system to execute.
[build-system]
requires = [
"setuptools<=60.9",
"wheel",
"cython==3.0.0b1",
"numpy>=1.21",
"toml>=0.10"
]
#===============================================================================
#========================= COMPILATION CONFIGURATION ===========================
#===============================================================================
#----------------------------- CYTHON EXTENSIONS -------------------------------
[extensions.config] # Common compilation config for all extensions
include_dirs = ['funshade/c']
define_macros = [
["NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION"],
["__PYX_ENUM_CLASS_DECL", "enum"], # Support enums in cython
]
extra_compile_args = [
{Windows = ["/O2",]},
{Darwin = ["-O3","-msse", "-msse2", "-maes", "-march=native"]},
{Linux = ["-O3","-msse", "-msse2", "-maes", "-march=native"]},
]
extra_link_args = [
{Windows = []},
{Darwin = []},
{Linux = []},
]
# libraries = ['sodium'] # libraries to link with, cpplibraries above are added by default
# List of extensions to compile. Custom compilation config can be defined for each
[extensions.funshade]
fullname='funshade'
sources=['funshade/py/funshade.pyx', 'funshade/c/fss.c', 'funshade/c/aes.c']