-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
124 lines (106 loc) · 3.09 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "H2O.ai", email = "[email protected]"},
]
classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Internet",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Security",
"Topic :: Utilities",
]
dependencies = [
"httpx>=0.16 ; python_version < '3.13'" ,
"httpx>=0.23 ; python_version >= '3.13'" ,
"tomli >= 1.1.0 ; python_version < '3.11'",
]
description = 'H2O Cloud Discovery Python CLient'
keywords = []
license = "Apache-2.0"
name = "h2o-cloud-discovery"
readme = "README.md"
requires-python = ">=3.8"
version = "2.2.1"
[project.urls]
Documentation = "https://github.com/h2oai/cloud-discovery-py#readme"
Issues = "https://github.com/h2oai/cloud-discovery-py/issues"
Source = "https://github.com/h2oai/cloud-discovery-py"
[tool.hatch.build.targets.sdist]
include = ["/src", "/tests", "CHANGELOG.md"]
[tool.hatch.build.targets.wheel]
packages = ["src/h2o_discovery"]
[[tool.hatch.envs.test.matrix]]
httpx = ["httpx0.23", "httpx0.24", "httpx0.25", "httpx0.26", "httpx0.27", "httpx0.28"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
[[tool.hatch.envs.test.matrix]]
httpx = ["httpx0.16", "httpx0.21", "httpx0.22"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.test.overrides]
matrix.httpx.dependencies = [
{value = "httpx==0.16.*", if = ["httpx0.16"]},
{value = "httpx==0.21.*", if = ["httpx0.21"]},
{value = "httpx==0.22.*", if = ["httpx0.22"]},
{value = "httpx==0.23.*", if = ["httpx0.23"]},
{value = "httpx==0.24.*", if = ["httpx0.24"]},
{value = "httpx==0.25.*", if = ["httpx0.25"]},
{value = "httpx==0.26.*", if = ["httpx0.26"]},
{value = "httpx==0.27.*", if = ["httpx0.27"]},
{value = "httpx==0.28.*", if = ["httpx0.28"]},
]
[tool.hatch.envs.test]
dependencies = [
"pytest-asyncio==0.24.0 ; python_version < '3.9'",
"pytest-asyncio==0.25.1 ;python_version >= '3.9'",
"pytest==8.3",
"respx>=0.16",
]
dev-mode = false
[tool.hatch.envs.test.scripts]
pytest = "python -m pytest {args}"
[tool.hatch.envs.devtest]
dev-mode = true
template = "test"
[tool.hatch.envs.lint]
dependencies = [
"mypy~=1.1",
"ruff==0.1.11",
]
[tool.hatch.envs.lint.scripts]
check = [
"ruff format --check .",
"ruff check .",
"mypy src",
]
fix = [
"ruff check --fix .",
"ruff format .",
"check",
]
[tool.hatch.envs.docs]
dependencies = [
"pydoc-markdown~=4.8",
]
[tool.hatch.envs.docs.scripts]
generate = "pydoc-markdown"
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
extend-select = ["I", "B", "A", "ERA"]
line-length = 88 # Same as black.
src = ["src", "test"]
target-version = "py37"
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.ruff.isort]
case-sensitive = false
force-single-line = true
force-sort-within-sections = true
known-first-party = ["h2o_discovery"]
order-by-type = false
relative-imports-order = "closest-to-furthest"
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]