Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@ jobs:
python-version: 3.13
deps-group: release
- name: Set pre-release version
id: set-version
if: startsWith(github.ref, 'refs/tags/') != true
run: |
VERSION_BASE="$(uv version --short)"
RUN_NUMBER="${{ github.run_number }}"
uv version --frozen "${VERSION_BASE}.dev${RUN_NUMBER}"
uv version "${VERSION_BASE}.dev${RUN_NUMBER}"
- name: Set release version
if: startsWith(github.ref, 'refs/tags/') == true
run: |
VERSION_TAG="${{ github.event.release.tag_name }}"
[[ $VERSION_TAG != $(uv version --short) ]] && {
printf "Git tag should be identical to version field in pyproject.toml"
exit 1
}
uv version "$(VERSION_TAG)"
- name: Get current version
id: get-version
run: echo "version=$(uv version --short)" >> "$GITHUB_OUTPUT"
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ dependencies = []
# Treat the same as NPM's `dependencies`
[project.optional-dependencies]
compat = ["six>=1.17.0"]
ai = ["httpx==0.28.1", "langchain>=1.2.16", "mcp>=1.27.0", "pydantic>=2.13.4"]
ai = ["httpx==0.28.1", "langchain>=1.2.18", "mcp>=1.27.1", "pydantic>=2.13.4"]
anthropic = ["splunk-sdk[ai]>=2.1.1", "langchain-anthropic>=1.4.3"]
openai = ["splunk-sdk[ai]>=2.1.1", "langchain-openai>=1.2.1"]
google = [
"splunk-sdk[ai]>=2.1.1",
"langchain-google-genai==4.2.2",
"google-auth>=2.51.0",
"google-auth>=2.52.0",
]

# Treat the same as NPM's `devDependencies`
Expand All @@ -53,7 +53,7 @@ test = [
"vcrpy>=8.1.1",
]
release = ["build>=1.5.0", "jinja2>=3.1.6", "sphinx>=9.1.0", "twine>=6.2.0"]
lint = ["basedpyright>=1.39.3", "ruff>=0.15.12", "mbake>=1.4.6"]
lint = ["basedpyright>=1.39.4", "ruff>=0.15.12", "mbake>=1.4.6"]
dev = [
"rich>=15.0.0",
{ include-group = "test" },
Expand Down
Loading
Loading