Skip to content

Commit 3bec7b0

Browse files
committed
Implement a dummy function when ran on Python pre-3.13
1 parent 85cb2d4 commit 3bec7b0

File tree

4 files changed

+16
-125
lines changed

4 files changed

+16
-125
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ services:
22
splunk:
33
image: "splunk/splunk:${SPLUNK_VERSION}"
44
container_name: splunk
5+
platform: linux/amd64
56
environment:
67
- SPLUNK_START_ARGS=--accept-license
78
- SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com
@@ -13,7 +14,7 @@ services:
1314
- "8088:8088"
1415
- "8089:8089"
1516
healthcheck:
16-
test: ['CMD', 'curl', '-f', 'http://localhost:8000']
17+
test: ["CMD", "curl", "-f", "http://localhost:8000"]
1718
interval: 5s
1819
timeout: 5s
1920
retries: 20

pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,15 @@ classifiers = [
2929
"Topic :: Software Development :: Libraries :: Application Frameworks",
3030
]
3131

32-
dependencies = [
33-
"deprecated>=1.2.0",
34-
"python-dotenv>=0.21.1",
35-
]
32+
dependencies = []
3633
optional-dependencies = { compat = ["six>=1.17.0"] }
3734

3835
[dependency-groups]
3936
build = ["build>=1.1.1", "twine>=4.0.2"]
4037
# Can't pin `sphinx` otherwise installation fails on python>=3.7
4138
docs = ["sphinx", "jinja2>=3.1.6"]
4239
lint = ["mypy>=1.4.1", "ruff>=0.13.1"]
43-
test = ["pytest>=7.4.4", "pytest-cov>=4.1.0"]
40+
test = ["python-dotenv>=0.21.1", "pytest>=7.4.4", "pytest-cov>=4.1.0"]
4441
release = [{ include-group = "build" }, { include-group = "docs" }]
4542
dev = [
4643
{ include-group = "test" },

splunklib/client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@
6666
from time import sleep
6767
from urllib import parse
6868

69-
from deprecated import deprecated
69+
try:
70+
from warnings import deprecated
71+
except ImportError:
72+
73+
def deprecated(): # pyright: ignore[reportUnknownParameterType]
74+
return lambda _v, _msg: None
75+
7076

7177
from . import data
7278
from .binding import (

0 commit comments

Comments
 (0)