Skip to content

Commit 070ab23

Browse files
authored
chore(release-please): Adds the release please workflow (#10)
* chore(release-please): Adds the release please workflow * chore:FIx lint and header checks * chore(lint):lint fix * chore(update): Updates the pyproject.toml from tool.poetry to project * chore(test):update to 3 workers
1 parent 8621323 commit 070ab23

File tree

7 files changed

+88
-81
lines changed

7 files changed

+88
-81
lines changed

.github/CONTRIBUTING.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/release-please.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2025 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+
releaseType: python
16+
handleGHRelease: true

.github/release-trigger.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2025 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+
enabled: true

.github/sync-repo-settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ branchProtectionRules:
4141

4242
# Set team access
4343
permissionRules:
44-
- team: llama-index-spanner
44+
- team: llama-index-spanner
4545
permission: admin

.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"repo": "googleapis/llama-index-spanner-python",
1010
"distribution_name": "llama-index-spanner",
1111
"requires_billing": true,
12-
"codeowner_team": "@googleapis/senseai-eco"
12+
"codeowner_team": "@googleapis/llama-index-spanner"
1313
}

integration.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ steps:
2626
- id: Run integration tests
2727
name: 'python:${_VERSION}'
2828
entrypoint: python
29-
args: ["-m", "pytest", "-n", "auto", "--cov=llama_index_spanner", "--cov-config=.coveragerc", "tests/"]
29+
args: ["-m", "pytest", "-n", "3", "--cov=llama_index_spanner", "--cov-config=.coveragerc", "tests/"]
3030
secretEnv: ["GOOGLE_API_KEY"]
3131
env:
3232
- "PROJECT_ID=$PROJECT_ID"

pyproject.toml

Lines changed: 54 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,63 @@
1-
[tool.poetry]
1+
[project]
22
name = "llama-index-spanner"
3-
version = "0.1.0"
3+
dynamic = ["version"]
44
description = "LlamaIndex integrations for Google Cloud Spanner"
5-
authors = ["Google LLC <[email protected]>"]
65
readme = "README.md"
6+
license = {file = "LICENSE"}
7+
requires-python = ">=3.9,<4.0"
8+
authors = [
9+
{name = "Google LLC", email = "[email protected]"}
10+
]
11+
dependencies = [
12+
"google-cloud-spanner>=3.41.0, <4.0.0",
13+
"llama-index-core==0.12.41"
14+
]
15+
classifiers = [
16+
"Intended Audience :: Developers",
17+
"License :: OSI Approved :: Apache Software License",
18+
"Programming Language :: Python",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
]
725

8-
[tool.poetry.dependencies]
9-
python = ">=3.9,<4.0"
10-
google-cloud-spanner = ">=3.41.0,<4.0.0"
11-
llama-index-core = "^0.12.41"
12-
pytest = { version = "8.3.3", optional = true }
13-
pytest-xdist = { version = "^3.6.1", optional = true }
14-
pytest-cov = { version = "^5.0.0", optional = true }
15-
pytest-asyncio = { version = "^0.24.0", optional = true }
16-
black = { version = "^25.1.0", optional = true, extras = ["jupyter"] }
17-
isort = { version = "^6.0.1", optional = true }
18-
mypy = { version = "^1.16.0", optional = true }
19-
llama-index-readers-wikipedia = { version = "^0.3.0", optional = true }
20-
llama-index-embeddings-google-genai = { version = "^0.1.0", optional = true }
21-
llama-index-llms-google-genai = { version = "^0.1.4", optional = true }
22-
wikipedia = { version = "^1.4.0", optional = true }
26+
[tool.setuptools.dynamic]
27+
version = {attr = "llama_index_spanner.version.__version__"}
2328

24-
[tool.poetry.group.dev.dependencies]
25-
llama-index = "^0.12.22"
26-
pyvis = "^0.3.2"
27-
llama-index-llms-google-genai = "^0.1.4"
28-
llama-index-readers-wikipedia = "^0.3.0"
29-
wikipedia = "^1.4.0"
30-
llama-index-embeddings-google-genai = "^0.1.0"
31-
ipykernel = "^6.29.5"
32-
black = {extras = ["jupyter"], version = "^25.1.0"}
33-
isort = "^6.0.1"
34-
mypy = "^1.16.0"
29+
[project.urls]
30+
Homepage = "https://github.com/googleapis/llama-index-spanner-python"
31+
Repository = "https://github.com/googleapis/llama-index-spanner-python.git"
32+
"Bug Tracker" = "https://github.com/googleapis/llama-index-spanner-python/issues"
33+
Changelog = "https://github.com/googleapis/llama-index-spanner-python/blob/main/CHANGELOG.md"
3534

36-
[tool.poetry.group.test.dependencies]
37-
pytest = "8.3.3"
38-
pytest-xdist = "^3.6.1"
39-
pytest-cov= "^5.0.0"
40-
pytest-asyncio= "^0.24.0"
41-
wikipedia="^1.4.0"
35+
[project.optional-dependencies]
36+
lint = [
37+
"black[jupyter]==25.1.0",
38+
"flake8==6.1.0",
39+
"isort==5.13.2",
40+
]
4241

43-
[tool.poetry.extras]
4442
test = [
45-
"pytest",
46-
"pytest-xdist",
47-
"pytest-cov",
48-
"pytest-asyncio",
49-
"llama-index-readers-wikipedia",
50-
"llama-index-embeddings-google-genai",
51-
"llama-index-llms-google-genai",
52-
"ipykernel",
53-
"black",
54-
"isort",
55-
"mypy",
56-
"wikipedia"
43+
"black[jupyter]==25.1.0",
44+
"flake8==6.1.0",
45+
"isort==5.13.2",
46+
"mypy==1.16.0",
47+
"pytest==8.3.3",
48+
"pytest-xdist==3.6.1",
49+
"pytest-asyncio==0.24.0",
50+
"pytest-cov==5.0.0",
51+
"llama-index-readers-wikipedia==0.3.0",
52+
"llama-index-embeddings-google-genai==0.1.0",
53+
"llama-index-llms-google-genai==0.1.4",
54+
"wikipedia==1.4.0",
55+
"ipykernel==6.29.5"
5756
]
5857

5958
[build-system]
60-
requires = ["poetry-core"]
61-
build-backend = "poetry.core.masonry.api"
59+
requires = ["setuptools"]
60+
build-backend = "setuptools.build_meta"
6261

6362
[tool.black]
6463
target-version = ['py39']
@@ -70,3 +69,8 @@ profile = "black"
7069
python_version = 3.9
7170
warn_unused_configs = true
7271
ignore_missing_imports = true
72+
73+
exclude = [
74+
'docs/*',
75+
'noxfile.py'
76+
]

0 commit comments

Comments
 (0)