Skip to content

Commit e75eacf

Browse files
committed
Use deprecation instead of deprecated as a last ditch attempt at fixing CI/CD
1 parent 4cf798a commit e75eacf

File tree

4 files changed

+16
-207
lines changed

4 files changed

+16
-207
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
- name: (Python 3.7) Install dependencies
3333
if: ${{ matrix.python-version == '3.7' }}
34-
run: python -m pip install deprecated python-dotenv pytest
34+
run: python -m pip install deprecation python-dotenv pytest
3535
- name: (Python >= 3.9) Install dependencies
3636
if: ${{ matrix.python-version != '3.7' }}
3737
run: python -m pip install . --group test

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ classifiers = [
3030
]
3131

3232
dependencies = [
33-
"deprecated>=1.3.1",
33+
"deprecation>=2.1.0",
3434
"python-dotenv>=0.21.1",
3535
]
3636
optional-dependencies = { compat = ["six>=1.17.0"] }

splunklib/client.py

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

69-
from deprecated import deprecated
69+
from deprecation import deprecated
7070

7171
from . import data
7272
from .binding import (
@@ -2008,8 +2008,9 @@ def clear_password(self):
20082008

20092009
@property
20102010
@deprecated(
2011-
version="2.2.0",
2012-
reason="To improve security, this field now returns an empty string and will be removed from Splunk in a future release.",
2011+
deprecated_in="2.2.0",
2012+
details="To improve security, this field now returns an empty \
2013+
string and will be removed from Splunk in a future release.",
20132014
)
20142015
def encrypted_password(self):
20152016
return self.content.get("encr_password")

0 commit comments

Comments
 (0)