-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
150 lines (133 loc) · 4.25 KB
/
pyproject.toml
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
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "oteapi-dlite"
authors = [
{name = "SINTEF", email = "[email protected]"},
]
description = "DLite plugin for Open Translation Environment (OTE) API."
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
]
keywords = ["OTE", "OTEAPI", "LITE", "OTEAPI-DLITE"]
requires-python = ">=3.9"
dynamic = ["version"]
dependencies = [
# Core dependencies
"DLite-Python>=0.4.5,<1",
"numpy>=1.21,<3",
"oteapi-core>=0.7.0.dev3,<1",
"pydantic>=2.1,<3",
"pydantic-settings>=2.0,<3",
"typing-extensions>=4.8,<5; python_version<'3.10'",
"Pillow>=9.0.1,<12",
"tripper>=0.3.4, <1",
]
[project.optional-dependencies]
docs = [
"mike~=2.1",
"mkdocs~=1.6",
"mkdocs-autorefs~=1.2",
"mkdocs-awesome-pages-plugin~=2.9",
"mkdocs-material~=9.5",
"mkdocstrings[python]~=0.27.0",
]
testing = [
"PyYAML>=5.4.1,<7",
"otelib>=0.5.0.dev1,<1",
"rdflib>=5.0.0,<8",
"pytest==8.3.3",
"pytest-cov==6.0.0",
]
dev = [
"oteapi-dlite[docs,testing]",
"pre-commit==4.0.1",
]
[project.urls]
Home = "https://github.com/EMMC-ASBL/oteapi-dlite"
Documentation = "https://EMMC-ASBL.github.io/oteapi-dlite"
Source = "https://github.com/EMMC-ASBL/oteapi-dlite"
"Issue Tracker" = "https://github.com/EMMC-ASBL/oteapi-dlite/issues"
Changelog = "https://github.com/EMMC-ASBL/oteapi-dlite/blob/master/CHANGELOG.md"
Package = "https://pypi.org/project/oteapi-dlite"
# Entry points, i.e., strategy registration
[project.entry-points."oteapi.filter"]
# This is deprecated, use application/vnd.dlite-filter instead
"oteapi_dlite.dlite/filter" = "oteapi_dlite.strategies.filter:DLiteFilterStrategy"
"oteapi_dlite.application/vnd.dlite-filter" = "oteapi_dlite.strategies.filter:DLiteFilterStrategy"
"oteapi_dlite.application/vnd.dlite-settings" = "oteapi_dlite.strategies.settings:SettingsStrategy"
[project.entry-points."oteapi.mapping"]
"oteapi_dlite.mappings" = "oteapi_dlite.strategies.mapping:DLiteMappingStrategy"
[project.entry-points."oteapi.parse"]
"oteapi_dlite.application/vnd.dlite-parse" = "oteapi_dlite.strategies.parse:DLiteParseStrategy"
"oteapi_dlite.application/vnd.dlite-xlsx" = "oteapi_dlite.strategies.parse_excel:DLiteExcelStrategy"
"oteapi_dlite.image/vnd.dlite-image" = "oteapi_dlite.strategies.parse_image:DLiteImageParseStrategy"
[project.entry-points."oteapi.function"]
"oteapi_dlite.application/vnd.dlite-generate" = "oteapi_dlite.strategies.generate:DLiteGenerateStrategy"
"oteapi_dlite.application/vnd.dlite-convert" = "oteapi_dlite.strategies.convert:DLiteConvertStrategy"
[tool.flit.module]
name = "oteapi_dlite"
[tool.flit.sdist]
exclude = [
".github/",
"tests/",
".gitignore",
".pre-commit-config.yaml",
".codecov.yml",
]
[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
scripts_are_modules = true
warn_unused_configs = true
show_error_codes = true
allow_redefinition = true
plugins = ["pydantic.mypy"]
[tool.pytest.ini_options]
minversion = "8.3"
addopts = "-rs --cov=oteapi_dlite --cov-report=term-missing:skip-covered --no-cov-on-fail"
filterwarnings = [
# Treat all warnings as errors
"error",
# Ignore Userwarning from tripper cache in Windows
"ignore:.*Cannot access cache file.*:UserWarning",
]
[tool.black]
line-length = 80
[tool.ruff]
line-length = 80
[tool.ruff.lint]
extend-select = [
"E", # pycodestyle
"F", # pyflakes
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"YTT", # flake8-2020
"EXE", # flake8-executable
"PYI", # flake8-pyi
]
ignore = [
"PLR", # Design related pylint codes
]
isort.required-imports = ["from __future__ import annotations"]