-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
155 lines (133 loc) · 6.68 KB
/
pyproject.toml
File metadata and controls
155 lines (133 loc) · 6.68 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "omero-ruletagger"
dynamic = ["version"]
description = 'Define rules that create tags in an omero server.'
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = []
authors = [
{ name = "barrettMCW", email = "mjbarrett@mcw.edu" },
]
classifiers = [
"Programming Language :: Python",
"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",
]
dependencies = [
"pyyaml",
"inflect",
"omero-py"
]
[project.urls]
Documentation = "https://github.com/LavLabInfrastructure/omero-ruletagger#readme"
Issues = "https://github.com/LavLabInfrastructure/omero-ruletagger/issues"
Source = "https://github.com/LavLabInfrastructure/omero-ruletagger"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.version]
path = "src/omero_ruletagger/__about__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/omero_ruletagger"]
[tool.hatch.env]
requires = [
"hatch-pip-compile",
"uv"
]
[tool.hatch.envs.default]
installer = "uv"
type = "pip-compile"
pip-compile-hashes = true
pip-compile-resolver = "uv"
pip-compile-installer = "uv"
dependencies = [
# Linux x86_64
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp38-cp38-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' and python_version == '3.8'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp39-cp39-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' and python_version == '3.9'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp310-cp310-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' and python_version == '3.10'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp311-cp311-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' and python_version == '3.11'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20240202/zeroc_ice-3.6.5-cp312-cp312-manylinux_2_28_x86_64.whl ; sys_platform == 'linux' and platform_machine == 'x86_64' and python_version == '3.12'",
# Linux aarch64
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-aarch64/releases/download/20240620/zeroc_ice-3.6.5-cp38-cp38-manylinux_2_28_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' and python_version == '3.8'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-aarch64/releases/download/20240620/zeroc_ice-3.6.5-cp39-cp39-manylinux_2_28_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' and python_version == '3.9'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-aarch64/releases/download/20240620/zeroc_ice-3.6.5-cp310-cp310-manylinux_2_28_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' and python_version == '3.10'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-aarch64/releases/download/20240620/zeroc_ice-3.6.5-cp311-cp311-manylinux_2_28_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' and python_version == '3.11'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-linux-aarch64/releases/download/20240620/zeroc_ice-3.6.5-cp312-cp312-manylinux_2_28_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64' and python_version == '3.12'",
# macOS x86_64 (older py38/py39 wheels)
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-macos-x86_64/releases/download/20231130/zeroc_ice-3.6.5-cp38-cp38-macosx_11_0_x86_64.whl ; sys_platform == 'darwin' and platform_machine == 'x86_64' and python_version == '3.8'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-macos-x86_64/releases/download/20231130/zeroc_ice-3.6.5-cp39-cp39-macosx_11_0_x86_64.whl ; sys_platform == 'darwin' and platform_machine == 'x86_64' and python_version == '3.9'",
# macOS universal2 (py310+ support both x86_64 and arm64)
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-macos-universal2/releases/download/20240131/zeroc_ice-3.6.5-cp310-cp310-macosx_11_0_universal2.whl ; sys_platform == 'darwin' and python_version == '3.10'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-macos-universal2/releases/download/20240131/zeroc_ice-3.6.5-cp311-cp311-macosx_11_0_universal2.whl ; sys_platform == 'darwin' and python_version == '3.11'",
"zeroc-ice @ https://github.com/glencoesoftware/zeroc-ice-py-macos-universal2/releases/download/20240131/zeroc_ice-3.6.5-cp312-cp312-macosx_11_0_universal2.whl ; sys_platform == 'darwin' and python_version == '3.12'",
]
[tool.hatch.envs.default.scripts]
it = "hatch build && chmod -R 777 dist/*"
build = "hatch build && chmod -R 777 dist/*"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"coverage[toml]>=6.2"
]
[tool.hatch.envs.test.scripts]
it = "pytest --cov=src --cov-report=term-missing {args:tests}"
test = "pytest {args:tests}"
cov = "pytest --cov=src --cov-report=term-missing {args:tests}"
[tool.hatch.envs.lint]
dependencies = [
"pytest",
"pylint",
"black"
]
[tool.hatch.envs.lint.scripts]
it = "black src tests && pylint src tests"
lint = "pylint src tests"
format = "black src tests"
check = "black src tests --check"
[tool.hatch.envs.types]
dependencies = [
"mypy>=1.0.0",
"types-pyyaml",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/omero_ruletagger tests}"
it = "mypy --install-types --non-interactive {args:src/omero_ruletagger tests}"
[tool.hatch.envs.docs]
dependencies = [
"mkdocs",
"mkdocstrings",
"mkdocs-material",
"mkdocs-autorefs",
"mkdocs-minify-plugin",
"mkdocs-material-extensions",
"mkdocs-git-revision-date-localized-plugin"
]
[tool.hatch.envs.docs.scripts]
it = "mkdocs build"
build-docs = "mkdocs build"
serve-docs = "mkdocs serve"
[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.coverage.run]
source_pkgs = ["src/omero_ruletagger", "tests"]
branch = true
parallel = true
omit = [
"src/omero_ruletagger/__about__.py",
]
[tool.coverage.paths]
omero_ruletagger = ["src/omero_ruletagger", "*/omero-ruletagger/src/omero_ruletagger"]
tests = ["tests", "*/omero-ruletagger/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]