Skip to content

Commit 10a7c3e

Browse files
Yuan325averikitsch
andauthored
chore(ci): update repo files (#13)
* chore(ci): update repo files * fix lint --------- Co-authored-by: Averi Kitsch <akitsch@google.com>
1 parent a69ce1c commit 10a7c3e

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

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-spanner"
3-
version = "0.0.1"
3+
dynamic = ["version"]
44
description = "LangChain integrations for Google Cloud Spanner"
55
readme = "README.md"
66
license = {file = "LICENSE"}
@@ -10,6 +10,9 @@ dependencies = [
1010
"google-cloud-spanner==3.41.0"
1111
]
1212

13+
[tool.setuptools.dynamic]
14+
version = {attr = "langchain_google_spanner.version.__version__"}
15+
1316
[project.urls]
1417
Homepage = "https://github.com/googleapis/langchain-google-spanner-python"
1518
Repository = "https://github.com/googleapis/langchain-google-spanner-python.git"

src/langchain_google_spanner/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
15+
from .version import __version__
16+
17+
__all__ = ["__version__"]
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"

0 commit comments

Comments
 (0)