Paul Marillonnet
456796b024
apps: add a 'fc-create' hook performing attribute verification ( #64280 )
2022-04-15 21:29:24 +02:00
Paul Marillonnet
27d92545cf
hooks: bypass idp_oidc_modify_user_info when user profile is supplied ( #63263 )
2022-03-28 19:59:11 +02:00
Paul Marillonnet
9d50edcdf3
tox: avoid seemingly broken markdown>=3 versions ( #63263 )
2022-03-28 16:26:35 +02:00
Benjamin Dauvergne
5a61e97619
Jenkinsfile: remove use of find
2022-03-17 11:28:13 +01:00
Paul Marillonnet
1ccf9ec535
misc: add support for bullseye's django-tables2 ( #62783 )
...
(and its subsequent changes in authentic2 -- #62527 )
2022-03-16 17:36:59 +01:00
Benjamin Dauvergne
1c4f35aa6d
apps: do not send another mail on user creation ( #26053 )
2022-02-21 11:01:30 +01:00
Benjamin Dauvergne
0d7391b65f
tox.ini: install authentic2 from git in check-migrations
2022-02-18 09:33:40 +01:00
Paul Marillonnet
150156e957
tox: update tox.ini file ( #61513 )
2022-02-07 18:30:08 +01:00
Paul Marillonnet
233df53ac6
misc: add codestyle files/notes ( #61513 )
2022-02-07 18:24:50 +01:00
Paul Marillonnet
6006c96557
codestyle: add black, isort, pyupgrade ( #61513 )
2022-02-07 18:21:05 +01:00
Frédéric Péters
4925ee54ae
jenkins: use python3 to get a port for postgresql ( #60467 )
2022-01-10 17:32:54 +01:00
Paul Marillonnet
b9f1ea60a0
tox: add test env with djangorestframework 3.12 ( #59962 )
2021-12-21 11:44:38 +01:00
Frédéric Péters
273ebaebd7
tox: switch pylint to use python3
2021-12-15 08:29:07 +01:00
Frédéric Péters
36ffd6ae2b
tox: stop testing against django 1.11
2021-12-15 08:28:42 +01:00
Frédéric Péters
6ad9a7fbb9
jenkins: build packages for buster & bullseye
2021-12-12 11:26:55 +01:00
Frédéric Péters
69185390f6
debian: use debhelper compat level 12
2021-12-12 11:26:40 +01:00
Frédéric Péters
1f1de589c8
debian: stop building python2 package
2021-12-12 11:26:21 +01:00
Benjamin Dauvergne
d89c5ec85d
misc: rename authentic2.utils import path to authentic2.utils.misc ( #55624 )
2021-07-15 23:56:18 +02:00
Benjamin Dauvergne
6db41c2223
custom_settings: remove TEMPLATE_VARS in conflict with theme ( #55032 )
2021-06-21 15:52:44 +02:00
Benjamin Dauvergne
447f1c48bc
middlewares: only forbid the oidc idp to administrators ( #55022 )
2021-06-21 14:38:57 +02:00
Frédéric Péters
4319263774
tox: limit psycopg2 to < 2.9 ( #54925 )
2021-06-17 08:50:01 +02:00
Frédéric Péters
a3407c7208
delay loading of "magic" module to usage ( #52687 )
...
This avoids an issue with the uwsgi spooler failing to find library
symbols.
File "/usr/lib/python3/dist-packages/authentic2_cut/utils.py", line 3, in <module>
import magic
File "/usr/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/bin/uwsgi: undefined symbol: magic_open
2021-04-06 15:38:57 +02:00
Frédéric Péters
8720bc6c19
misc: update to new way to declare Operation objects ( #49746 )
2020-12-26 16:24:37 +01:00
Frédéric Péters
40b5422931
build: update to use origin/main
2020-12-26 15:21:15 +01:00
Benjamin Dauvergne
e5b548d790
tox.ini: hide warnings
2020-11-27 17:40:13 +01:00
Benjamin Dauvergne
af85af7bc4
tests: fix reuse of cached event_type
2020-11-27 17:40:02 +01:00
Benjamin Dauvergne
a5a92b627d
Jenkinsfile: always clean build directories
2020-11-27 10:13:54 +01:00
Benjamin Dauvergne
51ba6a17d4
tox.ini: do not break on new warning
2020-10-23 11:52:28 +02:00
Frédéric Péters
52afc76f4d
tox: get additional modules using https (via #46904#note-2)
2020-09-24 20:07:38 +02:00
Benjamin Dauvergne
6bdf330cf4
apps: prevent modifications of __class__.base_columns ( #46451 )
...
base_columns is not an instance attribute anymore.
2020-09-08 13:32:22 +02:00
Benjamin Dauvergne
ad6a7eaecf
Jenkinsfile: use python3-venv
2020-08-31 13:45:26 +02:00
Benjamin Dauvergne
fb55d92d3b
apps: force DateTimeField timezone to UTC ( #46038 )
...
DRF 3.7 changed the default timezone used by the DateTimeField
serializer field for the default timezone of Django instead of UTC. To
keep GLC plugin retrocompatible we force it to UTC again.
References:
https://www.django-rest-framework.org/community/release-notes/#370
https://github.com/encode/django-rest-framework/pull/5435
2020-08-24 17:38:55 +02:00
Benjamin Dauvergne
771205afa0
tox.ini: test against DRF 3.9 only ( #46038 )
...
It's the current version on debian buster (stable).
2020-08-24 17:38:55 +02:00
Benjamin Dauvergne
766df63a49
check-migrations.sh: use mktemp
2020-08-24 17:14:23 +02:00
Benjamin Dauvergne
70f00be9e6
custom_settings: ignore preferred_username from FC when it's already set ( #45866 )
2020-08-13 15:45:45 +02:00
Benjamin Dauvergne
c8e3d7e536
check-migrations: use bash instead of dash
2020-08-13 15:42:29 +02:00
Benjamin Dauvergne
0cdb505ce5
tox.ini: remove python2 support
2020-08-13 15:33:39 +02:00
Benjamin Dauvergne
8bfb36e8f9
getlasso.sh: use python2 as interpret
2020-08-13 15:32:40 +02:00
Frédéric Péters
6d0a064d6a
misc: adapt string view of FC user data for py3 ( #45467 )
2020-07-26 17:52:20 +02:00
Frédéric Péters
af72ac8183
misc: never alter form fields dictionary during iteration ( #45201 )
2020-07-16 19:01:17 +02:00
Benjamin Dauvergne
d78ce337ec
misc: dont mutate dictionnary during iteration ( #44869 )
2020-07-06 20:55:04 +02:00
Benjamin Dauvergne
901f9af326
debian: add dependency on django-redis
2020-07-03 14:40:26 +02:00
Benjamin Dauvergne
8dc42017ed
misc: remove requirement on python-magic
...
Python package changed between python3 and python2 on Debian
(python-magic is the pypi package python-magic, but python3-magic is the
pypi package file-magic :/)
2020-07-03 13:52:31 +02:00
Benjamin Dauvergne
0a4fa6b6fe
Jenkinsfile: remove files with find first
2020-07-03 10:38:44 +02:00
Benjamin Dauvergne
4757a9448e
tox.ini: do not skip install with pylint
2020-05-16 12:31:52 +02:00
Benjamin Dauvergne
abfaf85a43
tests: verify hooks by propagating exceptions
2020-05-16 11:57:19 +02:00
Benjamin Dauvergne
7b92d0fe55
tox.ini: add environment modifier to test against local authentic2
2020-05-16 11:39:30 +02:00
Benjamin Dauvergne
13e5dc68f1
drf39: force ou to "usagers" using HiddenField
2020-05-15 21:33:42 +02:00
Benjamin Dauvergne
89034068b4
dj22: replace django.core.urlresolvers by django.urls
2020-05-15 21:25:27 +02:00
Benjamin Dauvergne
081409b6ed
tox.ini: fix pylint env
2020-05-15 19:00:28 +02:00