Skip to content

Support Python 3.14 in bittensor 11.0.1 - #2974

Merged
UnArbosSix merged 1 commit into
v438-releasefrom
fix/python-3.14-support
Jul 23, 2026
Merged

Support Python 3.14 in bittensor 11.0.1#2974
UnArbosSix merged 1 commit into
v438-releasefrom
fix/python-3.14-support

Conversation

@UnArbosFive

Copy link
Copy Markdown
Contributor

What changed

  • Release the unified Python SDK as 11.0.1 with support declared for Python 3.10 through 3.14.
  • Add a Python 3.14 package smoke check covering both import bittensor and the btcli entry point.
  • Update the SDK and website compatibility statements to include Python 3.14.
  • Remove the obsolete Python 3.14 migration warning and fallback instructions.

Why

bittensor 11.0.0 declares Requires-Python <3.14. On Python 3.14, pip therefore selects the older compatible v10 SDK, which does not contain the unified btcli entry point. Because published PyPI metadata is immutable, support must ship in a new patch release.

The SDK itself is compatible with Python 3.14; the exclusion was in package metadata rather than runtime behavior.

Impact

After 11.0.1 is published, Python 3.14 users running the documented migration receive the unified v11 SDK and CLI. Python 3.10 through 3.13 remain supported, while unfinished Python 3.15 releases remain excluded.

Validation

  • Installed the local package in an isolated Python 3.14.6 environment.
  • Verified import bittensor, btcli --version, and package dependency compatibility.
  • Ran the full Python 3.14 SDK suite: 984 passed, 1 skipped.
  • Verified generated documentation is current.
  • Ran the stable SDK distribution preparation test.
  • Built the production documentation website successfully.

Stacked onto #2970 (v438-release) so the package metadata and documentation can ship together.

@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
subtensor Ready Ready Preview, Comment Jul 23, 2026 7:52pm

Request Review

@github-actions

github-actions Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

🛡️ AI Review — Skeptic (security review)

VERDICT: SAFE

BASELINE scrutiny — repository admin/nucleus-associated author; no Gittensor association found; fix/python-3.14-support → stacked release branch v438-release.

The diff consistently expands SDK support to Python 3.14, updates matching documentation and tests, and regenerates lockfile metadata. The only resolved dependency version change is the declared development dependency bump for hypothesis; no runtime, production dependency-set, economic, origin, or trusted AI-review instruction changes are present.

Findings

No findings.

Conclusion

No malicious behavior or security vulnerability was found in the supplied diff.


🔍 AI Review — Auditor (domain review)

VERDICT: 👍

UNKNOWN Gittensor association; repository admin and established subtensor contributor, so standard correctness scrutiny applies.

The Python 3.14 package metadata, lockfile, documentation, CLI smoke check, and dependency floor are consistent. The previously required stable-publication work from #2972 is now present in the base branch (bittensor-core>=0.1.1).

No runtime code is affected, and v438-release has no spec-version check. The overlapping PRs are an integration parent or unrelated changes sharing files, not competing implementations.

Findings

No findings.

Prior-comment reconciliation

Conclusion

The prior release blocker is resolved, and the PR is ready to merge into the V438 integration branch.


📜 Previous run (superseded)
Sev File Finding Status
HIGH sdk/python/pyproject.toml:7 The 11.0.1 release still republishes an immutable core version ✅ Addressed
PR #2972 has merged into v438-release; the base now requires bittensor-core>=0.1.1,<0.2.0 and carries the stable-publication changes.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI review — see the sticky summary comment for the verdict and the inline comments below for specific findings.

Comment thread sdk/python/pyproject.toml
[project]
name = "bittensor"
version = "11.0.0.dev0"
version = "11.0.1.dev0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] The 11.0.1 release still republishes an immutable core version

This branch bumps only the SDK version, while the current release workflow also builds and publishes bittensor-core at the already-released 0.1.0 version. PyPI rejects re-uploading an existing filename, so the publish job cannot deliver the promised bittensor 11.0.1. PR #2972 addresses this by bumping core to 0.1.1, updating the SDK constraint, and hardening stable publication. Make #2972 a prerequisite and rebase this PR onto it, or incorporate those changes here.

@github-actions

Copy link
Copy Markdown
Contributor

🔄 AI review updated — Skeptic: SAFE Auditor: 👎

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI review — see the sticky summary comment for the verdict and the inline comments below for specific findings.

Comment thread sdk/python/pyproject.toml
[project]
name = "bittensor"
version = "11.0.0.dev0"
version = "11.0.1.dev0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] The 11.0.1 release still republishes an immutable core version

The stable workflow builds and uploads both packages, but this branch still leaves sdk/bittensor-core-py/pyproject.toml at already-published version 0.1.0 and permits that version through bittensor-core>=0.1.0. PyPI versions are immutable, so publication cannot complete as described. PR #2972 supplies the required bittensor-core 0.1.1 bump, dependency floor, and retry-safe release pipeline; merge it first and rebase this PR.

@UnArbosFive
UnArbosFive force-pushed the fix/python-3.14-support branch from aabb94d to 8f80ba1 Compare July 23, 2026 18:58
@github-actions

Copy link
Copy Markdown
Contributor

🔄 AI review updated — Skeptic: SAFE Auditor: 👎

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI review — see the sticky summary comment for the verdict and the inline comments below for specific findings.

Comment thread sdk/python/pyproject.toml
[project]
name = "bittensor"
version = "11.0.0.dev0"
version = "11.0.1.dev0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] The 11.0.1 release still republishes an immutable core version

The release remains coupled to bittensor-core 0.1.0, while the stable workflow builds and submits that already-published version alongside SDK 11.0.1. The corrective 0.1.1 versioning and publication changes are still isolated in #2972. Merge #2972 first and rebase this branch; otherwise this PR does not provide a self-contained, reliable path to the release promised in its description.

@github-actions

Copy link
Copy Markdown
Contributor

🔄 AI review updated — Skeptic: SAFE Auditor: 👎

@UnArbosFive
UnArbosFive marked this pull request as ready for review July 23, 2026 19:38

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI review — see the sticky summary comment for the verdict and the inline comments below for specific findings.

Comment thread sdk/python/pyproject.toml
[project]
name = "bittensor"
version = "11.0.0.dev0"
version = "11.0.1.dev0"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] The 11.0.1 release still republishes an immutable core version

The base release workflow still stamps and uploads bittensor-core 0.1.0 alongside the SDK. Because that core version is already published and PyPI versions are immutable, publication of 11.0.1 cannot complete as described. PR #2972 bumps the core to 0.1.1 and makes stable publication retry-safe; merge it first and rebase this branch, retaining the Python 3.14 metadata changes.

@github-actions

Copy link
Copy Markdown
Contributor

🔄 AI review updated — Skeptic: SAFE Auditor: 👎

@UnArbosFive
UnArbosFive force-pushed the fix/python-3.14-support branch from 8f80ba1 to a38ca0d Compare July 23, 2026 19:47
@UnArbosSix
UnArbosSix merged commit f480352 into v438-release Jul 23, 2026
51 of 52 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🔄 AI review updated — Skeptic: SAFE Auditor: 👍

@UnArbosSix
UnArbosSix deleted the fix/python-3.14-support branch July 23, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants