Skip to content

Commit b763a29

Browse files
Yuan325averikitsch
andauthored
chore(ci): update repo files (#32)
* chore(ci): update repo files * update tests imports --------- Co-authored-by: Averi Kitsch <akitsch@google.com>
1 parent 81564a3 commit b763a29

10 files changed

Lines changed: 27 additions & 7 deletions

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "langchain-google-memorystore-redis"
3-
version = "0.0.1"
3+
dynamic = ["version"]
44
description = "LangChain integrations for Google Cloud Memorystore"
55
readme = "README.md"
66
license = {file = "LICENSE"}
@@ -11,6 +11,9 @@ dependencies = [
1111
"numpy>=1.21.0",
1212
]
1313

14+
[tool.setuptools.dynamic]
15+
version = {attr = "langchain_google_memorystore_redis.version.__version__"}
16+
1417
[project.urls]
1518
Homepage = "https://github.com/googleapis/langchain-google-memorystore-redis-python"
1619
Repository = "https://github.com/googleapis/langchain-google-memorystore-redis-python.git"

src/langchain_google_memorystore_redis/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
from .chat_message_history import MemorystoreChatMessageHistory
15-
from .document_loader import MemorystoreDocumentLoader
16-
from .document_saver import MemorystoreDocumentSaver
17-
from .vector_store import (
15+
from .loader import MemorystoreDocumentLoader
16+
from .saver import MemorystoreDocumentSaver
17+
from .vectorstore import (
1818
DistanceStrategy,
1919
FLATConfig,
2020
HNSWConfig,
2121
RedisVectorStore,
2222
VectorIndexConfig,
2323
)
24+
from .version import __version__
2425

2526
__all__ = [
2627
"MemorystoreChatMessageHistory",
@@ -31,4 +32,5 @@
3132
"FLATConfig",
3233
"HNSWConfig",
3334
"RedisVectorStore",
35+
"__version__",
3436
]
File renamed without changes.
File renamed without changes.

src/langchain_google_memorystore_redis/vector_store.py renamed to src/langchain_google_memorystore_redis/vectorstore.py

File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
__version__ = "0.0.1"
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import redis
2121
from langchain_core.documents.base import Document
2222

23-
from langchain_google_memorystore_redis.document_loader import MemorystoreDocumentLoader
24-
from langchain_google_memorystore_redis.document_saver import MemorystoreDocumentSaver
23+
from langchain_google_memorystore_redis.loader import MemorystoreDocumentLoader
24+
from langchain_google_memorystore_redis.saver import MemorystoreDocumentSaver
2525

2626

2727
@pytest.mark.parametrize(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import redis
2121
from langchain_core.documents.base import Document
2222

23-
from langchain_google_memorystore_redis.document_saver import MemorystoreDocumentSaver
23+
from langchain_google_memorystore_redis.saver import MemorystoreDocumentSaver
2424

2525

2626
@pytest.mark.parametrize(
File renamed without changes.

0 commit comments

Comments
 (0)