-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
83 lines (73 loc) · 2.71 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import os
from importlib.util import module_from_spec, spec_from_file_location
from setuptools import find_packages, setup
_PATH_ROOT = os.path.dirname(__file__)
def _load_py_module(file_name: str, pkg="fluidml"):
spec = spec_from_file_location(os.path.join(pkg, file_name), os.path.join(_PATH_ROOT, pkg, file_name))
py = module_from_spec(spec)
spec.loader.exec_module(py)
return py
about = _load_py_module("__about__.py")
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
test_deps = ["pytest>=7.0.0", "pytest-cov", "black>=22.6", "pre-commit>=2.17.0"]
setup(
name="fluidml",
version=about.__version__,
description=about.__docs__,
long_description=long_description,
long_description_content_type="text/markdown",
author=about.__author__,
author_email=about.__author_email__,
url=about.__homepage__,
download_url=about.__homepage__,
license=about.__license__,
copyright=about.__copyright__,
keywords=["pipelines", "machine-learning", "parallel", "deep-learning"],
packages=find_packages(),
python_requires=">=3.7.0",
package_data={"": ["*.txt"]},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: IPython",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Typing :: Typed",
],
install_requires=[
"bokeh>=2.4.3", # enables interactive graph rendering in jupyter
"grandalf>=0.7", # for console graph visualization
"metadict>=0.1.3", # enables attribute access for dicts (converted to MetaDict objects)
"networkx>=2.5", # creation of task graph
"pydantic>=2.0", # for easy data model serialization and loading
"rich>=9.13.0", # beautiful error traceback printing and logging
"tblib>=1.7.0", # enables sending tracebacks through multiprocessing queue
],
extras_require={
"examples": [
"datasets",
"flair",
"jupyterlab",
"numpy",
"pyyaml",
"requests",
"scikit-learn",
"tokenizers>=0.10.1",
"torchtext>=0.8.1",
"torch",
"tqdm",
],
"mongo-store": ["mongoengine>=0.27.0"],
"tests": test_deps,
},
tests_require=test_deps,
)