-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
81 lines (78 loc) · 2.5 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
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" / "spec" / "VERSION"
VERSION = json.loads(VERSION_FILE.read_text(encoding="utf-8"))["version"]
_ = setup(
name="bioimageio.spec",
version=VERSION,
description="Parser and validator library for bioimage.io specifications",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/bioimage-io/spec-bioimage-io",
author="bioimage.io 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",
"Programming Language :: Python :: 3.13",
],
packages=find_namespace_packages(exclude=["tests"]), # Required
install_requires=[
"annotated-types>=0.5.0,<1",
"email_validator",
"imageio",
"loguru",
"numpy>=1.21",
"packaging>=17.0",
"pooch>=1.5,<2",
"pydantic-settings>=2.5,<3",
"pydantic>=2.7.0,<2.10",
"python-dateutil",
"requests",
"rich",
"ruyaml",
"tifffile>=2020.7.4",
"tqdm",
"typing-extensions",
"zipp",
],
extras_require={
"tests": (
test_extras := [
"deepdiff",
"filelock", # for session fixtures due to pytest-xdist
"lxml",
"psutil", # parallel pytest with '-n auto'
"pytest-cov",
"pytest-xdist", # parallel pytest
"pytest",
]
),
"dev": test_extras
+ [
"black",
# "json_schema_for_humans; python_version < 3.13",
"jsonschema",
"jupyter-black",
"jupyter",
"pdoc",
"pre-commit",
"pyright==1.1.388",
"ruff",
],
},
scripts=[],
include_package_data=True,
project_urls={
"Bug Reports": "https://github.com/bioimage-io/spec-bioimage-io/issues",
"Source": "https://github.com/bioimage-io/spec-bioimage-io",
},
)