Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (119 loc) · 3.21 KB
/
Copy pathpyproject.toml
File metadata and controls
132 lines (119 loc) · 3.21 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
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "tooz"
description = "Coordination library for distributed systems."
authors = [
{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
readme = {file = "README.rst", content-type = "text/x-rst"}
license = "Apache-2.0"
dynamic = ["version", "dependencies"]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: System :: Distributed Computing",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://docs.openstack.org/tooz"
Repository = "https://opendev.org/openstack/tooz"
[project.entry-points."tooz.backends"]
"etcd3+http" = "tooz.drivers.etcd3gw:Etcd3Driver"
"etcd3+https" = "tooz.drivers.etcd3gw:Etcd3Driver"
"kazoo" = "tooz.drivers.zookeeper:KazooDriver"
"memcached" = "tooz.drivers.memcached:MemcachedDriver"
"ipc" = "tooz.drivers.ipc:IPCDriver"
"redis" = "tooz.drivers.redis:RedisDriver"
"postgresql" = "tooz.drivers.pgsql:PostgresDriver"
"mysql" = "tooz.drivers.mysql:MySQLDriver"
"file" = "tooz.drivers.file:FileDriver"
"zookeeper" = "tooz.drivers.zookeeper:KazooDriver"
"kubernetes" = "tooz.drivers.kubernetes:SherlockDriver"
[project.optional-dependencies]
etcd3gw = [
"etcd3gw>=2.3.0", # Apache-2.0
]
redis = [
"redis>=6.0.0", # MIT
]
postgresql = [
"psycopg2>=2.5", # LGPL/ZPL
]
mysql = [
"PyMySQL>=0.6.2", # MIT License
]
zookeeper = [
"kazoo>=2.6", # Apache-2.0
]
memcached = [
"pymemcache>=1.2.9", # Apache 2.0 License
]
ipc = [
"sysv-ipc>=0.6.8", # BSD License
]
kubernetes = [
"kubernetes>=2.8.1", # Apache-2.0
"sherlock>=0.4.1", # MIT License
]
[tool.setuptools.packages.find]
include = ["tooz*"]
[tool.coverage.run]
source = [
"tooz"
]
branch = true
parallel = true
omit = [
"tooz/tests/*"
]
[tool.coverage.report]
ignore_errors = true
show_missing = true
[tool.mypy]
python_version = "3.11"
show_column_numbers = true
show_error_context = true
strict = true
disable_error_code = ["import-untyped"]
exclude = "(?x)(doc | examples | releasenotes | tools)"
# Vendored stubs for packages pending upstream type annotation merges.
# Remove stubs/sysv_ipc when [1] has merged.
#
# [1] https://github.com/osvenskan/sysv_ipc/pull/78
mypy_path = ["stubs"]
[[tool.mypy.overrides]]
module = ["tooz.tests.*"]
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_subclassing_any = false
[[tool.mypy.overrides]]
module = [
"tooz.drivers.consul",
"tooz.drivers.etcd",
"tooz.tests.drivers.test_etcd",
]
ignore_errors = true
[tool.ruff]
line-length = 79
[tool.ruff.format]
quote-style = "preserve"
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "G", "LOG", "RUF", "S", "UP", "W"]
external = ["H"]
ignore = [
"S101", # asserts are only used for type narrowing
"RUF012", # low value
]