-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
50 lines (46 loc) · 1.36 KB
/
setup.py
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
#!/usr/bin/env python
from setuptools import setup
from setuptools_rust import Binding, RustExtension
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="surrealml",
author="Maxwell Flitton",
author_email="[email protected]",
description="SurrealMl is a file format for storing machine learning models across python (all versions) and rust.",
long_description=long_description,
long_description_content_type="text/markdown",
version="0.0.1",
rust_extensions=[RustExtension("surrealml.rust_surrealml", binding=Binding.PyO3)],
packages=[
"surrealml",
"surrealml.engine",
"surrealml.model_templates",
"surrealml.model_templates.datasets",
"surrealml.model_templates.sklearn",
"surrealml.model_templates.torch",
"surrealml.model_templates.tensorflow",
],
package_data={
"surrealml": ["binaries/*"],
},
# rust extensions are not zip safe, just like C-extensions.
zip_safe=False,
include_package_data=True,
requirements=[
"numpy==1.26.3",
],
extras_require={
"sklearn": [
"skl2onnx==1.16.0",
"scikit-learn==1.4.0"
],
"torch": [
"torch==2.1.2"
],
"tensorflow": [
"tf2onnx==1.16.1",
"tensorflow==2.16.1"
]
}
)