-
-
Notifications
You must be signed in to change notification settings - Fork 450
Expand file tree
/
Copy pathsetup.cfg
More file actions
162 lines (144 loc) · 3.52 KB
/
setup.cfg
File metadata and controls
162 lines (144 loc) · 3.52 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[metadata]
name = django-redis
version = attr: django_redis.__version__
url = https://github.com/jazzband/django-redis
author = Andrei Antoukh
author_email = [email protected]
description = Full featured redis cache backend for Django.
long_description = file: README.rst
long_description_content_type = text/x-rst
license = BSD-3-Clause
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 4.2
Framework :: Django :: 5.1
Framework :: Django :: 5.2
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
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
Topic :: Utilities
[options]
python_requires = >=3.9
packages =
django_redis
django_redis.client
django_redis.client.mixins
django_redis.serializers
django_redis.compressors
install_requires =
Django>=4.2,<5.3,!=5.0.*
redis>=4.0.2
[options.extras_require]
hiredis = redis[hiredis]>=4.0.2
[coverage:run]
omit =
tests/*,
[coverage:report]
precision = 1
skip_covered = true
[tox:tox]
minversion = 3.15.0
envlist =
ruff
mypy
# tests against released versions
py39-dj{42}-redislatest
py{310,311,312}-dj{42,50,51,52}-redislatest
py313-dj{51,52}-redislatest
# tests against unreleased versions
py313-dj52-redismaster
py313-djmain-redis{latest,master}
[gh-actions]
python =
3.9: py39, ruff, mypy
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[gh-actions:env]
DJANGO =
4.2: dj42
5.1: dj51
5.2: dj52
main: djmain
REDIS =
latest: redislatest
master: redismaster
[testenv]
passenv = CI, GITHUB*
commands =
{envpython} -m pytest -n 4 {posargs}
deps =
dj42: Django>=4.2,<5.0
dj51: Django>=5.1,<5.2
dj52: Django>=5.2,<6.0
djmain: https://github.com/django/django/archive/main.tar.gz
msgpack>=0.6.0
pytest
pytest-cov
pytest-mock
pytest-pythonpath
pytest-xdist
redismaster: https://github.com/redis/redis-py/archive/master.tar.gz
lz4>=0.15
pyzstd>=0.15
[testenv:{pre-commit,mypy}]
basepython = python3
envdir={toxworkdir}/lint
commands =
pre-commit: pre-commit run --all-files
mypy: mypy {posargs:--cobertura-xml-report .} django_redis tests
deps =
django-stubs
lxml
pre-commit
mypy
# typing dependencies
pytest
pytest-mock
types-redis
skip_install = true
[tool:pytest]
addopts =
--doctest-modules
--cov=django_redis
--cov-config=setup.cfg
--no-cov-on-fail
pythonpath = tests
testpaths = tests
xfail_strict = true
[mypy]
plugins =
mypy_django_plugin.main
pretty = true
show_error_codes = true
show_error_context = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
[mypy.plugins.django-stubs]
# all test settings look similar enough for mypy
django_settings_module = tests.settings.sqlite
ignore_missing_settings = true
# third party mypy config
[mypy-lz4.frame]
ignore_missing_imports = true
[mypy-xdist.scheduler]
ignore_missing_imports = true
[mypy-pyzstd]
ignore_missing_imports = true
[mypy-msgpack]
ignore_missing_imports = true
[mypy-redis.sentinel]
ignore_missing_imports = true