Skip to content

Commit 1ca7ad6

Browse files
committed
Capitalize __version__
1 parent 2ff3bbb commit 1ca7ad6

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
# built documents.
5151
#
5252
# The short X.Y version.
53-
version = splunklib.__version__
53+
version = splunklib.__VERSION__
5454
# The full version, including alpha/beta/rc tags.
55-
release = splunklib.__version__
55+
release = splunklib.__VERSION__
5656

5757
# The language for content autogenerated by Sphinx. Refer to documentation
5858
# for a list of supported languages.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ packages = [
6464
]
6565

6666
[tool.setuptools.dynamic]
67-
version = { attr = "splunklib.__version__" }
67+
version = { attr = "splunklib.__VERSION__" }
6868

6969
# https://docs.astral.sh/ruff/configuration/
7070
[tool.ruff.lint]
@@ -76,4 +76,3 @@ select = [
7676
"ANN", # flake8 type annotations
7777
"RUF", # ruff-specific rules
7878
]
79-

splunklib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def setup_logging(
3838
setup_logging(level=logging.DEBUG, force=True)
3939

4040

41-
__version_info__ = (2, 2, 0, "alpha")
42-
__version__ = ".".join(map(str, __version_info__))
41+
__VERSION_SEMVER__ = (2, 2, 0, "alpha")
42+
__VERSION__ = ".".join(map(str, __VERSION_SEMVER__))

splunklib/binding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
from splunklib.data import Record
4444

45-
from . import __version__
45+
from . import __VERSION__
4646
from .data import record
4747

4848
logger = logging.getLogger(__name__)
@@ -1563,7 +1563,7 @@ def request(url, message, **kwargs):
15631563
body = message.get("body", "")
15641564
head = {
15651565
"Content-Length": str(len(body)),
1566-
"User-Agent": "splunk-sdk-python/%s" % __version__,
1566+
"User-Agent": f"splunk-sdk-python/{__VERSION__}",
15671567
"Accept": "*/*",
15681568
"Connection": "Close",
15691569
} # defaults

0 commit comments

Comments
 (0)