Rename kaya.session_memcache → kaya.session.memcache

- Move src/kaya/session_memcache/ → src/kaya/session/memcache/
- Add pkgutil.extend_path to kaya.session for subpackage namespace support
- Update pyproject.toml version_file path
- Update all import references (tests, READMEs, root README)
This commit is contained in:
2026-07-23 15:51:42 +00:00
parent dba0c24b1a
commit 01a54e3fb5
8 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import aiomcache
from kaya.core import KayaApp, HttpContext
from kaya.session import SessionMixin
from kaya.session_memcache import MemcacheSessionStore
from kaya.session.memcache import MemcacheSessionStore
client = aiomcache.Client('127.0.0.1', 11211)
session = SessionMixin(MemcacheSessionStore(client))
@@ -51,7 +51,7 @@ strict = true
[tool.setuptools_scm]
root = "../.."
version_file = "src/kaya/session_memcache/_version.py"
version_file = "src/kaya/session/memcache/_version.py"
[tool.setuptools_scm.tag]
prefix = "release/"
@@ -7,7 +7,7 @@ from pwo import async_test
from kaya.core import KayaApp, HttpContext
from kaya.session import Session, SessionMixin
from kaya.session_memcache import MemcacheSessionStore
from kaya.session.memcache import MemcacheSessionStore
class FakeClock:
@@ -1,3 +1,7 @@
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
from ._mixin import SessionMixin
from ._session import Session
from ._store import InMemorySessionStore, SessionStore