-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathpyproject.toml
More file actions
135 lines (124 loc) · 3.35 KB
/
pyproject.toml
File metadata and controls
135 lines (124 loc) · 3.35 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
[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 = {text = "Apache-2.0"}
dynamic = ["version", "dependencies"]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Distributed Computing",
]
[project.urls]
Homepage = "https://docs.openstack.org/tooz"
Repository = "https://opendev.org/openstack/tooz"
[project.entry-points."tooz.backends"]
"etcd" = "tooz.drivers.etcd:EtcdDriver"
"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"
"consul" = "tooz.drivers.consul:ConsulDriver"
"kubernetes" = "tooz.drivers.kubernetes:SherlockDriver"
[project.optional-dependencies]
consul = [
"python-consul2>=0.0.16", # MIT License
]
etcd = [
"requests>=2.10.0", # Apache-2.0
]
etcd3gw = [
"etcd3gw>=2.3.0", # Apache-2.0
]
redis = [
"redis>=4.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 = [
"tooz"
]
[tool.mypy]
python_version = "3.10"
show_column_numbers = true
show_error_context = true
incremental = 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.coordination",
"tooz.drivers.etcd3gw",
"tooz.drivers.ipc",
"tooz.drivers.mysql",
"tooz.drivers.pgsql",
"tooz.hashring",
"tooz.locking",
"tooz.partitioner",
"tooz.utils",
"tooz._retry",
]
disallow_untyped_calls = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = ["tooz.tests.*"]
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_subclassing_any = false
[tool.ruff]
line-length = 79
[tool.ruff.format]
quote-style = "preserve"
docstring-code-format = true
[tool.ruff.lint]
select = ["E4", "E5", "E7", "E9", "F", "G", "LOG", "S", "UP"]
external = ["H"]
ignore = [
# asserts are only used for type narrowing
"S101",
]