Revert "AIRAVATA-3529 Add support for Python 3.10"
This reverts commit 073d14fcfa668faa68a1b4da9552d3f125a2d3e7.
diff --git a/Dockerfile b/Dockerfile
index 38089d8..eee5759 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -62,7 +62,7 @@
-FROM python:3.10-slim as server-stage
+FROM python:3.9-slim as server-stage
ENV PYTHONUNBUFFERED 1
diff --git a/README.md b/README.md
index 3f04f01..5f776a2 100644
--- a/README.md
+++ b/README.md
@@ -16,8 +16,8 @@
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
-one of these versions installed locally.
+The Airavata Django Portal works with Python versions 3.6, 3.7, 3.8 and 3.9.
+You'll need one of these versions installed locally.
You'll also need Node.js and yarn to build the JavaScript frontend code. Please
install
diff --git a/docs/tutorial/custom_ui_tutorial.md b/docs/tutorial/custom_ui_tutorial.md
index cac5151..df88322 100644
--- a/docs/tutorial/custom_ui_tutorial.md
+++ b/docs/tutorial/custom_ui_tutorial.md
@@ -10,7 +10,7 @@
- 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, but latest version is recommended)
+- latest Python (current version as of this writing is 3.9.5)
- 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 @@
### Installing Python
-Python 3.6-3.10 are supported. If you don't have Python installed, I recommend
-you download and use the latest (Python 3.10 as of this writing).
+Python 3.6-3.9 are supported, but I highly recommend you download and use
+**Python 3.9**
-Download and install Python.
+Download and install Python 3.9.
- (macOS/Windows): Download from <https://www.python.org/downloads/>
-- (Linux): use your distribution's package manager to install Python
+- (Linux): use your distribution's package manager to install Python 3.9
-Verify you have installed Python:
+Verify you have installed Python 3.9:
=== "macOS/Linux"
- $ python3 --version
- Python 3.10.0
+ $ python3.9 --version
+ Python 3.9.5
=== "Windows"
Open PowerShell then run:
PS C:\Users\username> py --version
- Python 3.10.0
+ Python 3.9.5
### Installing Git
@@ -534,7 +534,7 @@
=== "macOS/Linux"
$ cd $HOME
- $ python3 -m venv tutorial-env
+ $ python3.9 -m venv tutorial-env
$ source tutorial-env/bin/activate
(tutorial-env) $
@@ -615,7 +615,7 @@
Verify that you have the following installed
- - Python 3
+ - Python 3.9
- Node LTS
- Yarn
- Git
@@ -661,7 +661,7 @@
Verify that you have the following installed
- - Python 3
+ - Python 3.9
- Node LTS
- Yarn
- Git
diff --git a/requirements.txt b/requirements.txt
index 5f9f57a..1ec1b8c 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -19,12 +19,10 @@
# 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.34.1
+grpcio==1.34.1
-airavata-django-portal-sdk==1.8.0
+airavata-django-portal-sdk==1.7.0
airavata-python-sdk==1.0.2
airavata-django-portal-commons==1.0.0
diff --git a/tox.ini b/tox.ini
index 53a045d..90399c7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,7 +8,7 @@
[testenv]
deps =
- py{3,36,37,38,39,310,311}: -rrequirements-dev.txt
+ py{3,36,37,38,39}: -rrequirements-dev.txt
commands =
./runtests.py