From aa0d04cbb39af5e921ce6cc05fb8426f5f34e220 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 2 Oct 2024 09:31:35 -0400 Subject: [PATCH] Bump minimum python version to 3.11 Refs archesproject/arches#11380 --- docs/deployment/implementing-ssl.rst | 2 +- docs/deployment/serving-arches-with-apache-nginx.rst | 8 ++++---- .../creating-a-development-environment.rst | 4 ++-- docs/installing/installation.rst | 10 +++++----- docs/installing/requirements-and-dependencies.rst | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/deployment/implementing-ssl.rst b/docs/deployment/implementing-ssl.rst index a54a0ccc..e0f0e8b6 100644 --- a/docs/deployment/implementing-ssl.rst +++ b/docs/deployment/implementing-ssl.rst @@ -61,7 +61,7 @@ You can transfer all the configuration related to arches to the new virtual host .. code-block:: ServerName yourDomainName - LoadModule wsgi_module "/home/ubuntu/Projects/ENV/lib/python3.10/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so" + LoadModule wsgi_module "/home/ubuntu/Projects/ENV/lib/python3.11/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so" WSGIPythonHome "/home/ubuntu/Projects/ENV" ServerName yourDomainName diff --git a/docs/deployment/serving-arches-with-apache-nginx.rst b/docs/deployment/serving-arches-with-apache-nginx.rst index b435e82f..65bd8111 100644 --- a/docs/deployment/serving-arches-with-apache-nginx.rst +++ b/docs/deployment/serving-arches-with-apache-nginx.rst @@ -41,7 +41,7 @@ will benefit your production installation. .. note:: - You may need to install the Python dev package specific to your Python version, e.g. ``python3.10-dev``. + You may need to install the Python dev package specific to your Python version, e.g. ``python3.11-dev``. Now follow one of the following two options: @@ -62,7 +62,7 @@ will benefit your production installation. .. code-block:: bash - LoadModule wsgi_module "/lib/python3.10/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so" + LoadModule wsgi_module "/lib/python3.11/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so" WSGIPythonHome "" Copy these two lines, you will use them in step 3. @@ -76,7 +76,7 @@ will benefit your production installation. $ sudo apt install libapache2-mod-wsgi-py3 Note that the version of Python 3 installed at the system-level may need to match the version used to create the virtual environment pointed to in the config. - For example, if ``libapache2-mod-wsgi-py3`` is compiled against Python 3.10, use Python 3.10 for your virtual environment. + For example, if ``libapache2-mod-wsgi-py3`` is compiled against Python 3.11, use Python 3.11 for your virtual environment. Installing ``mod-wsgi`` this way means you will not need to load it as a module in the Apaache .conf file. 3. Create a new Apache .conf file @@ -95,7 +95,7 @@ will benefit your production installation. # If you have mod_wsgi installed in your python virtual environment, paste the text generated # by 'mod_wsgi-express module-config' here, *before* the VirtualHost is defined. - LoadModule wsgi_module "/home/ubuntu/Projects/ENV/lib/python3.10/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so" + LoadModule wsgi_module "/home/ubuntu/Projects/ENV/lib/python3.11/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so" WSGIPythonHome "/home/ubuntu/Projects/ENV" diff --git a/docs/developing/getting-started/creating-a-development-environment.rst b/docs/developing/getting-started/creating-a-development-environment.rst index c9cc5dec..7867f3e1 100644 --- a/docs/developing/getting-started/creating-a-development-environment.rst +++ b/docs/developing/getting-started/creating-a-development-environment.rst @@ -6,7 +6,7 @@ The following is our recommendation for creating an Arches environment that work **Runtime Content** -+ ``ENV/`` - A Python 3.10+ virtual environment (you can name this whatever you want). ++ ``ENV/`` - A Python 3.11+ virtual environment (you can name this whatever you want). + ``arches/`` - The local clone of your fork of the `archesproject/arches `_ repo, this part of the code is often referred to as "core Arches." @@ -28,7 +28,7 @@ Core Arches You may also be planning to use externally hosted components, like a remote Postgres/PostGIS or Elasticsearch installation. In that case make sure you have the connection information handy, you will need it in a later step. -#. :ref:`Create a new Python 3.10+ virtual environment `. +#. :ref:`Create a new Python 3.11+ virtual environment `. #. Clone the core Arches repo diff --git a/docs/installing/installation.rst b/docs/installing/installation.rst index b5833e73..b87cd224 100644 --- a/docs/installing/installation.rst +++ b/docs/installing/installation.rst @@ -26,9 +26,9 @@ Create a Virtual Environment .. sidebar:: Virtual Environment Reference - If you are unfamiliar with virtual environments, please take a look at the `Python documentation `_ before continuing. + If you are unfamiliar with virtual environments, please take a look at the `Python documentation `_ before continuing. -You need a **Python 3.10+** virtual environment. :ref:`Skip ahead ` if you have already created and activated one. Otherwise, use the commands below for a quick start. +You need a **Python 3.11+** virtual environment. :ref:`Skip ahead ` if you have already created and activated one. Otherwise, use the commands below for a quick start. **Create a virtual environment**:: @@ -38,7 +38,7 @@ This will generate a new directory called ``ENV``. .. note:: - On some linux distributions, if the python version is less than 3.10, entering the following command may yield an error but it should alert you to any dependencies you may need to install, after which you'll be able to run this command. + On some linux distributions, if the python version is less than 3.11, entering the following command may yield an error but it should alert you to any dependencies you may need to install, after which you'll be able to run this command. **Activate the virtual environment** @@ -61,7 +61,7 @@ The following are relative paths to an ``activate`` script within ENV. python This will run the Python interpreter and tell you what version is in use. If you don't -see at least 3.10, check your original Python installation, delete the entire ``ENV`` +see at least 3.11, check your original Python installation, delete the entire ``ENV`` directory, and create a new virtual environment. Use ``exit()`` or ``ctrl+C`` to leave the interpreter. @@ -307,7 +307,7 @@ Building the frontend assets can sometimes be a source of challenge and frustrat ../../arches-rdm/arches_rdm/media/js/.gitkeep 1 bytes [built] [code generated] ./media/js/ sync ^\.\/.*$ 207 bytes [optional] [built] [code generated] ../../arches/arches/app/media/js/ sync ^\.\/.*$ 18.9 KiB [optional] [built] [code generated] - ../../ENV/lib/python3.10/site-packages/ sync ^\.\/.*\/media\/js\/.*$ 160 bytes [optional] [built] [code generated] + ../../ENV/lib/python3.11/site-packages/ sync ^\.\/.*\/media\/js\/.*$ 160 bytes [optional] [built] [code generated] ../../arches-rdm/arches_rdm/media/js/ sync ^\.\/.*$ 160 bytes [optional] [built] [code generated] ../../arches/arches/app/media/js/utils/ sync ^.*\/media\/js\/.*$ 160 bytes [optional] [built] [code generated] ./media/node_modules/moment/locale/ sync ^\.\/.*$ 3.21 KiB [optional] [built] [code generated] diff --git a/docs/installing/requirements-and-dependencies.rst b/docs/installing/requirements-and-dependencies.rst index 3e3321f5..fcdaab48 100644 --- a/docs/installing/requirements-and-dependencies.rst +++ b/docs/installing/requirements-and-dependencies.rst @@ -22,8 +22,8 @@ Software Dependencies Arches requires the following software packages to be installed and available. Ubuntu Linux users see below for an installation script. -:Python >= 3.10: - Installation: https://www.python.org/downloads/ - - Python 3.10 and later comes with pip +:Python >= 3.11: - Installation: https://www.python.org/downloads/ + - Python 3.11 and later comes with pip - **Windows** You must choose 32-bit or 64-bit Python based on your system architecture. - **macOS** This guide works well if you wish to install via `brew`: https://docs.python-guide.org/starting/install3/osx/ :Git >= 2.0: - Installation: https://git-scm.com/downloads