Skip to content

Commit f2c297a

Browse files
committed
Try converting project to pyproject.toml and uv
1 parent b39b9d5 commit f2c297a

File tree

6 files changed

+741
-39
lines changed

6 files changed

+741
-39
lines changed

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*coverage_html_report*
66
.coverage
77
.coverage.*
8-
.python-version
98
.vscode
109
__stdout__
1110
docs/_build
@@ -17,12 +16,16 @@ coverage_report
1716
test.log
1817
tests/searchcommands_data/log/
1918
tests/searchcommands_data/output/
20-
Test Results*.html
2119
tests/searchcommands/data/app/app.log
20+
tests/searchcommands/apps/app_with_logging_configuration/*.log
21+
Test Results*.html
2222
splunk_sdk.egg-info/
23+
splunk_sdk_python.egg-info/
2324
dist/
24-
tests/searchcommands/apps/app_with_logging_configuration/*.log
2525
*.observed
2626
venv/
27+
.venv/
28+
.mypy_cache/
2729
.tox
2830
test-reports/
31+
*.code-workspace

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9.23

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.1.0

pyproject.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "splunk-sdk-python"
7+
version = "2.1.0"
8+
description = "The Splunk Software Development Kit for Python."
9+
readme = "README.md"
10+
requires-python = ">=3.7, <3.10"
11+
license = "Apache-2.0"
12+
license-files = ["LICEN[CS]E.*"]
13+
authors = [{ name = "Splunk, Inc.", email = "[email protected]" }]
14+
classifiers = [
15+
"Programming Language :: Python",
16+
"Development Status :: 6 - Mature",
17+
"Environment :: Other Environment",
18+
"Intended Audience :: Developers",
19+
"Operating System :: OS Independent",
20+
"Topic :: Software Development :: Libraries :: Python Modules",
21+
"Topic :: Software Development :: Libraries :: Application Frameworks",
22+
]
23+
24+
dependencies = [
25+
"deprecation>=2.1.0",
26+
"mypy>=1.4.1",
27+
"ruff>=0.12.5",
28+
"tox>=4.8.0",
29+
"types-setuptools>=69.0.0.0",
30+
]
31+
32+
[project.urls]
33+
HOMEPAGE = "https://example.com"
34+
DOCS = "https://readthedocs.org"
35+
REPO = "http://github.com/splunk/splunk-sdk-python.git"
36+
37+
# [tool.setuptools.package-dir]
38+
# "splunklib" = "splunklib"
39+
# "splunklib.modularinput" = "splunklib/modularinput"
40+
# "splunklib.searchcommands" = "splunklib/searchcommands"

setup.py

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,4 @@
1616

1717
from setuptools import setup
1818

19-
import splunklib
20-
21-
setup(
22-
author="Splunk, Inc.",
23-
24-
author_email="[email protected]",
25-
26-
description="The Splunk Software Development Kit for Python.",
27-
28-
license="http://www.apache.org/licenses/LICENSE-2.0",
29-
30-
name="splunk-sdk",
31-
32-
packages = ["splunklib",
33-
"splunklib.modularinput",
34-
"splunklib.searchcommands"],
35-
36-
install_requires=[
37-
"deprecation",
38-
],
39-
40-
url="http://github.com/splunk/splunk-sdk-python",
41-
42-
version=splunklib.__version__,
43-
44-
classifiers = [
45-
"Programming Language :: Python",
46-
"Development Status :: 6 - Mature",
47-
"Environment :: Other Environment",
48-
"Intended Audience :: Developers",
49-
"License :: OSI Approved :: Apache Software License",
50-
"Operating System :: OS Independent",
51-
"Topic :: Software Development :: Libraries :: Python Modules",
52-
"Topic :: Software Development :: Libraries :: Application Frameworks",
53-
],
54-
)
19+
setup()

0 commit comments

Comments
 (0)