Skip to content

Commit 7674157

Browse files
Merge pull request #410 from splunk/release-1.6.17
Release 1.6.17
2 parents 816e6fc + b80d774 commit 7674157

31 files changed

+293
-110
lines changed

.github/workflows/test.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Python CI
2+
3+
on:
4+
[push, pull_request]
5+
6+
jobs:
7+
build:
8+
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os:
13+
- ubuntu-latest
14+
python: [2.7, 3.7]
15+
splunk-version:
16+
- "8.0"
17+
- "latest"
18+
fail-fast: false
19+
20+
services:
21+
splunk:
22+
image: splunk/splunk:${{matrix.splunk-version}}
23+
env:
24+
SPLUNK_START_ARGS: --accept-license
25+
SPLUNK_HEC_TOKEN: 11111111-1111-1111-1111-1111111111113
26+
SPLUNK_PASSWORD: changed!
27+
SPLUNK_APPS_URL: https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz
28+
ports:
29+
- 8000:8000
30+
- 8088:8088
31+
- 8089:8089
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Setup Python
36+
uses: actions/setup-python@v2
37+
with:
38+
python-version: ${{ matrix.python }}
39+
- name: Create .splunkrc file
40+
run: |
41+
cd ~
42+
echo host=localhost > .splunkrc
43+
echo port=8089 >> .splunkrc
44+
echo username=admin >> .splunkrc
45+
echo password=changed! >> .splunkrc
46+
echo scheme=https >> .splunkrc
47+
echo version=${{ matrix.splunk }} >> .splunkrc
48+
- name: Create build dir for ExamplesTestCase::test_build_dir_exists test case
49+
run: |
50+
cd ~
51+
cd /home/runner/work/splunk-sdk-python/splunk-sdk-python/
52+
python setup.py build
53+
python setup.py dist
54+
- name: Install tox
55+
run: pip install tox
56+
- name: Test Execution
57+
run: tox -e py

.travis.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Splunk Enterprise SDK for Python Changelog
22

