Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

20 changes: 11 additions & 9 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
2. Click on '...'
3. Scroll down to '...'
4. See error

**Expected behavior**
Expand All @@ -24,14 +24,16 @@ A clear and concise description of what you expected to happen.
If applicable, add logs or screenshots to help explain your problem.

**Splunk (please complete the following information):**

- Version: [e.g. 8.0.5]
- OS: [e.g. Ubuntu 20.04.1]
- Deployment: [e.g. single-instance]

**SDK (please complete the following information):**
- Version: [e.g. 1.6.14]
- Language Runtime Version: [e.g. Python 3.7]
- OS: [e.g. MacOS 10.15.7]

- Version: [e.g. 1.6.14]
- Language Runtime Version: [e.g. Python 3.7]
- OS: [e.g. MacOS 10.15.7]

**Additional context**
Add any other context about the problem here.
9 changes: 3 additions & 6 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---


7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
9 changes: 4 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE/pr_template.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
name: Pull Request Template
about: Create a Pull Request to contribute to the SDK
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

## Description of PR

Provide the **context and motivation** for this PR.
Provide the **context and motivation** for this PR.
Briefly explain the **type of changes** (bug fix, feature request, doc update, etc.) made in this PR. Provide reference to issue # fixed, if applicable.

Describe the approach to the solution, the changes made, and any resulting change in behavior or impact to the user.
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CD
on: [workflow_dispatch]

jobs:
test-pypi-deploy:
name: Deploy to Test PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: splunk-test-pypi
steps:
- name: Checkout source
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Set up Python
uses: actions/setup-python@3d1e2d2ca0a067f27da6fec484fce7f5256def85
with:
python-version: 3.9
- name: Install dependencies
run: pip install build
- name: Build package
run: python -m build
- name: Publish package to Test PyPI
uses: pypa/gh-action-pypi-publish@d417ba7e7683fa9104c42abe611c1f2c93c0727d
with:
user: __token__
password: ${{ secrets.TEST_PYPI_PASSWORD }}
repository-url: https://test.pypi.org/legacy/
1 change: 1 addition & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Fossa OSS Scan
on: [push]

jobs:
fossa-scan:
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@ on:

jobs:
publish:
name: Deploy Release to PyPI
# Last version with Python 3.7 binaries available
runs-on: ubuntu-22.04
name: Deploy release to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: splunk-pypi
steps:
- name: Checkout source
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Set up Python
uses: actions/setup-python@3d1e2d2ca0a067f27da6fec484fce7f5256def85
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: pip install twine
run: pip install build
- name: Build package
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@d417ba7e7683fa9104c42abe611c1f2c93c0727d
with:
user: __token__
password: ${{ secrets.pypi_password }}
password: ${{ secrets.PYPI_PASSWORD }}
- name: Install tox
run: pip install tox
- name: Generate API docs
Expand All @@ -35,10 +38,3 @@ jobs:
with:
name: python_sdk_docs
path: docs/_build/html
# Test upload
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@d417ba7e7683fa9104c42abe611c1f2c93c0727d
# with:
# user: __token__
# password: ${{ secrets.test_pypi_password }}
# repository_url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
- name: Install tox
run: pip install tox
- name: Test Execution
run: tox -e py
run: tox -e py -- ./tests
Loading