Skip to content

Commit f510437

Browse files
committed
Rebrand package metadata from Galileo to Splunk AO, update version and repository links
1 parent cb85925 commit f510437

4 files changed

Lines changed: 24 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[project]
2-
name = "galileo"
3-
version = "2.3.0"
4-
description = "Client library for the Galileo platform."
5-
authors = [{ name = "Galileo Technologies Inc.", email = "team@galileo.ai" }]
2+
name = "splunk-ao"
3+
version = "0.1.0"
4+
description = "Splunk Agent Observability SDK for Python."
5+
authors = [{ name = "Splunk Inc." }]
66
readme = "README.md"
77
requires-python = ">=3.10,<3.15"
88
dynamic = ["dependencies"]
99
license = "Apache-2.0"
1010

1111
[project.urls]
12-
Repository = "https://github.com/rungalileo/galileo-python"
12+
Repository = "https://github.com/signalfx/splunk-ao-python"
1313

1414
[tool.poetry]
1515
packages = [

src/splunk_ao/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
vars(sys)["_splunk_ao_suppress_galileo_deprecation_warning"] = False
8282

83-
__version__ = "2.3.0"
83+
__version__ = "0.1.0"
8484

8585
__all__ = [
8686
"APIError",

src/splunk_ao/utils/headers_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
def get_package_version() -> str:
77
"""Get the installed SDK distribution version."""
88
try:
9-
return version("galileo")
9+
return version("splunk-ao")
1010
except PackageNotFoundError:
1111
return "0.0.0" # Unknown version
1212

tests/test_api_headers.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Tests for X-Galileo-SDK header in API calls."""
22

3+
from importlib.metadata import PackageNotFoundError
34
from unittest.mock import patch
45

56
from galileo.resources.api.datasets.get_dataset_datasets_dataset_id_get import _get_kwargs as dataset_get_kwargs
@@ -13,6 +14,22 @@
1314
class TestApiHeaders:
1415
"""Test that X-Galileo-SDK headers are properly included in API calls."""
1516

17+
@patch("splunk_ao.utils.headers_data.version")
18+
def test_get_package_version_uses_splunk_ao_distribution(self, mock_version) -> None:
19+
"""Test package version lookup uses the rebranded distribution name."""
20+
mock_version.return_value = "0.1.0"
21+
22+
assert get_package_version() == "0.1.0"
23+
mock_version.assert_called_once_with("splunk-ao")
24+
25+
@patch("splunk_ao.utils.headers_data.version")
26+
def test_get_package_version_preserves_missing_package_fallback(self, mock_version) -> None:
27+
"""Test missing package metadata still returns the fallback version."""
28+
mock_version.side_effect = PackageNotFoundError
29+
30+
assert get_package_version() == "0.0.0"
31+
mock_version.assert_called_once_with("splunk-ao")
32+
1633
def test_generated_api_method_includes_sdk_header(self) -> None:
1734
"""Test that generated API methods include the X-Galileo-SDK header with method name."""
1835
# Test the _get_kwargs function which is responsible for setting headers

0 commit comments

Comments
 (0)