mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
Remove Python36 Testing and Support
This commit is contained in:
parent
630400fee4
commit
e6cee9ac83
@ -19,21 +19,6 @@ dependency_scanning:
|
|||||||
- python -V
|
- python -V
|
||||||
- pip install wheel tox
|
- 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:
|
test-3.7-core:
|
||||||
image: python:3.7-buster
|
image: python:3.7-buster
|
||||||
script:
|
script:
|
||||||
@ -79,21 +64,6 @@ test-3.9-core:
|
|||||||
reports:
|
reports:
|
||||||
cobertura: coverage.xml
|
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:
|
test-3.7-all:
|
||||||
image: python:3.7-buster
|
image: python:3.7-buster
|
||||||
script:
|
script:
|
||||||
|
@ -18,12 +18,17 @@ To run AA with a newer Python 3 version than your system's default you need to i
|
|||||||
|
|
||||||
```eval_rst
|
```eval_rst
|
||||||
.. note::
|
.. 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
|
```bash
|
||||||
add-apt-repository ppa:deadsnakes/ppa
|
add-apt-repository ppa:deadsnakes/ppa
|
||||||
@ -34,23 +39,38 @@ apt-get update
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
yum install https://centos7.iuscommunity.org/ius-release.rpm
|
cd ~
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yum update
|
sudo yum install gcc openssl-devel bzip2-devel libffi-devel wget
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```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
|
## 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.
|
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
|
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
|
```bash
|
||||||
python manage.py migrate
|
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:
|
Now let's create our new venv with Python 3.6 and activate it:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3.6 -m venv /home/allianceserver/venv/auth
|
python3.7 -m venv /home/allianceserver/venv/auth
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
7
setup.py
7
setup.py
@ -58,7 +58,7 @@ setup(
|
|||||||
extras_require={
|
extras_require={
|
||||||
'testing': testing_extras
|
'testing': testing_extras
|
||||||
},
|
},
|
||||||
python_requires='~=3.6',
|
python_requires='~=3.7',
|
||||||
license='GPLv2',
|
license='GPLv2',
|
||||||
packages=['allianceauth'],
|
packages=['allianceauth'],
|
||||||
url=allianceauth.__url__,
|
url=allianceauth.__url__,
|
||||||
@ -78,11 +78,14 @@ setup(
|
|||||||
'Operating System :: POSIX :: Linux',
|
'Operating System :: POSIX :: Linux',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.6',
|
|
||||||
'Programming Language :: Python :: 3.7',
|
'Programming Language :: Python :: 3.7',
|
||||||
'Programming Language :: Python :: 3.8',
|
'Programming Language :: Python :: 3.8',
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
||||||
],
|
],
|
||||||
|
project_urls={
|
||||||
|
'Documentation': 'https://allianceauth.readthedocs.io/',
|
||||||
|
},
|
||||||
|
|
||||||
)
|
)
|
||||||
|
3
tox.ini
3
tox.ini
@ -1,14 +1,13 @@
|
|||||||
[tox]
|
[tox]
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
usedevelop = true
|
usedevelop = true
|
||||||
envlist = py{36,37,38,39}-{all}
|
envlist = py{37,38,39}-{all}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv =
|
setenv =
|
||||||
all: DJANGO_SETTINGS_MODULE = tests.settings_all
|
all: DJANGO_SETTINGS_MODULE = tests.settings_all
|
||||||
core: DJANGO_SETTINGS_MODULE = tests.settings_core
|
core: DJANGO_SETTINGS_MODULE = tests.settings_core
|
||||||
basepython =
|
basepython =
|
||||||
py36: python3.6
|
|
||||||
py37: python3.7
|
py37: python3.7
|
||||||
py38: python3.8
|
py38: python3.8
|
||||||
py39: python3.9
|
py39: python3.9
|
||||||
|
Loading…
x
Reference in New Issue
Block a user