You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2025/09/03 17:59:45 UTC

(allura) branch master updated: [#8583] add support for python 3.13

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new d2e82d1e4 [#8583] add support for python 3.13
d2e82d1e4 is described below

commit d2e82d1e448df9584b5cc90fa6cefd223c607cd5
Author: Dillon Walls <di...@slashdotmedia.com>
AuthorDate: Fri Aug 29 10:37:26 2025 -0400

    [#8583] add support for python 3.13
---
 Allura/docs/conf.py                               | 4 ++++
 Allura/docs/getting_started/install_each_step.rst | 8 ++++----
 Allura/docs/getting_started/installation.rst      | 4 ++--
 CHANGES                                           | 5 +++++
 Dockerfile                                        | 2 +-
 README.markdown                                   | 2 +-
 scripts/init-docker-dev.sh                        | 2 +-
 scripts/jenkins-run.sh                            | 2 +-
 8 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/Allura/docs/conf.py b/Allura/docs/conf.py
index 55f602acd..0cea9ccbd 100644
--- a/Allura/docs/conf.py
+++ b/Allura/docs/conf.py
@@ -224,3 +224,7 @@
 
 # Example configuration for intersphinx: refer to the Python standard library.
 intersphinx_mapping = {'python': ('https://docs.python.org/3/', None)}
+
+rst_prolog = """
+.. |pyversion| replace:: 3.13
+"""
diff --git a/Allura/docs/getting_started/install_each_step.rst b/Allura/docs/getting_started/install_each_step.rst
index fa1258e0a..6290d3986 100644
--- a/Allura/docs/getting_started/install_each_step.rst
+++ b/Allura/docs/getting_started/install_each_step.rst
@@ -44,7 +44,7 @@ In these instructions, we'll use `VirtualBox <http://www.virtualbox.org>`__ and
 System Packages
 ^^^^^^^^^^^^^^^
 
-Before we begin, you'll need to install some system packages.  Allura currently supports Python 3.10 through 3.11.  The steps below use Python 3.11.
+Before we begin, you'll need to install some system packages.  Allura currently supports Python 3.10 through 3.13.  The steps below use Python 3.13.
 
 .. code-block:: bash
 
@@ -53,7 +53,7 @@ Before we begin, you'll need to install some system packages.  Allura currently
     ~$ sudo apt-get install software-properties-common
     ~$ sudo add-apt-repository ppa:deadsnakes/ppa
     ~$ sudo apt-get update
-    ~$ sudo apt-get install git-core python3.11 python3.11-dev gcc libmagic1 libssl-dev libldap2-dev libsasl2-dev libjpeg8-dev zlib1g-dev libffi-dev
+    ~$ sudo apt-get install git-core python3.13 python3.13-dev gcc libmagic1 libssl-dev libldap2-dev libsasl2-dev libjpeg8-dev zlib1g-dev libffi-dev
 
 To install MongoDB, follow the instructions `here <https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/>`_.
 
@@ -70,13 +70,13 @@ The first step to installing the Allura platform is installing a virtual environ
 
 .. code-block:: bash
 
-    ~$ sudo apt-get install python3.11-venv
+    ~$ sudo apt-get install python3.13-venv
 
 Then create a virtual environment.  We'll call our Allura environment 'env-allura'.
 
 .. code-block:: bash
 
-    ~$ python3.11 -m venv env-allura
+    ~$ python3.13 -m venv env-allura
 
 This gives us a nice, clean environment into which we can install all the allura dependencies.
 In order to use the virtual environment, you'll need to activate it:
diff --git a/Allura/docs/getting_started/installation.rst b/Allura/docs/getting_started/installation.rst
index bb3771d56..007084e0e 100644
--- a/Allura/docs/getting_started/installation.rst
+++ b/Allura/docs/getting_started/installation.rst
@@ -67,7 +67,7 @@ Build/fetch all required images:
 
 .. note::
 
-   You can override the python version by adding :code:`--build-arg PY_VERSION=3.11` for example.
+   You can override the python version by adding :code:`--build-arg PY_VERSION=3.13` for example.
 
 Python and JS package setup (and first containers started):
 
@@ -279,7 +279,7 @@ If you'd like to use another webserver, here are a few options:
 .. code-block:: bash
 
     ~$ pip install mod_wsgi  # requires httpd2 devel libraries installed in the system
-    ~$ mod_wsgi-express start-server development.ini --application-type paste --user allura --group allura --port 8080  --python-path /PATH/TO/VIRTUALENV/lib/python3.11/site-packages/
+    ~$ mod_wsgi-express start-server development.ini --application-type paste --user allura --group allura --port 8080  --python-path /PATH/TO/VIRTUALENV/lib/python3.13/site-packages/
 
 For any other wsgi server (e.g. mod_wsgi with Apache, or waitress) you will need a wsgi callable set up like this:
 
diff --git a/CHANGES b/CHANGES
index 78e8f2f6b..04bed8254 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+NEXT RELEASE
+
+ * [#8583] Add support for Python 3.13
+
+
 Version 1.18.0  (August 2025)
 
 Upgrade Instructions
diff --git a/Dockerfile b/Dockerfile
index 4ceeb4fb7..2ef373f02 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,7 +17,7 @@
 
 FROM ubuntu:22.04
 
-ARG PY_VERSION=3.11
+ARG PY_VERSION=3.13
 
 ARG NODE_MAJOR=16
 
diff --git a/README.markdown b/README.markdown
index f3347ce03..27deb74bd 100644
--- a/README.markdown
+++ b/README.markdown
@@ -22,7 +22,7 @@
 # Apache Allura
 
 [![Build Status](https://builds.apache.org/buildStatus/icon?job=Allura%2FAllura-py3.10&subject=py3.10)](https://builds.apache.org/job/Allura)
-[![Build Status](https://builds.apache.org/buildStatus/icon?job=Allura%2FAllura-py3.11&subject=py3.11)](https://builds.apache.org/job/Allura)
+[![Build Status](https://builds.apache.org/buildStatus/icon?job=Allura%2FAllura-py3.13&subject=py3.13)](https://builds.apache.org/job/Allura)
 
 Allura is an open source implementation of a software "forge", a web site that manages source code repositories, bug reports, discussions, mailing lists, wiki pages, blogs and more for any number of individual projects.
 
diff --git a/scripts/init-docker-dev.sh b/scripts/init-docker-dev.sh
index afc04a515..b3cac3cd6 100755
--- a/scripts/init-docker-dev.sh
+++ b/scripts/init-docker-dev.sh
@@ -40,7 +40,7 @@ cp /allura/Allura/allura/public/nf/favicon.ico /allura-data/www-misc/favicon.ico
 rm -rf /allura-data/virtualenv
 if [ ! -e /allura-data/virtualenv ]; then
     echo -e "Creating virtualenv\n"
-    PYTHON_EXE="${PYTHON_EXE:-python3.11}"  # should always be set from Dockerfile, but set default value just in case
+    PYTHON_EXE="${PYTHON_EXE:-python3.13}"  # should always be set from Dockerfile, but set default value just in case
     $PYTHON_EXE -m venv /allura-data/virtualenv
     /allura-data/virtualenv/bin/pip install -U pip
     /allura-data/virtualenv/bin/pip install -U wheel
diff --git a/scripts/jenkins-run.sh b/scripts/jenkins-run.sh
index 8d895a9c8..c370b3bab 100755
--- a/scripts/jenkins-run.sh
+++ b/scripts/jenkins-run.sh
@@ -19,7 +19,7 @@
 #       under the License.
 
 IMAGE_TAG=allura
-PY_VERSION="${PY_VERSION:-3.11}"
+PY_VERSION="${PY_VERSION:-3.13}"
 
 echo
 echo "============================================================================="