-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Temporarily Restrict setuptools Version to 79.0.1 #8441
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
Conversation
Signed-off-by: Eric Kerfoot <[email protected]>
Signed-off-by: YunLiu <[email protected]>
Signed-off-by: YunLiu <[email protected]>
I tried merge the change in this pr: https://github.com/Project-MONAI/MONAI/pull/8436/files, otherwise the ci can not pass. cc @ericspod |
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.
Pull Request Overview
This PR temporarily restricts the setuptools version to 79.0.1 to maintain compatibility with the current setup, while also updating torch version and target Python versions in various project files.
- Updated requirements-min.txt to restrict setuptools for Python 3.12 and above
- Revised torch dependency and target Python versions in pyproject.toml and workflow files
- Made a type adjustment in the ddpm scheduler for variance
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
requirements-min.txt | Updated setuptools dependency to enforce an upper limit for Python 3.12+ |
pyproject.toml | Revised torch version requirement and updated black's target Python versions |
monai/networks/schedulers/ddpm.py | Changed variance from an integer to a tensor with type annotation |
.github/workflows/pythonapp.yml | Updated torch version in installation steps |
.github/workflows/pythonapp-min.yml | Adjusted the pytorch version matrix with a FIXME comment |
Files not reviewed (2)
- docs/requirements.txt: Language not supported
- setup.cfg: Language not supported
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.
Looks fine to me, we can merge the previous PR if there's anything included in these changes.
We need fixed the version of setuptools to fix the ci issue in this pr: https://github.com/Project-MONAI/MONAI/pull/8436/files |
Sure we'll merge this one and I'll handle the merging for my PR. |
/build |
Temporarily set min-dep-pytorch (latest) as not required in this PR. |
Signed-off-by: YunLiu <[email protected]>
/build |
@@ -1,3 +1,2 @@ | |||
torch>=2.3.0; sys_platform != 'win32' | |||
torch>=2.4.1; sys_platform == 'win32' | |||
torch>=2.4.1, <2.7.0 |
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.
@ericspod Was it intentional to also bump the minimum torch on non-Windows platforms from 2.3.0 to 2.4.1?
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.
It was yes, we intend to support the previous three versions of Pytorch so 2.3 fell out of official support for MONAI.
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.
workaround for #8439
Description
This PR temporarily restricts the setuptools version to 79.0.1 to maintain compatibility with our current setup. In future updates, we need to review and update our setup configurations to accommodate later versions of setuptools.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.