-
Notifications
You must be signed in to change notification settings - Fork 175
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
Require torch<2.0 until 2.0 is supported, add Python 3.10 to CI #558
Conversation
Codecov Report
@@ Coverage Diff @@
## master #558 +/- ##
==========================================
- Coverage 76.01% 75.98% -0.03%
==========================================
Files 81 81
Lines 7995 7995
==========================================
- Hits 6077 6075 -2
- Misses 1918 1920 +2 |
@@ -17,7 +17,7 @@ jobs: | |||
with: | |||
python-version: 3.9 | |||
- name: Cache dependencies | |||
uses: actions/cache@v2 | |||
uses: actions/cache@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2 is deprecated.
@@ -20,7 +20,7 @@ class NodeKiller: | |||
"""Auxiliary class that kills dht nodes over a pre-defined schedule""" | |||
|
|||
def __init__(self, shutdown_peers: list, shutdown_timestamps: list): | |||
self.shutdown_peers = set(shutdown_peers) | |||
self.shutdown_peers = shutdown_peers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random.choice()
doesn't support sets in 3.10, let's keep it a list.
@@ -5,7 +5,6 @@ pytest-cov | |||
coverage==6.0.2 # see https://github.com/pytest-dev/pytest-cov/issues/520 | |||
tqdm | |||
scikit-learn | |||
torchvision |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like an excess dependency.
If present, it forces to upgrade torch to 2.0.0 during pip install -r requirements-dev.txt
, which breaks installation from source (build_and_test_p2pd
in CI).
PyTorch 2.0 is not supported yet, it's support will be added in #559 (there are multiple issues to resolve). Until then, we need to require
torch<2.0.0
(otherwise 2.0.0 is installed, so CI doesn't work right now).This PR also adds Python 3.10 to the CI.