From 76ee0a2235278622f3e9037211a684ddd7ccc091 Mon Sep 17 00:00:00 2001 From: Charles Beauville Date: Fri, 13 Sep 2024 09:06:44 +0200 Subject: [PATCH] docs(framework) Use Python 3.9 as default (#4196) --- doc/locales/fr/LC_MESSAGES/framework-docs.po | 18 ++++++++--------- doc/locales/ko/LC_MESSAGES/framework-docs.po | 16 +++++++-------- .../pt_BR/LC_MESSAGES/framework-docs.po | 8 ++++---- .../zh_Hans/LC_MESSAGES/framework-docs.po | 20 +++++++++---------- ...ontributor-how-to-set-up-a-virtual-env.rst | 2 +- ...-tutorial-get-started-as-a-contributor.rst | 10 +++++----- doc/source/how-to-install-flower.rst | 2 +- doc/source/how-to-upgrade-to-flower-next.rst | 2 +- 8 files changed, 39 insertions(+), 39 deletions(-) diff --git a/doc/locales/fr/LC_MESSAGES/framework-docs.po b/doc/locales/fr/LC_MESSAGES/framework-docs.po index efa10a69531c..828194398e5e 100644 --- a/doc/locales/fr/LC_MESSAGES/framework-docs.po +++ b/doc/locales/fr/LC_MESSAGES/framework-docs.po @@ -1040,12 +1040,12 @@ msgstr "Version Python" #: ../../source/how-to-install-flower.rst:8 #, fuzzy msgid "" -"Flower requires at least `Python 3.8 `_, " +"Flower requires at least `Python 3.9 `_, " "but `Python 3.10 `_ or above is " "recommended." msgstr "" -"Flower nécessite `Python 3.7 `_ ou plus, " -"nous recommandons `Python 3.8 `_." +"Flower nécessite `Python 3.9 `_ ou plus, " +"nous recommandons `Python 3.10 `_." #: ../../source/contributor-how-to-set-up-a-virtual-env.rst:14 msgid "" @@ -2226,8 +2226,8 @@ msgstr "Prérequis" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:7 #, fuzzy -msgid "`Python 3.8 `_ or above" -msgstr "`Python 3.7 `_ ou plus" +msgid "`Python 3.9 `_ or above" +msgstr "`Python 3.10 `_ ou plus" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:8 msgid "`Poetry 1.3 `_ or above" @@ -2321,22 +2321,22 @@ msgstr "" msgid "" "If you don't have :code:`pyenv` installed, the following script that will" " install it, set it up, and create the virtual environment (with " -":code:`Python 3.8.17` by default)::" +":code:`Python 3.9.20` by default)::" msgstr "" "Si vous n'avez pas :code:`pyenv` installé, vous pouvez utiliser le script" " suivant qui l'installera, le configurera et créera l'environnement " -"virtuel (avec :code:`Python 3.8.17` par défaut)::" +"virtuel (avec :code:`Python 3.9.20` par défaut)::" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:58 #, fuzzy msgid "" "If you already have :code:`pyenv` installed (along with the :code:`pyenv-" "virtualenv` plugin), you can use the following convenience script (with " -":code:`Python 3.8.17` by default)::" +":code:`Python 3.9.20` by default)::" msgstr "" "Si vous n'avez pas :code:`pyenv` installé, vous pouvez utiliser le script" " suivant qui l'installera, le configurera et créera l'environnement " -"virtuel (avec :code:`Python 3.8.17` par défaut)::" +"virtuel (avec :code:`Python 3.9.20` par défaut)::" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:62 #, fuzzy diff --git a/doc/locales/ko/LC_MESSAGES/framework-docs.po b/doc/locales/ko/LC_MESSAGES/framework-docs.po index 61fb61a2c5b9..352e36db3e6b 100644 --- a/doc/locales/ko/LC_MESSAGES/framework-docs.po +++ b/doc/locales/ko/LC_MESSAGES/framework-docs.po @@ -1058,10 +1058,10 @@ msgstr "Python 버전" #: ../../source/contributor-how-to-set-up-a-virtual-env.rst:11 #: ../../source/how-to-install-flower.rst:8 msgid "" -"Flower requires at least `Python 3.8 `_, but " +"Flower requires at least `Python 3.9 `_, but " "`Python 3.10 `_ or above is recommended." msgstr "" -"Flower는 `Python 3.8 `_이상이 필요하지만, " +"Flower는 `Python 3.9 `_이상이 필요하지만, " "`Python 3.10 `_이상을 권장합니다." #: ../../source/contributor-how-to-set-up-a-virtual-env.rst:14 @@ -2143,8 +2143,8 @@ msgid "Prerequisites" msgstr "전제 조건" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:7 -msgid "`Python 3.8 `_ or above" -msgstr "Python 3.8 `_ 이상" +msgid "`Python 3.9 `_ or above" +msgstr "Python 3.9 `_ 이상" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:8 msgid "`Poetry 1.3 `_ or above" @@ -2242,20 +2242,20 @@ msgstr "" msgid "" "If you don't have :code:`pyenv` installed, the following script that will " "install it, set it up, and create the virtual environment (with :code:" -"`Python 3.8.17` by default)::" +"`Python 3.9.20` by default)::" msgstr "" ":code:`pyenv`가 설치되어 있지 않은 경우 다음 스크립트를 사용하여 설치, 설정 " -"및 가상 환경을 생성합니다(기본적으로 :code:`Python 3.8.17` 사용):" +"및 가상 환경을 생성합니다(기본적으로 :code:`Python 3.9.20` 사용):" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:58 msgid "" "If you already have :code:`pyenv` installed (along with the :code:`pyenv-" "virtualenv` plugin), you can use the following convenience script (with :" -"code:`Python 3.8.17` by default)::" +"code:`Python 3.9.20` by default)::" msgstr "" ":code:`pyenv`가 이미 설치되어 있는 경우( :code:`pyenv-virtualenv` 플러그인과 " "함께) 다음과 같은 편의 스크립트를 사용할 수 있습니다(기본적으로 코드:`Python " -"3.8.17` 사용):" +"3.9.20` 사용):" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:62 msgid "" diff --git a/doc/locales/pt_BR/LC_MESSAGES/framework-docs.po b/doc/locales/pt_BR/LC_MESSAGES/framework-docs.po index e50c290432cc..ccf3c080cc0b 100644 --- a/doc/locales/pt_BR/LC_MESSAGES/framework-docs.po +++ b/doc/locales/pt_BR/LC_MESSAGES/framework-docs.po @@ -1003,7 +1003,7 @@ msgstr "" #: ../../source/contributor-how-to-set-up-a-virtual-env.rst:11 #: ../../source/how-to-install-flower.rst:8 msgid "" -"Flower requires at least `Python 3.8 `_, " +"Flower requires at least `Python 3.9 `_, " "but `Python 3.10 `_ or above is " "recommended." msgstr "" @@ -1923,7 +1923,7 @@ msgid "Prerequisites" msgstr "" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:7 -msgid "`Python 3.8 `_ or above" +msgid "`Python 3.9 `_ or above" msgstr "" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:8 @@ -2006,14 +2006,14 @@ msgstr "" msgid "" "If you don't have :code:`pyenv` installed, the following script that will" " install it, set it up, and create the virtual environment (with " -":code:`Python 3.8.17` by default)::" +":code:`Python 3.9.20` by default)::" msgstr "" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:58 msgid "" "If you already have :code:`pyenv` installed (along with the :code:`pyenv-" "virtualenv` plugin), you can use the following convenience script (with " -":code:`Python 3.8.17` by default)::" +":code:`Python 3.9.20` by default)::" msgstr "" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:62 diff --git a/doc/locales/zh_Hans/LC_MESSAGES/framework-docs.po b/doc/locales/zh_Hans/LC_MESSAGES/framework-docs.po index e9279db19043..516d54043c55 100644 --- a/doc/locales/zh_Hans/LC_MESSAGES/framework-docs.po +++ b/doc/locales/zh_Hans/LC_MESSAGES/framework-docs.po @@ -1032,11 +1032,11 @@ msgstr "Python 版本" #: ../../source/contributor-how-to-set-up-a-virtual-env.rst:11 #: ../../source/how-to-install-flower.rst:8 msgid "" -"Flower requires at least `Python 3.8 `_, " +"Flower requires at least `Python 3.9 `_, " "but `Python 3.10 `_ or above is " "recommended." msgstr "" -"Flower 至少需要 `Python 3.8 `_,但建议使用 `Python " +"Flower 至少需要 `Python 3.9 `_,但建议使用 `Python " "3.10 `_或更高版本。" #: ../../source/contributor-how-to-set-up-a-virtual-env.rst:14 @@ -2062,8 +2062,8 @@ msgstr "先决条件" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:7 #, fuzzy -msgid "`Python 3.8 `_ or above" -msgstr "Python 3.7 `_ 或更高版本" +msgid "`Python 3.9 `_ or above" +msgstr "Python 3.9 `_ 或更高版本" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:8 msgid "`Poetry 1.3 `_ or above" @@ -2161,20 +2161,20 @@ msgstr "" msgid "" "If you don't have :code:`pyenv` installed, the following script that will" " install it, set it up, and create the virtual environment (with " -":code:`Python 3.8.17` by default)::" +":code:`Python 3.9.20` by default)::" msgstr "" "如果没有安装 :code:`pyenv`,可以使用以下脚本安装 pyenv、设置并创建虚拟环境(默认使用 " -":code:`Python3.8.17)::" +":code:`Python 3.9.20)::" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:58 #, fuzzy msgid "" "If you already have :code:`pyenv` installed (along with the :code:`pyenv-" "virtualenv` plugin), you can use the following convenience script (with " -":code:`Python 3.8.17` by default)::" +":code:`Python 3.9.20` by default)::" msgstr "" "如果没有安装 :code:`pyenv`,可以使用以下脚本安装 pyenv、设置并创建虚拟环境(默认使用 " -":code:`Python3.8.17)::" +":code:`Python 3.9.20)::" #: ../../source/contributor-tutorial-get-started-as-a-contributor.rst:62 #, fuzzy @@ -17131,7 +17131,7 @@ msgstr "停用" #: ../../source/ref-changelog.md:77 #, fuzzy msgid "**Deprecate Python 3.8 support**" -msgstr "** 过时的 Python 3.7**" +msgstr "** 过时的 Python 3.8**" #: ../../source/ref-changelog.md:79 #, fuzzy @@ -17139,7 +17139,7 @@ msgid "" "Python 3.8 will stop receiving security fixes in [October " "2024](https://devguide.python.org/versions/). Support for Python 3.8 is " "now deprecated and will be removed in an upcoming release." -msgstr "由于 Python 3.7 已于 2023-06-27 弃用 (EOL),对 Python 3.7 的支持现已废弃,并将在即将发布的版本中移除。" +msgstr "由于 Python 3.8 已于 2024-10-01 弃用 (EOL),对 Python 3.7 的支持现已废弃,并将在即将发布的版本中移除。" #: ../../source/ref-changelog.md:81 #, fuzzy diff --git a/doc/source/contributor-how-to-set-up-a-virtual-env.rst b/doc/source/contributor-how-to-set-up-a-virtual-env.rst index 8b684e24c658..a844298fdca9 100644 --- a/doc/source/contributor-how-to-set-up-a-virtual-env.rst +++ b/doc/source/contributor-how-to-set-up-a-virtual-env.rst @@ -8,7 +8,7 @@ You can follow the instructions or choose your preferred setup. Python Version -------------- -Flower requires at least `Python 3.8 `_, but `Python 3.10 `_ or above is recommended. +Flower requires at least `Python 3.9 `_, but `Python 3.10 `_ or above is recommended. .. note:: Due to a known incompatibility with `ray `_, diff --git a/doc/source/contributor-tutorial-get-started-as-a-contributor.rst b/doc/source/contributor-tutorial-get-started-as-a-contributor.rst index d7d647996a3d..3dac8647fa33 100644 --- a/doc/source/contributor-tutorial-get-started-as-a-contributor.rst +++ b/doc/source/contributor-tutorial-get-started-as-a-contributor.rst @@ -4,7 +4,7 @@ Get started as a contributor Prerequisites ------------- -- `Python 3.8 `_ or above +- `Python 3.9 `_ or above - `Poetry 1.3 `_ or above - (Optional) `pyenv `_ - (Optional) `pyenv-virtualenv `_ @@ -51,11 +51,11 @@ GitHub:: 2. Let's create the Python environment for all-things Flower. If you wish to use :code:`pyenv`, we provide two convenience scripts that you can use. If you prefer using something else than :code:`pyenv`, create a new environment, activate and skip to the last point where all packages are installed. -* If you don't have :code:`pyenv` installed, the following script that will install it, set it up, and create the virtual environment (with :code:`Python 3.8.17` by default):: +* If you don't have :code:`pyenv` installed, the following script that will install it, set it up, and create the virtual environment (with :code:`Python 3.9.20` by default):: $ ./dev/setup-defaults.sh # once completed, run the bootstrap script -* If you already have :code:`pyenv` installed (along with the :code:`pyenv-virtualenv` plugin), you can use the following convenience script (with :code:`Python 3.8.17` by default):: +* If you already have :code:`pyenv` installed (along with the :code:`pyenv-virtualenv` plugin), you can use the following convenience script (with :code:`Python 3.9.20` by default):: $ ./dev/venv-create.sh # once completed, run the `bootstrap.sh` script @@ -78,8 +78,8 @@ Create/Delete Virtual Environment :: - $ ./dev/venv-create.sh # Default is 3.8.17 - $ ./dev/venv-delete.sh # Default is 3.8.17 + $ ./dev/venv-create.sh # Default is 3.9.20 + $ ./dev/venv-delete.sh # Default is 3.9.20 Compile ProtoBuf Definitions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/doc/source/how-to-install-flower.rst b/doc/source/how-to-install-flower.rst index d773e6999245..a621377c8ce6 100644 --- a/doc/source/how-to-install-flower.rst +++ b/doc/source/how-to-install-flower.rst @@ -5,7 +5,7 @@ Install Flower Python version -------------- -Flower requires at least `Python 3.8 `_, but `Python 3.10 `_ or above is recommended. +Flower requires at least `Python 3.9 `_, but `Python 3.10 `_ or above is recommended. Install stable release diff --git a/doc/source/how-to-upgrade-to-flower-next.rst b/doc/source/how-to-upgrade-to-flower-next.rst index e1e94f095b60..f378e92dbba4 100644 --- a/doc/source/how-to-upgrade-to-flower-next.rst +++ b/doc/source/how-to-upgrade-to-flower-next.rst @@ -88,7 +88,7 @@ Ensure you set the following version constraint in your ``pyproject.toml``: .. code-block:: toml [tool.poetry.dependencies] - python = "^3.8" + python = "^3.9" # Without simulation support flwr = ">=1.8,<2.0"