-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
78 lines (74 loc) · 2.39 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
import json
from pathlib import Path
from setuptools import (
find_namespace_packages,
setup, # pyright: ignore[reportUnknownVariableType]
)
# 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",
],
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",
"pydantic>=2.7.0,<3",
"python-dateutil",
"python-dotenv",
"requests",
"rich",
"ruyaml",
"tqdm",
"typing-extensions",
],
extras_require={
"dev": [
"black",
"deepdiff",
"filelock", # for session fixtures due to pytest-xdist
"jsonschema",
"jupyter",
"lxml",
"pdoc",
"json_schema_for_humans",
"pre-commit",
"psutil", # parallel pytest with '-n auto'
"pyright==1.1.378",
"pytest-cov",
"pytest-xdist", # parallel pytest
"pytest",
"python-devtools",
"ruff", # check line length in cases black cannot fix it
]
},
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",
},
)