Skip to content

Commit

Permalink
Bump minimum python version to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Oct 2, 2024
1 parent 030e833 commit aa0d04c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/deployment/implementing-ssl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
<VirtualHost *:80>
ServerName yourDomainName
Expand Down
8 changes: 4 additions & 4 deletions docs/deployment/serving-arches-with-apache-nginx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -62,7 +62,7 @@ will benefit your production installation.

.. code-block:: bash
LoadModule wsgi_module "<your venv path>/lib/python3.10/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so"
LoadModule wsgi_module "<your venv path>/lib/python3.11/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so"
WSGIPythonHome "<your venv path>"
Copy these two lines, you will use them in step 3.
Expand All @@ -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
Expand All @@ -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"

<VirtualHost *:80>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/archesproject/arches>`_ repo, this part of the code is often referred to as "core Arches."

Expand All @@ -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 <Create a Virtual Environment>`.
#. :ref:`Create a new Python 3.11+ virtual environment <Create a Virtual Environment>`.

#. Clone the core Arches repo

Expand Down
10 changes: 5 additions & 5 deletions docs/installing/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://docs.python.org/3.10/tutorial/venv.html>`_ before continuing.
If you are unfamiliar with virtual environments, please take a look at the `Python documentation <https://docs.python.org/3.11/tutorial/venv.html>`_ before continuing.

You need a **Python 3.10+** virtual environment. :ref:`Skip ahead <Install Arches with pip>` 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 <Install Arches with pip>` if you have already created and activated one. Otherwise, use the commands below for a quick start.

**Create a virtual environment**::

Expand All @@ -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**

Expand All @@ -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.

Expand Down Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions docs/installing/requirements-and-dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa0d04c

Please sign in to comment.