3+
## Version 1.6.17
4+
5+
### Bug fixes
6+
7+
* [#383](https://github.com/splunk/splunk-sdk-python/pull/383) Implemented the possibility to provide a SSLContext object to the connect method
8+
* [#396](https://github.com/splunk/splunk-sdk-python/pull/396) Updated KVStore Methods to support dictionaries
9+
* [#397](https://github.com/splunk/splunk-sdk-python/pull/397) Added code changes for encoding '/' in _key parameter in kvstore.data APIs.
10+
* [#398](https://github.com/splunk/splunk-sdk-python/pull/398) Added dictionary support for KVStore "query" methods.
11+
* [#402](https://github.com/splunk/splunk-sdk-python/pull/402) Fixed regression introduced in 1.6.15 to once again allow processing of empty input records in custom search commands (fix [#376](https://github.com/splunk/splunk-sdk-python/issues/376))
12+
* [#404](https://github.com/splunk/splunk-sdk-python/pull/404) Fixed test case failure for 8.0 and latest(8.2.x) splunk version
13+
14+
### Minor changes
15+
16+
* [#381](https://github.com/splunk/splunk-sdk-python/pull/381) Updated current year in conf.py
17+
* [#389](https://github.com/splunk/splunk-sdk-python/pull/389) Fixed few typos
18+
* [#391](https://github.com/splunk/splunk-sdk-python/pull/391) Fixed spelling error in client.py
19+
* [#393](https://github.com/splunk/splunk-sdk-python/pull/393) Updated development status past 3
20+
* [#394](https://github.com/splunk/splunk-sdk-python/pull/394) Updated Readme steps to run examples
21+
* [#395](https://github.com/splunk/splunk-sdk-python/pull/395) Updated random_number.py
22+
* [#399](https://github.com/splunk/splunk-sdk-python/pull/399) Moved CI tests to GitHub Actions
23+
* [#403](https://github.com/splunk/splunk-sdk-python/pull/403) Removed usage of Easy_install to install SDK
24+
325
## Version 1.6.16
426

527
### Bug fixes

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# The Splunk Enterprise Software Development Kit for Python
55

6-
#### Version 1.6.16
6+
#### Version 1.6.17
77

88
The Splunk Enterprise Software Development Kit (SDK) for Python contains library code and examples designed to enable developers to build applications using the Splunk platform.
99

@@ -39,11 +39,7 @@ Here's what you need to get going with the Splunk Enterprise SDK for Python.
3939

4040
### Install the SDK
4141

42-
Use the following commands to install the Splunk Enterprise SDK for Python libraries in different ways. However, it's not necessary to install the libraries to run the examples and unit tests from the SDK.
43-
44-
Use `easy_install`:
45-
46-
[sudo] easy_install splunk-sdk
42+
Use the following commands to install the Splunk Enterprise SDK for Python libraries. However, it's not necessary to install the libraries to run the examples and unit tests from the SDK.
4743

4844
Use `pip`:
4945

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- SPLUNK_START_ARGS=--accept-license
99
- SPLUNK_HEC_TOKEN=11111111-1111-1111-1111-1111111111113
1010
- SPLUNK_PASSWORD=changed!
11-
- SPLUNK_APPS_URL=https://github.com/splunk/sdk-app-collection/releases/download/v1.0.0/sdk-app-collection.tgz
11+
- SPLUNK_APPS_URL=https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz
1212
ports:
1313
- 8000:8000
1414
- 8088:8088

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
# General information about the project.
4545
project = u'Splunk SDK for Python'
46-
copyright = u'2020, Splunk Inc'
46+
copyright = u'2021, Splunk Inc'
4747

4848
# The version info for the project you're documenting, acts as replacement for
4949
# |version| and |release|, also used in various other places throughout the

docs/searchcommands.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ splunklib.searchcommands
33

44
.. automodule:: splunklib.searchcommands
55

6-
.. autofunction:: dispatch(command_class[, argv=sys.argv, input_file=sys.stdin, output_file=sys.stdout, module_name=None])
6+
.. autofunction:: dispatch(command_class[, argv=sys.argv, input_file=sys.stdin, output_file=sys.stdout, module_name=None, allow_empty_input=True])
77

88
.. autoclass:: EventingCommand
99
:members:
@@ -31,7 +31,7 @@ splunklib.searchcommands
3131

3232
.. automethod:: splunklib.searchcommands::GeneratingCommand.generate
3333

34-
.. automethod:: splunklib.searchcommands::GeneratingCommand.process(args=sys.argv[, input_file=sys.stdin, output_file=sys.stdout])
34+
.. automethod:: splunklib.searchcommands::GeneratingCommand.process(args=sys.argv[, input_file=sys.stdin, output_file=sys.stdout, allow_empty_input=True])
3535

3636
.. autoclass:: ReportingCommand
3737
:members:
@@ -59,7 +59,7 @@ splunklib.searchcommands
5959
:inherited-members:
6060
:exclude-members: configuration_settings, fix_up, items, keys
6161

62-
.. automethod:: splunklib.searchcommands::StreamingCommand.process(args=sys.argv[, input_file=sys.stdin, output_file=sys.stdout])
62+
.. automethod:: splunklib.searchcommands::StreamingCommand.process(args=sys.argv[, input_file=sys.stdin, output_file=sys.stdout, allow_empty_input=True])
6363

6464
.. automethod:: splunklib.searchcommands::StreamingCommand.stream
6565

examples/analytics/bottle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def __init__(self, catchall=True, autojson=True, config=None):
407407

408408
self.mounts = {}
409409
self.error_handler = {}
410-
#: If true, most exceptions are catched and returned as :exc:`HTTPError`
410+
#: If true, most exceptions are caught and returned as :exc:`HTTPError`
411411
self.catchall = catchall
412412
self.config = config or {}
413413
self.serve = True
@@ -638,8 +638,8 @@ def remove_hook(self, name, func):
638638

639639
def handle(self, path, method='GET'):
640640
""" (deprecated) Execute the first matching route callback and return
641-
the result. :exc:`HTTPResponse` exceptions are catched and returned.
642-
If :attr:`Bottle.catchall` is true, other exceptions are catched as
641+
the result. :exc:`HTTPResponse` exceptions are caught and returned.
642+
If :attr:`Bottle.catchall` is true, other exceptions are caught as
643643
well and returned as :exc:`HTTPError` instances (500).
644644
"""
645645
depr("This method will change semantics in 0.10. Try to avoid it.")
@@ -1081,7 +1081,7 @@ def set_cookie(self, key, value, secret=None, **kargs):
10811081
:param value: the value of the cookie.
10821082
:param secret: required for signed cookies. (default: None)
10831083
:param max_age: maximum age in seconds. (default: None)
1084-
:param expires: a datetime object or UNIX timestamp. (defaut: None)
1084+
:param expires: a datetime object or UNIX timestamp. (default: None)
10851085
:param domain: the domain that is allowed to read the cookie.
10861086
(default: current domain)
10871087
:param path: limits the cookie to a given path (default: /)

examples/analytics/js/jquery.flot.selection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ you want to know what's happening while it's happening,
3434
A "plotunselected" event with no arguments is emitted when the user
3535
clicks the mouse to remove the selection.
3636
37-
The plugin allso adds the following methods to the plot object:
37+
The plugin also adds the following methods to the plot object:
3838
3939
- setSelection(ranges, preventEvent)
4040

examples/async/async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def do_search(query):
9898
return results
9999

100100
# We specify many queries to get show the advantages
101-
# of paralleism.
101+
# of parallelism.
102102
queries = [
103103
'search * | head 100',
104104
'search * | head 100',

0 commit comments

Comments
 (0)