Skip to content

Commit 0b2d7d4

Browse files
committed
Remove test report generation, clean up tox config, remove setuptools from dependencies
1 parent dbf78cf commit 0b2d7d4

File tree

2 files changed

+968
-66
lines changed

2 files changed

+968
-66
lines changed

pyproject.toml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies = ["deprecation", "python-dotenv"]
2626
[dependency-groups]
2727
test = ["tox"]
2828
lint = ["mypy", "ruff"]
29-
build = ["build", "setuptools"]
29+
build = ["build", "twine"]
3030
dev = [
3131
{ include-group = "test" },
3232
{ include-group = "lint" },
@@ -44,8 +44,6 @@ packages = ["splunklib", "splunklib.modularinput", "splunklib.searchcommands"]
4444
version = { attr = "splunklib.__version__" }
4545

4646
# https://docs.astral.sh/ruff/configuration/
47-
# [tool.ruff]
48-
4947
[tool.ruff.lint]
5048
fixable = ["ALL"]
5149
select = [
@@ -61,30 +59,9 @@ select = [
6159
[tool.tox]
6260
legacy_tox_ini = """
6361
[tox]
64-
envlist = clean,docs,py{37,39,313}
62+
envlist = docs,py{37,39,313}
6563
skipsdist = {env:TOXBUILD:false}
6664
67-
# TODO: Replace with ruff
68-
[testenv:pep8]
69-
deps = flake8
70-
flake8-import-order
71-
flake8-blind-except
72-
flake8-builtins
73-
flake8-docstrings
74-
flake8-rst-docstrings
75-
flake8-logging-format
76-
six
77-
commands = flake8
78-
79-
[flake8]
80-
exclude = .tox
81-
# If you need to ignore some error codes in the whole source code
82-
# you can write them here
83-
# ignore = D100,D101
84-
show-source = true
85-
enable-extensions = G
86-
application-import-names = splunk-sdk-python
87-
8865
[testenv]
8966
passenv = LANG
9067
setenv = SPLUNK_HOME=/opt/splunk
@@ -95,15 +72,10 @@ deps = pytest
9572
9673
distdir = build
9774
commands =
98-
{env:TOXBUILD:python -m pytest --junitxml=test-reports/junit-{envname}.xml --cov --cov-config=.coveragerc} {posargs}
99-
100-
[testenv:clean]
101-
deps = coverage
102-
skip-install = true
103-
commands = coverage erase
75+
{env:TOXBUILD:python -m pytest --cov --cov-config=.coveragerc} {posargs}
10476
10577
[testenv:docs]
106-
description = invoke sphinx-build to build the HTML docs
78+
description = Build the static HTML docs
10779
basepython = python3.9
10880
deps = sphinx >= 1.7.5, < 2
10981
jinja2 < 3.1.0

0 commit comments

Comments
 (0)