Commit Graph

495 Commits

Author SHA1 Message Date
Benjamin Dauvergne 9bdd837ecd Jenkinsfile: use pg_virtualenv to isolate the postgres database (#74887)
gitea/zoo/pipeline/head This commit looks good Details
2023-02-27 11:55:19 +01:00
Benjamin Dauvergne 0440e461be dj32: adapts lookups/transforms (#74843)
gitea/zoo/pipeline/head There was a failure building this commit Details
* remove django <2.x compatibility code
* use Lower transform/function from Django
* register Lower on CharField
* register text lookup transforms on non contrib JSONField
* declare text transform as outputting CharField type
* fix declaration of timestamp lookup output type
2023-02-25 14:35:33 +01:00
Benjamin Dauvergne 470fea47c3 dj32: replace use of url by re_path (#74843) 2023-02-25 14:35:33 +01:00
Benjamin Dauvergne 9dc5a2d801 dj32: remove use of force_bytes (#74843) 2023-02-25 14:35:33 +01:00
Benjamin Dauvergne 7b6df2d530 dj32: remove use of force_text (#74843) 2023-02-25 14:35:32 +01:00
Benjamin Dauvergne 4d2e935fd0 dj32: remove use of six (#74843) 2023-02-25 14:35:32 +01:00
Benjamin Dauvergne 2d64de0493 misc: remove use of python_2_unicode_compatible decorator (#74843)
Python2 is not supported for a long time.
2023-02-25 14:35:14 +01:00
Benjamin Dauvergne ba197a4b65 dj32: update use of default_app_config (#74843)
Use a version condition as it's still necessary for Django 2.x.
2023-02-25 14:34:43 +01:00
Benjamin Dauvergne 2d7f7ed9dd dj32: replace use of ugettext_lazy (#74843) 2023-02-25 14:34:29 +01:00
Benjamin Dauvergne 4ba9701d2b dj32: update django-rest-framework requirement (#74843)
* declare latest supported version in setup.py
* set limit in tox.ini for test with django 2.x
2023-02-25 14:34:26 +01:00
Benjamin Dauvergne 04fba9a035 dj32: update pyscopg2 requirement (#74843)
* use psycopg2-binary for 2.x compatibility
* use any version after
2023-02-25 14:33:07 +01:00
Benjamin Dauvergne 88c3a41598 setup.py: update django requirement (#74843)
Allow django<3.3.
2023-02-25 12:30:15 +01:00
Agate fe385f520c Prepare Jenkinsfile for Gitea migration (#74572)
gitea/zoo/pipeline/head There was a failure building this commit Details
2023-02-20 15:18:12 +01:00
Benjamin Dauvergne 9645c1c94b misc: import DateRangeFiler from older module if not found (#73570) 2023-01-18 22:38:18 +01:00
Benjamin Dauvergne c31385bd8b tox.ini: ignore some warnings (#72941) 2023-01-11 12:21:16 +01:00
Benjamin Dauvergne e52694fd31 misc: fix warnings about regexps (#72941) 2023-01-11 12:21:05 +01:00
Benjamin Dauvergne 72acb97eff misc: fix warnings about rangefilter.filter (#72941)
zoo/zoo/zoo_data/admin.py:22: DeprecationWarning: Import from the `filter` module is deprecated. Use `filters` module.
    from rangefilter.filter import DateTimeRangeFilter
2023-01-11 12:20:51 +01:00
Benjamin Dauvergne 11df11a955 tox.ini: test with django 3.2 (#72941) 2023-01-11 12:20:50 +01:00
Benjamin Dauvergne 7db34d6b26 tox.ini: simplify (#72941) 2023-01-11 12:20:36 +01:00
Frédéric Péters d373c915e2 ci: only build package for bullseye (#72729) 2022-12-22 17:21:31 +01:00
Frédéric Péters 9d5ab0a1f4 debian: update rules for compat level 12 2022-08-05 22:37:57 +02:00
Frédéric Péters 2a23f33ca6 tox: stop testing against django 1.11 2022-08-05 22:36:13 +02:00
Frédéric Péters e74311519d debian: bump to debhelper compat 12 2022-08-05 22:32:12 +02:00
Frédéric Péters 9208349851 ci: build for buster & bullseye 2022-08-05 22:31:15 +02:00
Frédéric Péters 445204dcdb debian: remove obsolete standard error output config from systemd unit (#65101) 2022-08-02 10:01:55 +02:00
Frédéric Péters d80291c438 trivial: remove python 2 from classifiers 2022-02-02 08:09:22 +01:00
Thomas NOËL 9999940757 tests: do not crash on non-deterministic tests (#57725) 2021-10-13 09:10:54 +00:00
Thomas NOËL e3bf286f63 dj22: use mark_safe instead of allow_tags in admin (#57108) 2021-09-20 18:51:19 +02:00
Thomas NOËL 05f31e6e31 dj22: add renderer in JSONEditor.render signature (#57108) 2021-09-20 18:51:16 +02:00
Benjamin Dauvergne 1458d01fcd python3: rename __unicode__ to __str__ (#56929) 2021-09-14 11:01:05 +02:00
Frédéric Péters b2cd707fa7 setup.py: limit psycopg2 to < 2.9 (#54925) 2021-06-17 09:14:08 +02:00
Frédéric Péters d05419eaec tox: limit psycopg2 to < 2.9 (#54925) 2021-06-17 08:50:04 +02:00
Frédéric Péters 92c31d1d28 debian: enable uwsgi memory reports (#54610) 2021-06-07 13:35:55 +02:00
Benjamin Dauvergne 7f21d927d4 misc: fix warnings about unclosed files (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 7bb4127fc7 dj22: replace load staticfiles by load static (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 48f52ae9ba dj22: disable subparsers work around (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 7df6f0ae0c dj22: do not backport jsonb key transforms (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 3f56b2ad0b dj22: use DRF>=3.9.2 (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne a34561baf2 dj22: fix import of django.utils.six (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 6fc43f1b1f dj22: use django.urls.reverse (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 1c19e4d6b9 dj22: add on_delete=models.CASCADE (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 24f26c6e4d test against Django 2.2 (#51516) 2021-03-02 15:38:06 +01:00
Benjamin Dauvergne 5db78cd58e tests: fix transient failure in test_person_search 2021-03-02 15:38:06 +01:00
Frédéric Péters 6c05e32569 trivial: switch forgotten execfile() call to exec() (#40911) 2021-03-01 15:18:53 +01:00
Frédéric Péters b77c415819 debian: run with python 3 (#41871) 2021-02-28 14:26:04 +01:00
Frédéric Péters 3f589e9249 build: update to use origin/main 2020-12-26 15:21:16 +01:00
Frédéric Péters 1dfcf0a61d tox: limit mock version for compatibility with python 3.5 2020-10-06 09:51:53 +02:00
Benjamin Dauvergne a3bda805cc nanterre: ignore invalid dates during free text search (#45320) 2020-09-18 12:08:59 +02:00
Benjamin Dauvergne 404c008336 nanterre: silence warning about bad regexp (#46763) 2020-09-18 09:27:12 +02:00
Frédéric Péters 8881799eb0 tox: stop testing against python 2 2020-09-09 08:33:31 +02:00