-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
76 lines (72 loc) · 2.41 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
import json
from pathlib import Path
from setuptools import find_namespace_packages, setup
# Get the long description from the README file
ROOT_DIR = Path(__file__).parent.resolve()
long_description = (ROOT_DIR / "README.md").read_text(encoding="utf-8")
VERSION_FILE = ROOT_DIR / "bioimageio" / "core" / "VERSION"
VERSION = json.loads(VERSION_FILE.read_text())["version"]
_ = setup(
name="bioimageio.core",
version=VERSION,
description="Python functionality for the bioimage model zoo",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/bioimage-io/core-bioimage-io-python",
author="Bioimage Team",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
packages=find_namespace_packages(exclude=["tests"]),
install_requires=[
"bioimageio.spec ==0.5.3.3",
"imageio>=2.10",
"loguru",
"numpy",
"pydantic-settings >=2.3",
"pydantic",
"python-dotenv",
"requests",
"ruyaml",
"tqdm",
"typing-extensions",
"xarray",
],
include_package_data=True,
extras_require={
"pytorch": ["torch>=1.6", "torchvision", "keras>=3.0"],
"tensorflow": ["tensorflow", "keras>=2.15"],
"onnx": ["onnxruntime"],
"dev": [
"black",
# "crick", # currently requires python<=3.9
"filelock",
"jupyter",
"jupyter-black",
"matplotlib",
"keras>=3.0",
"onnxruntime",
"packaging>=17.0",
"pre-commit",
"pdoc",
"psutil", # parallel pytest with 'pytest -n auto'
"pyright",
"pytest-cov",
"pytest-xdist", # parallel pytest
"pytest",
"torch>=1.6",
"torchvision",
],
},
project_urls={
"Bug Reports": "https://github.com/bioimage-io/core-bioimage-io-python/issues",
"Source": "https://github.com/bioimage-io/core-bioimage-io-python",
},
entry_points={"console_scripts": ["bioimageio = bioimageio.core.__main__:main"]},
)