Skip to content

Commit bef5f5b

Browse files
committed
Updating python SDK to version 2.0.1
Adding github workflow
1 parent fefe368 commit bef5f5b

27 files changed

+750
-791
lines changed

.github/workflows/action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This is a basic workflow to generate build
2+
name: "Generate build, run app inspect and update splunklib"
3+
4+
on: push
5+
6+
jobs:
7+
pre-release:
8+
name: "Run on push - Add Utilities & App Inspect"
9+
runs-on: "ubuntu-latest"
10+
11+
steps:
12+
- uses: VatsalJagani/splunk-app-action@v4
13+
with:
14+
my_github_token: ${{ secrets.MY_GITHUB_TOKEN }}
15+
splunkbase_username: ${{ secrets.SPLUNKBASE_USERNAME }}
16+
splunkbase_password: ${{ secrets.SPLUNKBASE_PASSWORD }}
17+
to_make_permission_changes: true

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ As of October 2022, there are still no signs of version control within the Splun
324324
- [Search Head Backup](https://splunkbase.splunk.com/app/6438) - backup to an index, works in Splunk Cloud
325325

326326
## Release Notes
327+
### 1.2.11
328+
Library updates:
329+
- Updated Splunk python SDK to 2.0.1
330+
327331
### 1.2.10
328332
Updates:
329333
- Disabled urllib3 warnings

lib/splunklib/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2011-2015 Splunk, Inc.
1+
# Copyright © 2011-2024 Splunk, Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"): you may
44
# not use this file except in compliance with the License. You may obtain
@@ -14,12 +14,10 @@
1414

1515
"""Python library for Splunk."""
1616

17-
from __future__ import absolute_import
18-
from splunklib.six.moves import map
1917
import logging
2018

2119
DEFAULT_LOG_FORMAT = '%(asctime)s, Level=%(levelname)s, Pid=%(process)s, Logger=%(name)s, File=%(filename)s, ' \
22-
'Line=%(lineno)s, %(message)s'
20+
'Line=%(lineno)s, %(message)s'
2321
DEFAULT_DATE_FORMAT = '%Y-%m-%d %H:%M:%S %Z'
2422

2523

@@ -31,5 +29,6 @@ def setup_logging(level, log_format=DEFAULT_LOG_FORMAT, date_format=DEFAULT_DATE
3129
format=log_format,
3230
datefmt=date_format)
3331

34-
__version_info__ = (1, 7, 3)
32+
33+
__version_info__ = (2, 0, 1)
3534
__version__ = ".".join(map(str, __version_info__))

0 commit comments

Comments
 (0)