Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bittensor not installing under Python 3.13 #2053

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

mjurbanski-reef
Copy link
Contributor

@mjurbanski-reef mjurbanski-reef commented Jun 21, 2024

Bug

bittensor is not installable under python 3.13

Description of the Change

This is very similar to #1967 , as change is quite simple - loosen up dependency version specifiers to allow for a wider range of environments and easier development with current versions.

Currently, under python 3.13 following error pops up:

ERROR: Ignored the following yanked versions: 1.0.0, 1.0.1, 1.0.2
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.26.0 Requires-Python <3.13,>=3.9; 1.26.0b1 Requires-Python <3.13,>=3.9; 1.26.0rc1 Requires-Python <3.13,>=3.9; 1.26.1 Requires-Python <3.13,>=3.9; 2.0.0 Requires-Python >=3.7,<3.12; 2.1.0 Requires-Python >=3.7,<3.12; 2.1.1 Requires-Python >=3.7,<3.12; 2.1.2 Requires-Python >=3.7,<3.13; 2.2.0 Requires-Python <3.13,>=3.9
ERROR: Could not find a version that satisfies the requirement python-statemachine~=2.1.2 (from bittensor) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.7.0, 0.7.1, 0.8.0, 0.9.0, 1.0.3, 2.3.0, 2.3.1)
ERROR: No matching distribution found for python-statemachine~=2.1.2

This PR fixes that.

Alternate Designs

none sensible I could come up with

Possible Drawbacks

same as #1967 ; tl;dr outweighed by benefits

Verification Process

Manual installation under python 3.13

  • regression tested with bittensor unittests under all supported python versions i.e. excluding Python 3.13.
    This is just so installation passes.

Release Notes

  • make bittensor package installable under Python 3.13 . This doesn't mean Python 3.13 is already officially supported, but it is a step towards that goal.

@thewhaleking
Copy link
Contributor

LGTM. Just update the branch, and I'll merge it in.

@thewhaleking thewhaleking merged commit 091fb61 into opentensor:staging Jun 21, 2024
13 checks passed
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.

3 participants