-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (107 loc) · 2.71 KB
/
Copy pathpyproject.toml
File metadata and controls
124 lines (107 loc) · 2.71 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
[build-system]
# `uv_build` backend doesn't support build hooks yet https://github.com/astral-sh/uv/issues/14561
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "openfeature-provider-flagd"
version = "0.4.0"
description = "OpenFeature provider for the flagd flag evaluation engine"
readme = "README.md"
authors = [{ name = "OpenFeature", email = "openfeature-core@groups.io" }]
license = "Apache-2.0"
license-files = ["LICENSE"]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
keywords = []
dependencies = [
"openfeature-sdk>=0.8.2",
"openfeature-flagd-core",
"grpcio>=1.80.0",
"protobuf>=6.30.0,<7.0.0",
"pyyaml>=6.0.1",
"cachebox>=5.1.0,<6.0.0",
]
requires-python = ">=3.10"
[project.urls]
Homepage = "https://github.com/open-feature/python-sdk-contrib"
[dependency-groups]
dev = [
"asserts>=0.13.0,<0.14.0",
"coverage[toml]>=7.10.0,<8.0.0",
"grpcio-health-checking>=1.80.0,<2.0.0",
"mypy>=1.18.0,<2.0.0",
"poethepoet>=0.37.0",
"pytest>=9.0.0,<10.0.0",
"pytest-bdd>=8.1.0,<9.0.0",
"testcontainers>=4.12.0,<5.0.0",
"types-grpcio>=1.0.0,<2.0.0",
"types-protobuf>=6.30.0,<7.0.0",
"types-pyyaml>=6.0.0,<7.0.0",
]
[tool.hatch.build.hooks.protobuf]
generate_pyi = false
dependencies = [
"protobuf~=6.0",
"hatch-protobuf",
"mypy-protobuf~=3.0",
]
proto_paths = [
".",
]
output_path = "src/"
[[tool.hatch.build.hooks.protobuf.generators]]
name = "mypy"
outputs = ["{proto_path}/{proto_name}_pb2.pyi"]
[[tool.hatch.build.hooks.protobuf.generators]]
name = "mypy_grpc"
outputs = ["{proto_path}/{proto_name}_pb2_grpc.pyi"]
[tool.hatch.build.targets.sdist]
exclude = [
".gitignore",
"/openfeature",
]
[tool.hatch.build.targets.wheel]
packages = ["src/openfeature"]
[tool.coverage.run]
omit = [
# exclude generated files
"src/openfeature/schemas/*",
"tests/**",
]
[tool.mypy]
mypy_path = "src"
files = "src"
python_version = "3.10" # should be identical to the minimum supported version
namespace_packages = true
explicit_package_bases = true
local_partial_types = true # will become the new default from version 2
allow_redefinition_new = true # will become the new default from version 2
fixed_format_cache = true # new caching mechanism
pretty = true
strict = true
disallow_any_generics = false
[[tool.mypy.overrides]]
module = [
"json_logic.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"openfeature.schemas.*"
]
warn_unused_ignores = false
[tool.uv.sources]
openfeature-flagd-core = { workspace = true }
[tool.pytest]
strict = true
[tool.poe.tasks]
test = "pytest tests"
test-cov = "coverage run -m pytest tests"
cov-report = "coverage xml"
cov = [
"test-cov",
"cov-report"
]
mypy = "mypy"