Skip to content

Commit fd54757

Browse files
committed
update to version 0.2.0
1 parent a9cdcd1 commit fd54757

File tree

6 files changed

+47
-44
lines changed

6 files changed

+47
-44
lines changed

CHANGES.rst

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Version 0.2.0
2+
3+
- drop support for EOL django versions
4+
5+
- floats are no longer serialized
6+
this is to support atomic float operations
7+
8+
- minor bug fix
9+
110
Version 0.1.8
211
-------------
312

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Requirements
5151
~~~~~~~~~~~~
5252

5353
- `Python`_ 3.10+ (if you use with libvalkey, they don't support 3.13 yet)
54-
- `Django`_ 3.2.9+
55-
- `valkey-py`_ 6.0.0+ (probably works on older versions too)
54+
- `Django`_ 4.2.20+
55+
- `valkey-py`_ 6.0.2+ (probably works on older versions too)
5656
- `Valkey server`_ 7.2.6+ (probably works with older versions too)
5757

5858
.. _Python: https://www.python.org/downloads/

django_valkey/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (0, 1, 8)
1+
VERSION = (0, 2, 0)
22
__version__ = ".".join(map(str, VERSION))
33

44

django_valkey/cluster_cache/client/default.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def keys(
2626
target_nodes=ValkeyCluster.DEFAULT_NODE,
2727
version=None,
2828
client=None,
29-
**kwargs
29+
**kwargs,
3030
):
3131
client = self._get_client(client=client)
3232
pattern = self.make_pattern(pattern, version=version)

django_valkey/cluster_cache/pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ def get_connection(self, params: dict) -> ValkeyCluster | Any:
2828
return self.base_client_cls(
2929
url=params["url"],
3030
parser_class=params["parser_class"],
31-
**self.base_client_cls_kwargs
31+
**self.base_client_cls_kwargs,
3232
)

pyproject.toml

+33-39
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
[tool.poetry]
1+
[project]
22
name = "django-valkey"
3-
version = "0.1.8"
4-
license = "BSD-3-Caluse"
5-
description = "a valkey cache and session backend for django"
6-
authors = ["amirreza <[email protected]>"]
3+
version = "0.2.0"
4+
description = "a valkey backend for django"
5+
authors = [
6+
{name = "amirreza",email = "[email protected]"}
7+
]
8+
license = {text = "BSD-3-Caluse"}
79
readme = "README.rst"
810
classifiers = [
911
"Programming Language :: Python",
@@ -21,58 +23,50 @@ classifiers = [
2123
"Programming Language :: Python :: 3.12",
2224
"Framework :: Django :: 5.0",
2325
"Framework :: Django :: 5.1",
26+
]
27+
include = ["AUTHORS.rst"]
28+
requires-python = ">=3.10"
2429

30+
dependencies = [
31+
"django (>=4.2.20)",
32+
"valkey (>=6.0.2)",
33+
"sphinx (>=8.0.2)",
2534
]
2635

27-
include = ["AUTHORS.rst"]
36+
[project.optional-dependencies]
37+
libvalkey = ["libvalkey (>=4.0.1,<5.0.0)"]
38+
lz4 = ["lz4 (>=4.3.3,<5.0.0)"]
39+
pyzstd = ["pyzstd (>=0.16.2,<0.17.0)"]
40+
msgpack = ["msgpack (>=1.1.0,<2.0.0)"]
41+
brotli = ["brotli (>=1.1.0,<2.0.0)"]
2842

2943
[tool.poetry.urls]
3044
Homepage = "https://github.com/amirreza8002/django-valkey"
3145
Source = "https://github.com/amirreza8002/django-valkey"
3246
Issues = "https://github.com/amirreza8002/django-valkey/issues"
3347
Documentation = "https://django-valkey.readthedocs.io/en/latest/"
3448

35-
[tool.poetry.dependencies]
36-
python = ">= 3.10"
37-
django = ">= 3.2.9"
38-
valkey = "^6.0.2"
39-
40-
libvalkey = { optional = true, version = "^4.0.1" }
41-
lz4 = { optional = true, version = "^4.3.3" }
42-
pyzstd = { optional = true, version = "^0.16.2" }
43-
msgpack = { optional = true, version = "^1.1.0" }
44-
brotli = { optional = true, version = "^1.1.0"}
45-
46-
47-
[tool.poetry.extras]
48-
libvalkey = ["libvalkey"]
49-
lz4 = ["lz4"]
50-
pyzstd = ["pyzstd"]
51-
msgpack = ["msgpack"]
52-
brotli = ["brotli"]
53-
54-
5549
[tool.poetry.group.dev.dependencies]
56-
black = "^24.10.0"
57-
ruff = "^0.8.0"
58-
mypy = "^1.13.0"
59-
django-stubs = "^5.1.1"
60-
pytest = "^8.3.3"
61-
pytest-django = "^4.9.0"
62-
pytest-mock = "^3.14.0"
63-
coverage = "^7.6.8"
50+
black = "^25.1.0"
51+
coverage = "^7.7.0"
6452
django-coverage-plugin = "^3.1.0"
65-
pytest-asyncio = "^0.24.0"
66-
pre-commit = "^4.0.1"
53+
django-cmd = "^2.6"
54+
django-stubs = "^5.1.3"
6755
invoke = "^2.2.0"
56+
mypy = "^1.15.0"
57+
pre-commit = "^4.1.0"
58+
pytest = "^8.3.5"
59+
pytest-asyncio = "^0.25.3"
60+
pytest-django = "^4.10.0"
61+
pytest-mock = "^3.14.0"
62+
ruff = "^0.11.0"
6863

6964

7065
[tool.poetry.group.docs.dependencies]
71-
sphinx = "^8.0.2"
72-
sphinx-pdj-theme = "^0.4.0"
66+
sphinx-pdj-theme = "^0.5.0"
7367

7468
[build-system]
75-
requires = ["poetry-core"]
69+
requires = ["poetry-core>=2.0.0,<3.0.0"]
7670
build-backend = "poetry.core.masonry.api"
7771

7872
[tool.mypy]

0 commit comments

Comments
 (0)