Skip to content

Commit

Permalink
Updating python SDK to version 2.0.1
Browse files Browse the repository at this point in the history
Adding github workflow
  • Loading branch information
gjanders committed Mar 29, 2024
1 parent fefe368 commit bef5f5b
Show file tree
Hide file tree
Showing 27 changed files with 750 additions and 791 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This is a basic workflow to generate build
name: "Generate build, run app inspect and update splunklib"

on: push

jobs:
pre-release:
name: "Run on push - Add Utilities & App Inspect"
runs-on: "ubuntu-latest"

steps:
- uses: VatsalJagani/splunk-app-action@v4
with:
my_github_token: ${{ secrets.MY_GITHUB_TOKEN }}
splunkbase_username: ${{ secrets.SPLUNKBASE_USERNAME }}
splunkbase_password: ${{ secrets.SPLUNKBASE_PASSWORD }}
to_make_permission_changes: true
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ As of October 2022, there are still no signs of version control within the Splun
- [Search Head Backup](https://splunkbase.splunk.com/app/6438) - backup to an index, works in Splunk Cloud

## Release Notes
### 1.2.11
Library updates:
- Updated Splunk python SDK to 2.0.1

### 1.2.10
Updates:
- Disabled urllib3 warnings
Expand Down
9 changes: 4 additions & 5 deletions lib/splunklib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2011-2015 Splunk, Inc.
# Copyright © 2011-2024 Splunk, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"): you may
# not use this file except in compliance with the License. You may obtain
Expand All @@ -14,12 +14,10 @@

"""Python library for Splunk."""

from __future__ import absolute_import
from splunklib.six.moves import map
import logging

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


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

__version_info__ = (1, 7, 3)

__version_info__ = (2, 0, 1)
__version__ = ".".join(map(str, __version_info__))
Loading

0 comments on commit bef5f5b

Please sign in to comment.