opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
816 stars 274 forks source link

fix bittensor not installing under Python 3.13 #2053

Closed mjurbanski-reef closed 1 week ago

mjurbanski-reef commented 1 week ago

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

Release Notes

thewhaleking commented 1 week ago

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