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

Bump Python version to 3.9 - 3.11 #1189

Merged
merged 35 commits into from
Dec 11, 2024
Merged

Conversation

tanwarsh
Copy link
Collaborator

@tanwarsh tanwarsh commented Dec 4, 2024

Changes required to remove support for python version 3.8 and below.

the support will be extended to python 3.12 post tensorflow #1204 and keras update #1174.

Copy link
Collaborator

@MasterSkepticista MasterSkepticista left a comment

Choose a reason for hiding this comment

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

Should we set 3.10 through 3.12 (inclusive) as the range? We will already be supporting a python release from 2 years ago with 3.10.

.github/workflows/docker-bench-security.yml Outdated Show resolved Hide resolved
.github/workflows/task_runner_e2e.yml Outdated Show resolved Hide resolved
docs/get_started/examples/interactive_tensorflow_mnist.rst Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@MasterSkepticista MasterSkepticista changed the title WIP: Remove support for Python 3.8. WIP: Bump Python to 3.9 Dec 4, 2024
@tanwarsh tanwarsh changed the title WIP: Bump Python to 3.9 Bump Python version to 3.9 Dec 4, 2024
@theakshaypant
Copy link
Collaborator

@tanwarsh Can we also run the TaskRunner (Eden Compression) and Workflow Interface Tests once the latest setup.py changes have been pulled into this branch.

Signed-off-by: yes <[email protected]>
Signed-off-by: yes <[email protected]>
@tanwarsh tanwarsh changed the title Bump Python version to 3.9 Bump Python version to 3.10 - 3.12 Dec 5, 2024
.github/workflows/windows.yml Outdated Show resolved Hide resolved
Signed-off-by: yes <[email protected]>
@tanwarsh
Copy link
Collaborator Author

tanwarsh commented Dec 5, 2024

@MasterSkepticista @teoparvanov,

We have a deadlock situation here. TensorFlow 2.13 is not supported by Python 3.12, and we have PR #1174 which updates Keras and TensorFlow version to latest. However, we cannot merge it before removing support for Python versions < 3.9, as they are not supported by these latest versions.

My suggestion is to first update the Python version till 3.11, then merge the other PR, and finally add support for Python 3.12.

@MasterSkepticista
Copy link
Collaborator

@MasterSkepticista @teoparvanov,

We have a deadlock situation here. TensorFlow 2.13 is not supported by Python 3.12, and we have PR #1174 which updates Keras and TensorFlow version to latest. However, we cannot merge it before removing support for Python versions < 3.9, as they are not supported by these latest versions.

My suggestion is to first update the Python version till 3.11, then merge the other PR, and finally add support for Python 3.12.

Please bump 2.13 to 2.14 or 2.15.

setup.py Outdated Show resolved Hide resolved
@tanwarsh tanwarsh changed the title Bump Python version to 3.10 - 3.12 WIP:Bump Python version to 3.10 - 3.12 Dec 10, 2024
@MasterSkepticista
Copy link
Collaborator

MasterSkepticista commented Dec 10, 2024

@tanwarsh It is OK to keep the versions 3.9 thru 3.11

3.12 requires bumping tensorflow>=2.16, and we are not ready for keras>=3 transition until workspaces are updated. Numpy issue is related to the fact that the test loads numpy>2.0 library, while a subprocess tries to downgrade to 1.x as part of workspace creation.

To resolve, try switching to torch_cnn_mnist in the python test script. I also think the test itself silently breaks, looking at previous passing logs. That can be a follow up PR to this.

Edit: To fix the eden_compression CI below, set the FQDN to localhost in the workflow file. Refer to other CI workflow files for reference.

@tanwarsh tanwarsh changed the title WIP:Bump Python version to 3.10 - 3.12 WIP:Bump Python version to 3.9 - 3.11 Dec 11, 2024
@tanwarsh tanwarsh changed the title WIP:Bump Python version to 3.9 - 3.11 Bump Python version to 3.9 - 3.11 Dec 11, 2024
@tanwarsh tanwarsh merged commit 7e742dd into securefederatedai:develop Dec 11, 2024
25 checks passed
yontyon pushed a commit to yontyon/openfl that referenced this pull request Dec 11, 2024
* removed python version <= 3.8

Signed-off-by: yes <[email protected]>

* changes as per comments

Signed-off-by: yes <[email protected]>

* revert changes

Signed-off-by: yes <[email protected]>

* doc updated

Signed-off-by: yes <[email protected]>

* python version updated to 3.10 to 3.12

Signed-off-by: yes <[email protected]>

* python version updated to 3.10 to 3.12

Signed-off-by: yes <[email protected]>

* dummy commit

Signed-off-by: yes <[email protected]>

* dummy commit

Signed-off-by: yes <[email protected]>

* version changes

Signed-off-by: yes <[email protected]>

* changed version t0 3.10

Signed-off-by: yes <[email protected]>

* fixed typo

Signed-off-by: yes <[email protected]>

* bump tensorflow to 2.14

Signed-off-by: yes <[email protected]>

* bump tensorflow to 2.15

Signed-off-by: yes <[email protected]>

* revert tensorflo version and removed python version 3.12

Signed-off-by: yes <[email protected]>

* revert tensorflo version and removed python version 3.12

Signed-off-by: yes <[email protected]>

* removed astor

Signed-off-by: yes <[email protected]>

* added nbformat lib

Signed-off-by: yes <[email protected]>

* formatting fix

Signed-off-by: yes <[email protected]>

* numpy version fix

Signed-off-by: yes <[email protected]>

* numpy version fix

Signed-off-by: yes <[email protected]>

* revert python version back to 3.9

Signed-off-by: yes <[email protected]>

* removed astor

Signed-off-by: yes <[email protected]>

* numpy version change

Signed-off-by: yes <[email protected]>

* numpy version change

Signed-off-by: yes <[email protected]>

* numpy version change

Signed-off-by: yes <[email protected]>

* switch to torch_cnn_mnist

Signed-off-by: yes <[email protected]>

---------

Signed-off-by: yes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants