splunk / splunk/splunk-sdk-python

Splunk core -> python3.13

Aperta
#785 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Python
Stelle
743
Fork
387
Merge medio
42m
PR unite (30g)
4

Descrizione

Hi all,

Thank you for your efforts in getting some work done in the SDK.

Unfortunately, the requirement for Python 3.13, driven by the libraries used in the ai subpackage, renders all new SDK releases unusable for app developers. This is simply because there are multiple still-supported Splunk Enterprise versions that cannot use Python 3.13.

https://www.splunk.com/en_us/legal/splunk-software-support-policy.html#core

Version End of Support Date
9.3 Jul 24 2026
9.4 Dec 16 2026
10.0 Jul 28 2027

I propose creating a second project for the AI-related work and keeping splunk-sdk-python focused on its core purpose. Then you could do something like:

# splunk-sdk
[project]
name = "splunk-sdk"
requires-python = ">=3.9"

[project.optional-dependencies]
ai = [
  "splunk-sdk-ai==1.0.0",
]

# splunk-sdk-ai
[project]
name = "splunk-sdk-ai"
requires-python = ">=3.13"

dependencies = [
  "splunk-sdk>=3.0.0",
  "httpx==0.28.1",
  "langchain>=1.2.18",
  "mcp>=1.27.1",
  "pydantic>=2.13.4",
]

With this, it would be possible to just install the required package for 3.9 as well as pip install "splunk-sdk[ai]" that would fail on python3.9.

Best,
Simon

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Start by reviewing the current dependency metadata and the ai subpackage to understand how Python 3.13 is imposed on the SDK. The proposed outcome is a core package that remains usable on Python 3.9 and a separately installable AI package with the newer requirement; the issue does not name specific files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
build-system, developer-experience
Tipo di issue
Refactoring
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.