forked from DGNum/gestioCOF
Merge branch 'kerl/fix-wagtail-deps' into 'master'
Règle un problème de dépendances de wagtailmenus avec python 3.8 See merge request klub-dev-ens/gestioCOF!381
This commit is contained in:
commit
14164ec4a5
6 changed files with 34 additions and 15 deletions
|
@ -27,7 +27,7 @@ test:
|
||||||
- sed -i.bak -E 's;^REDIS_PASSWD = .*$;REDIS_PASSWD = "";' cof/settings/secret.py
|
- sed -i.bak -E 's;^REDIS_PASSWD = .*$;REDIS_PASSWD = "";' cof/settings/secret.py
|
||||||
# Remove the old test database if it has not been done yet
|
# Remove the old test database if it has not been done yet
|
||||||
- psql --username=$POSTGRES_USER --host=$DBHOST -c "DROP DATABASE IF EXISTS test_$POSTGRES_DB"
|
- psql --username=$POSTGRES_USER --host=$DBHOST -c "DROP DATABASE IF EXISTS test_$POSTGRES_DB"
|
||||||
- pip install --upgrade -r requirements.txt coverage tblib
|
- pip install --upgrade -r requirements-prod.txt coverage tblib
|
||||||
- python --version
|
- python --version
|
||||||
script:
|
script:
|
||||||
- coverage run manage.py test --parallel
|
- coverage run manage.py test --parallel
|
||||||
|
@ -67,7 +67,7 @@ migration_checks:
|
||||||
- mkdir -p vendor/{pip,apt}
|
- mkdir -p vendor/{pip,apt}
|
||||||
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq postgresql-client
|
- apt-get update -q && apt-get -o dir::cache::archives="vendor/apt" install -yqq postgresql-client
|
||||||
- cp cof/settings/secret_example.py cof/settings/secret.py
|
- cp cof/settings/secret_example.py cof/settings/secret.py
|
||||||
- pip install --upgrade -r requirements.txt
|
- pip install --upgrade -r requirements-prod.txt
|
||||||
- python --version
|
- python --version
|
||||||
script: python manage.py makemigrations --dry-run --check
|
script: python manage.py makemigrations --dry-run --check
|
||||||
services:
|
services:
|
||||||
|
|
|
@ -3,11 +3,17 @@ from django.conf import settings
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
from django.http import Http404
|
from django.http import Http404
|
||||||
from ldap3 import Connection
|
|
||||||
|
|
||||||
from gestioncof.decorators import buro_required
|
from gestioncof.decorators import buro_required
|
||||||
from gestioncof.models import CofProfile
|
from gestioncof.models import CofProfile
|
||||||
|
|
||||||
|
if getattr(settings, "LDAP_SERVER_URL", None):
|
||||||
|
from ldap3 import Connection
|
||||||
|
else:
|
||||||
|
# shared.tests.testcases.TestCaseMixin.mockLDAP needs
|
||||||
|
# Connection to be defined in order to mock it.
|
||||||
|
Connection = None
|
||||||
|
|
||||||
|
|
||||||
class Clipper(object):
|
class Clipper(object):
|
||||||
def __init__(self, clipper, fullname):
|
def __init__(self, clipper, fullname):
|
||||||
|
|
|
@ -2,12 +2,18 @@ from django.conf import settings
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
from django.http import Http404
|
from django.http import Http404
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from ldap3 import Connection
|
|
||||||
|
|
||||||
from gestioncof.models import User
|
from gestioncof.models import User
|
||||||
from kfet.decorators import teamkfet_required
|
from kfet.decorators import teamkfet_required
|
||||||
from kfet.models import Account
|
from kfet.models import Account
|
||||||
|
|
||||||
|
if getattr(settings, "LDAP_SERVER_URL", None):
|
||||||
|
from ldap3 import Connection
|
||||||
|
else:
|
||||||
|
# shared.tests.testcases.TestCaseMixin.mockLDAP needs
|
||||||
|
# Connection to be defined in order to mock it.
|
||||||
|
Connection = None
|
||||||
|
|
||||||
|
|
||||||
class Clipper(object):
|
class Clipper(object):
|
||||||
def __init__(self, clipper, fullname):
|
def __init__(self, clipper, fullname):
|
||||||
|
|
|
@ -1598,8 +1598,7 @@
|
||||||
"localhost",
|
"localhost",
|
||||||
8000
|
8000
|
||||||
],
|
],
|
||||||
"max_levels": 2,
|
"max_levels": 2
|
||||||
"use_specific": 1
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1613,8 +1612,7 @@
|
||||||
"title": "K-F\u00eat - Navigation",
|
"title": "K-F\u00eat - Navigation",
|
||||||
"handle": "kfet-nav",
|
"handle": "kfet-nav",
|
||||||
"heading": "",
|
"heading": "",
|
||||||
"max_levels": 1,
|
"max_levels": 1
|
||||||
"use_specific": 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
14
requirements-prod.txt
Normal file
14
requirements-prod.txt
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
-r requirements.txt
|
||||||
|
|
||||||
|
# Postgresql bindings
|
||||||
|
psycopg2<2.8
|
||||||
|
|
||||||
|
# Redis
|
||||||
|
django-redis-cache==2.1.*
|
||||||
|
|
||||||
|
# ASGI protocol and HTTP server
|
||||||
|
asgiref==1.1.1
|
||||||
|
daphne==1.3.0
|
||||||
|
|
||||||
|
# ldap bindings
|
||||||
|
ldap3
|
|
@ -4,21 +4,16 @@ django-autocomplete-light==3.3.*
|
||||||
django-cas-ng==3.6.*
|
django-cas-ng==3.6.*
|
||||||
django-djconfig==0.8.0
|
django-djconfig==0.8.0
|
||||||
django-recaptcha==1.4.0
|
django-recaptcha==1.4.0
|
||||||
django-redis-cache==1.8.1
|
|
||||||
icalendar
|
icalendar
|
||||||
psycopg2<2.8
|
|
||||||
Pillow
|
Pillow
|
||||||
django-bootstrap-form==3.3
|
django-bootstrap-form==3.3
|
||||||
asgiref==1.1.1
|
|
||||||
daphne==1.3.0
|
|
||||||
asgi-redis==1.3.0
|
asgi-redis==1.3.0
|
||||||
statistics==1.0.3.5
|
statistics==1.0.3.5
|
||||||
django-widget-tweaks==1.4.1
|
django-widget-tweaks==1.4.1
|
||||||
git+https://git.eleves.ens.fr/cof-geek/django_custommail.git#egg=django_custommail
|
git+https://git.eleves.ens.fr/cof-geek/django_custommail.git#egg=django_custommail
|
||||||
ldap3
|
|
||||||
channels==1.1.5
|
channels==1.1.5
|
||||||
python-dateutil
|
python-dateutil
|
||||||
wagtail==2.4.*
|
wagtail==2.7.*
|
||||||
wagtailmenus<3
|
wagtailmenus==3.*
|
||||||
wagtail-modeltranslation==0.10.*
|
wagtail-modeltranslation==0.10.*
|
||||||
django-cors-headers==2.2.0
|
django-cors-headers==2.2.0
|
||||||
|
|
Loading…
Reference in a new issue