File tree 2 files changed +6
-12
lines changed
2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
5
5
[project ]
6
6
name = " redis"
7
- version = " 5.1.0b7 "
7
+ dynamic = [ " version " ]
8
8
description = " Python client for Redis database and key-value store"
9
9
readme = " README.md"
10
10
license = " MIT"
@@ -55,6 +55,9 @@ Documentation = "https://redis.readthedocs.io/en/latest/"
55
55
Homepage = " https://github.com/redis/redis-py"
56
56
"Issue tracker" = " https://github.com/redis/redis-py/issues"
57
57
58
+ [tool .hatch .version ]
59
+ path = " redis/__init__.py"
60
+
58
61
[tool .hatch .build .targets .sdist ]
59
62
include = [
60
63
" /redis" ,
Original file line number Diff line number Diff line change 1
- from importlib import metadata
2
-
3
1
from redis import asyncio # noqa
4
2
from redis .backoff import default_backoff
5
3
from redis .client import Redis , StrictRedis
@@ -44,16 +42,9 @@ def int_or_str(value):
44
42
return value
45
43
46
44
47
- try :
48
- __version__ = metadata .version ("redis" )
49
- except metadata .PackageNotFoundError :
50
- __version__ = "99.99.99"
51
-
45
+ __version__ = "5.1.0b7"
46
+ VERSION = tuple (map (int_or_str , __version__ .split ("." )))
52
47
53
- try :
54
- VERSION = tuple (map (int_or_str , __version__ .split ("." )))
55
- except AttributeError :
56
- VERSION = tuple ([99 , 99 , 99 ])
57
48
58
49
__all__ = [
59
50
"AuthenticationError" ,
You can’t perform that action at this time.
0 commit comments