Skip to content

Commit

Permalink
Upgrade examples and E2E tests to Python 3.8 (#2304)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Taner Topal <taner@flower.dev>
Co-authored-by: Charles Beauville <charlesbeauville@gmail.com>
Co-authored-by: Charles Beauville <charles@adap.com>
  • Loading branch information
4 people committed Sep 7, 2023
1 parent 6a78c56 commit bd21528
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion doc/source/ref-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### Incompatible changes

- **Remove support for Python 3.7** ([#2280](https://github.com/adap/flower/pull/2280), [#2299](https://github.com/adap/flower/pull/2299))
- **Remove support for Python 3.7** ([#2280](https://github.com/adap/flower/pull/2280), [#2299](https://github.com/adap/flower/pull/2299), [2304](https://github.com/adap/flower/pull/2304))

Python 3.7 support was deprecated in Flower 1.5, and this release removes support. Flower now requires Python 3.8.

Expand Down
2 changes: 1 addition & 1 deletion e2e/bare/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ description = "Bare Federated Learning test with Flower"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
flwr = { path = "../../", develop = true, extras = ["simulation"] }
5 changes: 3 additions & 2 deletions e2e/fastai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ description = "Fastai Federated Learning E2E test with Flower"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = ">=3.7,<3.10"
python = ">=3.8,<3.10"
flwr = { path = "../../", develop = true, extras = ["simulation"] }
fastai = "^2.7.10"
fastai = "^2.7.12"
torch = ">=2.0.0, !=2.0.1"
2 changes: 1 addition & 1 deletion e2e/pytorch-lightning/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Federated Learning E2E test with Flower and PyTorch Lightning"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
flwr = { path = "../../", develop = true, extras = ["simulation"] }
pytorch-lightning = "1.6.0"
torchvision = "0.14.1"
2 changes: 1 addition & 1 deletion e2e/pytorch/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "PyTorch Federated Learning Quickstart with Flower"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
flwr = { path = "../../", develop = true, extras = ["simulation"] }
torch = "^1.12.0"
torchvision = "^0.14.1"
Expand Down
2 changes: 1 addition & 1 deletion e2e/strategies/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ description = "Keras Federated Learning Quickstart with Flower"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = ">=3.7,<3.11"
python = ">=3.8,<3.11"
flwr = { path = "../../", develop = true, extras = ["simulation"] }
tensorflow-cpu = "^2.9.1, !=2.11.1"
2 changes: 1 addition & 1 deletion e2e/tensorflow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ description = "Keras Federated Learning Quickstart with Flower"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = ">=3.7,<3.11"
python = ">=3.8,<3.11"
flwr = { path = "../../", develop = true, extras = ["simulation"] }
tensorflow-cpu = "^2.9.1, !=2.11.1"
2 changes: 1 addition & 1 deletion examples/ios/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ description = "Example Server for Flower iOS/CoreML"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = ">=3.7,<3.11"
python = ">=3.8,<3.11"
flwr = "^1.0.0"
2 changes: 1 addition & 1 deletion examples/quickstart-fastai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ description = "Fastai Federated Learning Quickstart with Flower"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = ">=3.7,<3.10"
python = ">=3.8,<3.10"
flwr = "^1.0.0"
fastai = "^2.7.10"
2 changes: 1 addition & 1 deletion examples/quickstart-pytorch-lightning/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Federated Learning Quickstart with Flower and PyTorch Lightning"
authors = ["The Flower Authors <hello@flower.dev>"]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
flwr = ">=1.0,<2.0"
# flwr = { path = "../../", develop = true } # Development
pytorch-lightning = "1.6.0"
Expand Down

0 comments on commit bd21528

Please sign in to comment.