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

Support Python 3.11 #574

Merged
merged 13 commits into from
Jul 21, 2023
Merged

Support Python 3.11 #574

merged 13 commits into from
Jul 21, 2023

Conversation

borzunov
Copy link
Member

@borzunov borzunov commented Jul 18, 2023

Python 3.11 (stable) has been released in Oct 2022 (https://www.python.org/downloads/release/python-3110/) and soon may become a standard version across many distros. We need to support it.

@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Merging #574 (2583466) into master (b7cbd97) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #574      +/-   ##
==========================================
- Coverage   85.26%   85.23%   -0.04%     
==========================================
  Files          81       81              
  Lines        8004     8006       +2     
==========================================
- Hits         6825     6824       -1     
- Misses       1179     1182       +3     
Impacted Files Coverage Δ
hivemind/averaging/matchmaking.py 88.35% <ø> (+0.59%) ⬆️
hivemind/averaging/partition.py 97.25% <100.00%> (ø)
hivemind/dht/protocol.py 93.15% <100.00%> (ø)
hivemind/dht/traverse.py 75.78% <100.00%> (+0.38%) ⬆️

... and 2 files with indirect coverage changes

@justheuristic justheuristic self-requested a review July 20, 2023 17:48
requirements.txt Outdated
@@ -7,7 +7,7 @@ msgpack>=0.5.6
sortedcontainers
uvloop>=0.14.0
grpcio-tools>=1.33.2
protobuf>=3.12.2,<4.0.0
protobuf==4.23.4
Copy link
Member

Choose a reason for hiding this comment

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

Fixing protobuf version to latest can cause potential conflicts with some older projects. We gotta figure out some reasonably old version where the code (still) works.

Copy link
Member Author

Choose a reason for hiding this comment

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

Please use protobuf>=X

@justheuristic
Copy link
Member

justheuristic commented Jul 20, 2023

@borzunov i've added some tweaks to make py311 install properly. please take a look when u have time

justheuristic and others added 3 commits July 20, 2023 23:00
Co-authored-by: Alexander Borzunov <borzunov.alexander@gmail.com>
Co-authored-by: Alexander Borzunov <borzunov.alexander@gmail.com>
Copy link
Member

@justheuristic justheuristic left a comment

Choose a reason for hiding this comment

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

LGTM 😈

@justheuristic
Copy link
Member

tested: petals client v2.0.0.post3 works in colab with this version of hivemind and forced protobuf 4.x

@borzunov borzunov merged commit ec1d7fe into master Jul 21, 2023
@borzunov borzunov deleted the python-3-11 branch July 21, 2023 07:01
mryab pushed a commit that referenced this pull request Jul 23, 2023
(cherry picked from commit ec1d7fe)
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