Commit Graph

148 Commits

Author SHA1 Message Date
Benjamin Dauvergne 210f6bdf01 misc: adapt to tox 4 and simplify Jenkinsfile (#72175) 2022-12-13 15:12:50 +01:00
Benjamin Dauvergne 855bb179b0 misc: use PIL.Image.Resampling.LANCZOS instead of PIL.Image.LANCZOS (#71899)
PIL.Image.LANCZOS is deprecated.
2022-12-01 12:00:42 +01:00
Benjamin Dauvergne 896819fce8 tox.ini: remove unused tox dependencies 2022-12-01 11:54:13 +01:00
Benjamin Dauvergne ea5366ac0d tox.ini: pass posargs to pylint 2022-12-01 11:54:09 +01:00
Benjamin Dauvergne 823240daf0 tox: ignore tests/ when updating locales (#71523) 2022-11-22 12:05:28 +01:00
Benjamin Dauvergne 5c4318d707 misc: use LANCZOS instead of PIL.Image.Antialias (#70634)
PIL.Image.Antialias is deprecated.
2022-11-04 08:07:14 +01:00
Benjamin Dauvergne 6f9ebfd827 misc: do not instantatiate StoreRequestMiddleware without an argument (#70631)
If fixes this warning :

  src/authentic2/utils/misc.py:699: RemovedInDjango40Warning: Passing None for the middleware get_response argument is deprecated.
    request = middleware.StoreRequestMiddleware().get_request()
2022-10-28 10:35:04 +02:00
Benjamin Dauvergne 427021b5b2 misc: do not use dns.resolver.query on later versions of dnspython (#70632) 2022-10-28 10:34:16 +02:00
Benjamin Dauvergne 64e67aaea6 misc: rename authentic2-ctl to manage.py (#70162) 2022-10-17 16:51:20 +02:00
Benjamin Dauvergne 8025072491 tox.ini: remove mandatory --sw pytest option (#70155) 2022-10-12 14:01:08 +02:00
Valentin Deniaud cea8ad7c9d tests: fix pylint errors in test_rbac (#58696) 2022-10-05 10:35:28 +02:00
Valentin Deniaud 1516c4d2e1 tests: move test_rbac to main tests (#58696) 2022-10-05 10:35:28 +02:00
Agate d5f16e620d ci: removed unnecessary slow marker (#67106) 2022-07-07 10:48:44 +02:00
Agate d3782c80f7 ci: speed up CI using multiple processes with pylint (#42144) 2022-07-06 22:32:15 +02:00
Agate f695aba659 ci: speed up CI by using pytest-xdist (#42144) 2022-07-06 22:32:11 +02:00
Paul Marillonnet 474b56913a tox: explicitly match envs dependencies with debian releases (#66488) 2022-06-29 17:02:02 +02:00
Paul Marillonnet cd12cdc0eb tox: remove deprecated dependency rules (#66488) 2022-06-29 17:02:01 +02:00
Benjamin Dauvergne 50c473d98d auth_oidc: adapt to be compatible with jwcrypto<1 (#66438) 2022-06-24 13:25:48 +02:00
Paul Marillonnet a26f30e3df tox: add locale to makemessages command (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 1c442d7be9 tox: ldaptools version compatible with openldap matching dj3 in debian (#64305) 2022-05-13 09:49:23 +02:00
Paul Marillonnet 0d0f89345d tox: test with bullseye's django3 and matching dependency versions (#64305) 2022-05-13 09:49:23 +02:00
Benjamin Dauvergne c50f988286 tox.ini: simplify disabling of --sw 2022-05-11 21:32:22 +02:00
Benjamin Dauvergne bd93c71aa1 tox.ini: set psycopg2 constraint in all environments 2022-04-07 17:03:10 +02:00
Benjamin Dauvergne c7399b452c tests_rbac: add randomized tests on role parenting (#57500) 2022-03-25 11:14:05 +01:00
Paul Marillonnet d423c6c7c7 misc: add compatibility with bullseye's django-tables2 (#62527) 2022-03-14 17:31:00 +01:00
Emmanuel Cazenave 0bf05cdce0 jenkins: show execution context in coverage reports (#60446) 2022-01-11 15:57:21 +01:00
Paul Marillonnet aec2a4fa6f tox: update main env for more recent restframework testing (#59601) 2021-12-20 15:13:47 +01:00
Frédéric Péters 6761881ab0 tox: remove old django 1.11 reference 2021-12-19 16:36:23 +01:00
Valentin Deniaud d80c5ef988 jenkins: compile translations before tests (#58939) 2021-12-02 11:03:44 +01:00
Valentin Deniaud 85411f3376 api: allow filtering roles list (#57504) 2021-10-20 10:37:28 +02:00
Valentin Deniaud 9d7aa5d839 misc: fix import-error pylint error (#56982) 2021-09-24 11:21:18 +02:00
Valentin Deniaud e2079747b7 misc: update pylint configuration (#56982) 2021-09-24 11:21:17 +02:00
Benjamin Dauvergne c3f39b4637 ci: make target for check-migrations / simplify Jenkinsfile and default targets
tox.ini:
* check-migrations is now in its own target
* getlasso.sh is removed as python2 is not supported anymore
* code-style/check-migrations/pylint are run after tests to not delay
  reporting of test failures.
Jenkinsfile:
* regular test run use the default target list from tox.ini
* on time trigger, only the rbac target is run
2021-08-06 16:27:00 +02:00
Benjamin Dauvergne a70a976608 use tox in update-locales.sh
The current script did not work, it works with tox.
2021-07-30 14:14:38 +02:00
Valentin Deniaud fdd3f15aa7 misc: add pyupgrade files/notes (#55519) 2021-07-13 17:23:12 +02:00
Benjamin Dauvergne 4650f3fcb0 tox.ini: do not run environments with Django 1.11 2021-07-02 08:56:07 +02:00
Frédéric Péters 3b10e7b93a tox: limit psycopg2 to < 2.9 (#54925) 2021-06-17 08:50:38 +02:00
Benjamin Dauvergne 1792fbe72d tox.ini: do not test anymore with DRF 3.4 2021-06-10 16:47:14 +02:00
Benjamin Dauvergne d658eba701 import pylint config from w.c.s. and simplify launch (#51639) 2021-04-01 07:45:17 +02:00
Valentin Deniaud 41e2c8eee3 add isort configuration (#52457) 2021-03-30 14:00:26 +02:00
Valentin Deniaud 3dc618a571 add black configuration (#52457) 2021-03-30 11:54:28 +02:00
Benjamin Dauvergne 8a01e56dc4 tox.ini: test with django 2.2 on regular runs 2021-02-18 10:52:04 +01:00
Benjamin Dauvergne be38c3ab23 tox.ini: only show warnings from authentic2 2020-12-03 09:52:36 +01:00
Benjamin Dauvergne 9a1631b18a misc: add journal application (#47155) 2020-10-15 15:22:31 +02:00
Frédéric Péters ed6be9daed tox: limit mock version for compatibility with python 3.5 2020-10-06 09:29:48 +02:00
Benjamin Dauvergne 9d9e34ee6a ci: add a --slow options to also run slow tests (#46988) 2020-10-01 11:50:38 +02:00
Benjamin Dauvergne 9cb195bd11 ci: run with latest pytest and pytest-django versions 2020-09-28 15:04:45 +02:00
Benjamin Dauvergne 6d0aa4dbbc ci: choose launched tests depending on context (#47048)
* locally : only authentic on the production environment
* on jenkins : django-rbac and authentic on the production environment
* on jenkins at night : everything we can, notably future environment
  (django 2.2)
2020-09-25 18:34:47 +02:00
Benjamin Dauvergne 3b5ec1d076 tox.ini: fix coverage source target (bis) 2020-09-25 18:34:34 +02:00
Benjamin Dauvergne 24580e5096 tox.ini: fix coverage source target 2020-09-25 17:23:42 +02:00