-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathpyproject.toml
146 lines (133 loc) · 3.99 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
[build-system]
requires = ["poetry_core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "fakeredis"
packages = [
{ include = "fakeredis" },
{ include = "LICENSE", to = "fakeredis" },
]
version = "2.27.0"
description = "Python implementation of redis API, can be used for testing purposes."
readme = "README.md"
keywords = ["redis", "RedisJson", "RedisBloom", "tests", "redis-stack"]
authors = [
"Daniel Moran <[email protected]>",
"Bruce Merry <[email protected]>",
"James Saryerwinnie <[email protected]>",
]
maintainers = [
"Daniel Moran <[email protected]>",
]
license = "BSD-3-Clause"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Libraries :: Python Modules',
]
homepage = "https://github.com/cunla/fakeredis-py"
repository = "https://github.com/cunla/fakeredis-py"
documentation = "https://fakeredis.readthedocs.io/"
include = [
{ path = "test", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.7"
redis = [{ version = ">=4", python = "<3.8" }, { version = ">=4.3", python = ">3.8" }]
sortedcontainers = "^2"
typing-extensions = { version = "^4.7", python = "<3.11" }
lupa = { version = ">=2.1,<3.0", optional = true }
jsonpath-ng = { version = "^1.6", optional = true }
pyprobables = { version = "^0.6", optional = true }
[tool.poetry.extras]
lua = ["lupa"]
json = ["jsonpath-ng"]
bf = ["pyprobables"]
cf = ["pyprobables"]
probabilistic = ["pyprobables"]
[tool.poetry.group.dev.dependencies]
black = { version = "^24.4.2", python = "^3.9" }
flake8 = { version = "^7", python = "^3.9" }
flake8-pyproject = { version = "^1", python = "^3.9" }
mypy = { version = "^1.10", python = "^3.9" }
[tool.poetry.group.test.dependencies]
coverage = { version = "^7", python = "^3.9" }
pytest = { version = "^8.3", python = "^3.9" }
hypothesis = { version = "^6.111", python = "^3.9" }
pytest-timeout = { version = "^2.3.1", python = "^3.9" }
pytest-asyncio = { version = "^0.24", python = "^3.9" }
pytest-cov = { version = "^6.0", python = "^3.9" }
pytest-mock = { version = "^3.14", python = "^3.9" }
pytest-html = { version = "^4.1", python = "^3.9" }
[tool.poetry.group.docs.dependencies]
python-dotenv = { version = "^1", python = "^3.9" }
pygithub = { version = "^2.3", python = "^3.9" }
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/cunla/fakeredis-py/issues"
"Funding" = "https://github.com/sponsors/cunla"
"Documentation" = "https://fakeredis.moransoftware.ca/"
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"fake: run tests only with fake redis",
"real: run tests with a locally running real Redis server",
"disconnected",
"min_server",
"max_server",
"decode_responses",
"unsupported_server_types",
]
asyncio_mode = "strict"
generate_report_on_test = true
[tool.mypy]
packages = ['fakeredis', ]
strict = true
follow_imports = "silent"
ignore_missing_imports = true
scripts_are_modules = true
check_untyped_defs = true
[tool.flake8]
max-line-length = 120
exclude = [
'.venv',
'.github',
'__pycache__',
]
ignore = ["E203", "E501", "W503"]
[tool.black]
color = true
line-length = 120
target-version = ['py310']
include = [
"fakeredis",
"test",
]
exclude = '''
(
/(
| \.git # root of the project
| \.github
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| .*/\.hypothesis/.*
| .*/__pycache__/.*
| /fakeredis/commands.json
)
'''