Remove Python36 Testing and Support

This commit is contained in:
Ariel Rin 2021-05-09 06:42:56 +00:00
parent 630400fee4
commit e6cee9ac83
4 changed files with 35 additions and 49 deletions

View File

@ -19,21 +19,6 @@ dependency_scanning:
- python -V
- pip install wheel tox
test-3.6-core:
image: python:3.6-buster
script:
- tox -e py36-core
before_script:
- apt-get update && apt-get install redis-server -y
- redis-server --daemonize yes
- redis-cli ping
- python -V
- pip install wheel tox
artifacts:
when: always
reports:
cobertura: coverage.xml
test-3.7-core:
image: python:3.7-buster
script:
@ -79,21 +64,6 @@ test-3.9-core:
reports:
cobertura: coverage.xml
test-3.6-all:
image: python:3.6-buster
script:
- tox -e py36-all
before_script:
- apt-get update && apt-get install redis-server -y
- redis-server --daemonize yes
- redis-cli ping
- python -V
- pip install wheel tox
artifacts:
when: always
reports:
cobertura: coverage.xml
test-3.7-all:
image: python:3.7-buster
script:

View File

@ -18,12 +18,17 @@ To run AA with a newer Python 3 version than your system's default you need to i
```eval_rst
.. note::
For stability and performance we currently recommend to run AA with Python 3.7. Since at the time of writing Python 3.7 was not available for CentOS through yum install this guide will upgrade to Python 3.6. For Ubuntu one can just replace "3.6" with "3.7" in the installation commands to get Python 3.7.
For stability and performance we currently recommend to run AA with Python 3.7. It has proven to be the fastest and most stable version in use currently.
```
To install other Python versions than come with your distro you need to add a new installation repository. Then you can install the specific Python 3 to your system.
To install other Python versions than those included with your distribution, you need to add a new installation repository. Then you can install the specific Python 3 to your system.
Ubuntu:
Ubuntu 1604 1804:
```eval_rst
.. note::
Ubuntu 2004 ships with Python 3.8, No updates required.
```
```bash
add-apt-repository ppa:deadsnakes/ppa
@ -34,23 +39,38 @@ apt-get update
```
```bash
apt-get install python3.6 python3.6-dev python3.6-venv
apt-get install python3.7 python3.7-dev python3.7-venv
```
CentOS:
CentOS 7/8:
```bash
yum install https://centos7.iuscommunity.org/ius-release.rpm
cd ~
```
```bash
yum update
sudo yum install gcc openssl-devel bzip2-devel libffi-devel wget
```
```bash
yum install python36u python36u-pip python36u-devel
wget https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz
```
```bash
tar xvf Python-3.7.10.tgz
```
```bash
cd Python-3.7.10/
```
```bash
./configure --enable-optimizations --enable-shared
```
```bash
make altinstall
```
## Preparing your venv
Before updating your venv it is important to make sure that your current installation is stable. Otherwise your new venv might not be consistent with your data, which might create problems.
@ -97,12 +117,6 @@ If you unsure which apps you have installed from repos check `INSTALLED_APPS` in
pip list
```
Some AA installations might still be running an older version of django-celery-beat. We would recommend to upgrade to the current version before doing the Python update:
```bash
pip install -U 'django-celery-beat<2.00'
```
```bash
python manage.py migrate
```
@ -171,7 +185,7 @@ mv /home/allianceserver/venv/auth /home/allianceserver/venv/auth_old
Now let's create our new venv with Python 3.6 and activate it:
```bash
python3.6 -m venv /home/allianceserver/venv/auth
python3.7 -m venv /home/allianceserver/venv/auth
```
```bash

View File

@ -58,7 +58,7 @@ setup(
extras_require={
'testing': testing_extras
},
python_requires='~=3.6',
python_requires='~=3.7',
license='GPLv2',
packages=['allianceauth'],
url=allianceauth.__url__,
@ -78,11 +78,14 @@ setup(
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
project_urls={
'Documentation': 'https://allianceauth.readthedocs.io/',
},
)

View File

@ -1,14 +1,13 @@
[tox]
skipsdist = true
usedevelop = true
envlist = py{36,37,38,39}-{all}
envlist = py{37,38,39}-{all}
[testenv]
setenv =
all: DJANGO_SETTINGS_MODULE = tests.settings_all
core: DJANGO_SETTINGS_MODULE = tests.settings_core
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9