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

machristie pushed a commit to branch AIRAVATA-3698--Add-support-for-Python-3.11
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to 
refs/heads/AIRAVATA-3698--Add-support-for-Python-3.11 by this push:
     new 53585786 AIRAVATA-3698 Changing supported Python version to 3.9 - 3.11
53585786 is described below

commit 53585786f4493b4765f778c4b617b7edd6e681f3
Author: Marcus Christie <[email protected]>
AuthorDate: Thu Jun 22 13:48:45 2023 -0400

    AIRAVATA-3698 Changing supported Python version to 3.9 - 3.11
---
 .github/workflows/build-and-test.yaml |  7 +++----
 Dockerfile                            |  2 +-
 README.md                             |  2 +-
 docs/tutorial/custom_ui_tutorial.md   | 22 +++++++++++-----------
 requirements-dev.txt                  |  2 +-
 requirements.txt                      |  6 ++----
 setup.py                              |  4 +++-
 tox.ini                               |  4 ++--
 8 files changed, 24 insertions(+), 25 deletions(-)

diff --git a/.github/workflows/build-and-test.yaml 
b/.github/workflows/build-and-test.yaml
index 1b104e70..468cc19e 100644
--- a/.github/workflows/build-and-test.yaml
+++ b/.github/workflows/build-and-test.yaml
@@ -22,7 +22,7 @@ name: Build and Test
 on: [push]
 jobs:
   build-js:
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-22.04
     steps:
       - uses: actions/checkout@v3
       - name: Use Node.js as specified in .nvmrc
@@ -69,12 +69,11 @@ jobs:
         shell: cmd
 
   build:
-    # ubuntu-22 doesn't support Python 3.6
-    runs-on: ubuntu-20.04
+    runs-on: ubuntu-22.04
     needs: build-js
     strategy:
       matrix:
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
+        python-version: ["3.9", "3.10", "3.11"]
     steps:
       - uses: actions/checkout@v3
       - name: Set up Python ${{ matrix.python-version }}
diff --git a/Dockerfile b/Dockerfile
index 38089d83..7b415296 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -62,7 +62,7 @@ RUN yarn run build
 
 
 
-FROM python:3.10-slim as server-stage
+FROM python:3.11-slim as server-stage
 
 ENV PYTHONUNBUFFERED 1
 
diff --git a/README.md b/README.md
index 17fd6b34..187e732c 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Django Portal locally. This will allow you to try it out and 
can also be used as
 a development environment. If you just want to run the Airavata Django Portal
 locally, see the Docker instructions below for a more simplified approach.
 
-The Airavata Django Portal works with Python versions 3.6 - 3.10. You'll need
+The Airavata Django Portal works with Python versions 3.9 - 3.11. You'll need
 one of these versions installed locally.
 
 You'll also need Node.js and yarn to build the JavaScript frontend code. Please
diff --git a/docs/tutorial/custom_ui_tutorial.md 
b/docs/tutorial/custom_ui_tutorial.md
index 9175fccb..97053028 100644
--- a/docs/tutorial/custom_ui_tutorial.md
+++ b/docs/tutorial/custom_ui_tutorial.md
@@ -10,7 +10,7 @@ Tutorial attendees should have:
 -   a text editor or IDE for writing Python and web code. Any text editor or 
IDE
     will do but if you're looking for recommendations, I recommend
     [Visual Studio Code](https://code.visualstudio.com/).
--   Python (3.6 - 3.10)
+-   Python (3.9 - 3.11)
 -   Git client
 -   [Docker Desktop](https://www.docker.com/products/docker-desktop)
 -   If you don't have Docker installed or can't install it, you'll also need:
@@ -20,27 +20,27 @@ Tutorial attendees should have:
 
 ### Installing Python
 
-Python 3.6-3.10 are supported, but I highly recommend you download and use
-**Python 3.10**
+Python 3.9-3.11 are supported, but I highly recommend you download and use
+**Python 3.11**
 
-Download and install Python 3.10.
+Download and install Python 3.11.
 
 -   (macOS/Windows): Download from <https://www.python.org/downloads/>
--   (Linux): use your distribution's package manager to install Python 3.10
+-   (Linux): use your distribution's package manager to install Python 3.11
 
-Verify you have installed Python 3.10:
+Verify you have installed Python 3.11:
 
 === "macOS/Linux"
 
-        $ python3.10 --version
-        Python 3.10.0
+        $ python3.11 --version
+        Python 3.11.0
 
 === "Windows"
 
     Open PowerShell then run:
 
         PS C:\Users\username> py --version
-        Python 3.10.0
+        Python 3.11.0
 
 ### Installing Git
 
@@ -615,7 +615,7 @@ the settings_local.py file for local development. Move or 
copy it to the
 
     Verify that you have the following installed
 
-    -   Python 3.10
+    -   Python 3.11
     -   Node LTS
     -   Yarn
     -   Git
@@ -661,7 +661,7 @@ the settings_local.py file for local development. Move or 
copy it to the
 
     Verify that you have the following installed
 
-    -   Python 3.10
+    -   Python 3.11
     -   Node LTS
     -   Yarn
     -   Git
diff --git a/requirements-dev.txt b/requirements-dev.txt
index d56aadad..0807746e 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -2,7 +2,7 @@
 autopep8==1.5.4
 flake8==4.0.1
 flake8-isort==4.1.1
-importlib-metadata==4.2.0
+importlib-metadata==4.4.0
 isort==5.2.2
 Jinja2==3.0.3
 mkdocs==1.2.4
diff --git a/requirements.txt b/requirements.txt
index b53e4fe3..ee3f8b18 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -18,10 +18,8 @@ papermill==1.0.1
 
 # gRPC libs
 google-api-python-client==1.12.8
-grpcio-tools==1.48.2 ; python_version < "3.7"
-grpcio-tools==1.51.1 ; python_version >= "3.7"
-grpcio==1.48.2 ; python_version < "3.7"
-grpcio==1.51.1 ; python_version >= "3.7"
+grpcio-tools==1.51.1
+grpcio==1.51.1
 
 airavata-django-portal-sdk==1.8.3
 airavata-python-sdk==1.1.6
diff --git a/setup.py b/setup.py
index 0b7844c1..4869ab4b 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,9 @@ setup(
         'Intended Audience :: Developers',
         'License :: OSI Approved :: Apache Software License',
         'Natural Language :: English',
-        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
         'Topic :: Internet :: WWW/HTTP',
         'Topic :: Internet :: WWW/HTTP :: WSGI :: Application'
     ]
diff --git a/tox.ini b/tox.ini
index 53a045d2..30080183 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,11 +4,11 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py36, py37, py38, py39, py310 #, py311
+envlist = py39, py310, py311
 
 [testenv]
 deps =
-    py{3,36,37,38,39,310,311}: -rrequirements-dev.txt
+    py{3,39,310,311}: -rrequirements-dev.txt
 
 commands =
     ./runtests.py

Reply via email to