Skip to content

Commit 13f07cd

Browse files
authored
Merge pull request #378 from splunk/release/1.6.16
Release/1.6.16
2 parents fd0bf64 + f3774ed commit 13f07cd

9 files changed

Lines changed: 27 additions & 8 deletions

File tree

‎CHANGELOG.md‎

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

3+
## Version 1.6.16
4+
5+
### Bug fixes
6+
[#312](https://github.com/splunk/splunk-sdk-python/pull/312) Fix issue [#309](https://github.com/splunk/splunk-sdk-python/issues/309), avoid catastrophic backtracking in searchcommands
7+
38
## Version 1.6.15
49

510
### Bug fixes

‎Makefile‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ build_app:
2828
@echo "$(ATTN_COLOR)==> build_app $(NO_COLOR)"
2929
@python setup.py build dist
3030

31+
.PHONY: docs
32+
docs:
33+
@echo "$(ATTN_COLOR)==> docs $(NO_COLOR)"
34+
@rm -rf ./docs/_build
35+
@tox -e docs
36+
@cd ./docs/_build/html && zip -r ../docs_html.zip . -x ".*" -x "__MACOSX"
37+
@echo "$(ATTN_COLOR)==> Docs pages can be found at ./docs/_build/html, docs bundle available at ./docs/_build/docs_html.zip"
38+
3139
.PHONY: test
3240
test:
3341
@echo "$(ATTN_COLOR)==> test $(NO_COLOR)"

‎README.md‎

Lines changed: 1 addition & 1 deletion
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.15
6+
#### Version 1.6.16
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

‎docs/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
# Custom sidebar templates, maps document names to template names.
139139
#html_sidebars = {
140140
html_sidebars = {
141-
'**': ['localtoc.html', 'globaltoc.html', 'searchbox.html'],
141+
'**': ['globaltoc.html', 'searchbox.html'],
142142
}
143143

144144
# Additional templates that should be rendered to pages, maps page names to

‎examples/searchcommands_app/setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def run(self):
439439
setup(
440440
description='Custom Search Command examples',
441441
name=os.path.basename(project_dir),
442-
version='1.6.15',
442+
version='1.6.16',
443443
author='Splunk, Inc.',
444444
author_email='devinfo@splunk.com',
445445
url='http://github.com/splunk/splunk-sdk-python',

‎splunklib/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616

1717
from __future__ import absolute_import
1818
from splunklib.six.moves import map
19-
__version_info__ = (1, 6, 15)
19+
__version_info__ = (1, 6, 16)
2020
__version__ = ".".join(map(str, __version_info__))

‎splunklib/binding.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ def request(url, message, **kwargs):
13851385
head = {
13861386
"Content-Length": str(len(body)),
13871387
"Host": host,
1388-
"User-Agent": "splunk-sdk-python/1.6.15",
1388+
"User-Agent": "splunk-sdk-python/1.6.16",
13891389
"Accept": "*/*",
13901390
"Connection": "Close",
13911391
} # defaults

‎splunklib/searchcommands/internals.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def replace(match):
233233

234234
_escaped_character_re = re.compile(r'(\\.|""|[\\"])')
235235

236-
_fieldnames_re = re.compile(r"""("(?:\\.|""|[^"])+"|(?:\\.|[^\s"])+)""")
236+
_fieldnames_re = re.compile(r"""("(?:\\.|""|[^"\\])+"|(?:\\.|[^\s"])+)""")
237237

238238
_options_re = re.compile(r"""
239239
# Captures a set of name/value pairs when used with re.finditer

‎tox.ini‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = clean,py27,py37
2+
envlist = clean,docs,py27,py37
33
skipsdist = {env:TOXBUILD:false}
44

55
[testenv:pep8]
@@ -26,7 +26,7 @@ application-import-names = splunk-sdk-python
2626
passenv = LANG
2727
setenv = SPLUNK_HOME=/opt/splunk
2828
INPUT_EXAMPLE_UPLOAD=/opt/splunk/var/log/splunk/splunkd_ui_access.log
29-
whitelist_externals = true
29+
allowlist_externals = make
3030
deps = pytest
3131
pytest-cov
3232
xmlrunner
@@ -41,3 +41,9 @@ commands =
4141
deps = coverage
4242
skip_install = true
4343
commands = coverage erase
44+
45+
[testenv:docs]
46+
description = invoke sphinx-build to build the HTML docs
47+
basepython = python3.7
48+
deps = sphinx >= 1.7.5, < 2
49+
commands = make -C docs/ html

0 commit comments

Comments
 (0)