Граф коммитов

44 Коммитов

Автор SHA1 Сообщение Дата
Francesco Lodolo 4b6e839447
Update workflows and docker to Python 3.11 (#3188)
* Use Python 3.11

* Run pyupgrade with Python 3.11+

* Update pyupgrade to latest version

* Update Celery and python-dateutil

Celery is not compatible with Python 3.11, leading to test failures. Need to update also python-dateutil to install the latest version.
2024-04-25 12:31:24 +02:00
Matjaž Horvat 3d51fba96c
Upgrade Django to 4.2.11 (#3183)
* pytest.yield_fixture is a deprecated alias for pytest.fixture

* Update Django dev dependencies

* Update bleach

* Upgrade existing dependencies within the given constraints of the input files

* Fix jinja after update

* Update pip-tools

* Update django-* libraries

* Upgrade graphene-django

* Upgrade Django to 4.0

* Drop pytz

* ALLOWED_HOSTS must be a list

* Upgrade Django to 4.1

* Add workaround for the Raygun AttributeError

See:
https://github.com/MindscapeHQ/raygun4py/issues/108

* Avoid ValueError when instance doesn't have a primary key value but relationship is used.

See:
7ba6ebe914

* Upgrade Django to 4.2.11

* Drop pytz as a direct requirement
2024-04-24 21:31:23 +02:00
Francesco Lodolo 9cf89026f2
Update to Python 3.10 (#3112)
In:
* GitHub workflows
* Docker
* Heroku

Also make related flake8, black and pyupgrade fixes (some actually only needed in future versions of python).
2024-02-22 19:33:05 +01:00
Matjaž Horvat 4d19972932
Update Django to the latest dot version. (#3098)
Also update django-jinja to the latest version.
2024-02-15 14:28:01 +01:00
Matjaž Horvat 60735c68f0 Update black and test requirements, fix pip-compile warnings
- Ignore resolver deprecation warning on make requirements
- Ignore egg fragment deprecation warning on make requirements
- Update test requirements (needed to update black)
- Update black (needed to install the regex package)
- Run make black
- Add regex package (needed to implement accesskey candidate generator)
2023-05-17 17:47:13 +02:00
Eemeli Aro 641c90c14e
Update to compare-locales 9.0.1, fluent-syntax 0.19.0, pip-tools 6.13.0 (#2817)
* Update to compare-locales 9.0.1, fluent-syntax 0.19.0, pip-tools 6.13.0

The transitive dependency typing-extensions is also updated to 4.5.0

* ci: Use codecov action rather than the removed/deprecated pypi & npm packages
2023-04-18 07:42:52 +03:00
Matjaž Horvat 8e709ac2c5
Update Django (#2614) 2022-08-26 12:16:10 +02:00
Matjaž Horvat fbafc74c55
Update Python requirements (#2580) 2022-07-27 20:20:39 +02:00
Fabien LOISON 7fed45cf77
Update pip-tools to v6.6.1 (#2530)
* Update pip-tools to v6.6.1 (fixes when using pip 22.1)
* set tomli to v1.2.2
* Full 'make requriements' output
2022-05-18 11:36:10 +02:00
Matjaž Horvat 74b9c6a77b
Update celery to 5.2.6 (#2498) 2022-04-27 10:16:03 +02:00
Matjaž Horvat 681925b8b7
Bump Django to 3.2.13 (#2497) 2022-04-27 00:22:17 +02:00
Matjaž Horvat 261792baac
Update Django to 3.2.10 (#2392) 2021-12-21 11:50:41 +01:00
Matjaž Horvat ace0e2b948
Update Django to 3.2.9 (#2371)
Also update existing dependencies within the given constraints of the input files.
2021-11-24 22:12:55 +01:00
Axel Hecht 8601d0a197 No bug, use constraints vs imports in python requirements.
Using constraints has the benefit that updates to default.in only
show up in default.txt, and not in dev.txt. That should make reviews
easier. It still ensures there's only one version of each package
used across production, dev, and local testing.
2021-08-02 20:40:05 +02:00
Matjaž Horvat ededc2c9f2
Update to Django 3.2.4 (#1965) 2021-06-10 22:09:34 +02:00
Matjaž Horvat b407ecef28
Update Django to 3.2.1 (#1961) 2021-06-05 14:27:37 +02:00
Matjaž Horvat a49defa662
Update existing dependencies within the given constraints of the input files (#1959) 2021-06-04 14:28:54 +02:00
Matjaž Horvat 587c53b1fb
Update django-debug-toolbar to 3.2.1 (#1925) 2021-04-18 21:28:54 +02:00
Philipp Fischbeck 1af6919f66
Bug 1704038: Update newrelic to 6.2.0.156 (#1924)
The previous version was incompatible with Django 3.2.
2021-04-18 21:28:28 +02:00
Philipp Fischbeck efcd4430b2
Fix bug 1704038: Upgrade to Django 3.2 (#1921)
* App configs are now automatically discovered, and most of our current app configs were redundant or had wrong names.
* The DEFAULT_AUTO_FIELD is needed to prevent unwanted migrations in the future, when the default value will change to BigAutoField.
* Make get_stats_sum return dict instead of AggregatedStats instance. Django 3.2 throws an error when instantiating an abstract model. Add tests for the relevant views that were previously not covered, marked with pytest.mark.no_cover.
2021-04-16 20:30:25 +02:00
Fabien LOISON 8cdd3005be
Fix bug 1699455: Replace django-dotenv with python-dotenv (#1904)
Which suppresses warnings when the dotenv file is missing among other things.
2021-04-09 14:42:27 +02:00
Matjaž Horvat 9aaa4633c6
Update django to 3.1.8 (#1917) 2021-04-08 22:50:27 +02:00
Matjaž Horvat 9edf703de1
Update dependencies (#1913) 2021-04-07 15:57:44 +02:00
Matjaž Horvat c5641aadcf
Update lxml to 4.6.3 (#1908) 2021-03-23 21:40:53 +01:00
Matjaž Horvat 846013e9dd
Fix bug 1699655: Update to Django 3.1.7 (#1905)
Also: reflect django-dotenv update in the rest of the requirements files
2021-03-19 19:37:25 +01:00
Matjaž Horvat 363457c114
Remove dj.debug (#1875)
Dj.debug brings some utils to help with development, but
we don't seem to be using it much, because it doesn't support Python 3
and we haven't noticed it so far.
2021-02-25 16:56:26 +01:00
Axel Hecht 97c2f3fa51
Revert "Speed up os.walk() by replacing it with scandir.walk()" (#1873)
This reverts commit 32a695bc60.

Per the README of the scandir project, the optimizations are
part of upstream python since 3.5
2021-02-19 12:49:20 +01:00
Matjaž Horvat 15052884c3
Fix bug 1692888: Drop caighdean (#1871)
Also: Make sure only required parameters are passed to backend
2021-02-16 07:59:49 +01:00
Axel Hecht 20908ee255
Fix bug 1691959: Upgrade dependencies, and script updates to make that easy (#1864) 2021-02-10 22:02:10 +01:00
Matjaž Horvat 902903de3e
Update to translate toolkit 3.3.2 (#1855) 2021-02-08 12:12:18 +01:00
Matjaž Horvat 8c463bad78
Update libs to reduce DeprecationWarnings on pytest (#1856) 2021-02-06 10:15:02 +01:00
Matjaž Horvat 823aa75d64
Update to bleach 3.3.0 (#1844) 2021-02-02 23:44:12 +01:00
Julen Ruiz Aizpuru a29ed24b99 Fix bug 1687371 - pipeline: delegate JS compression to Terser 2021-01-20 09:43:00 +01:00
Matjaž Horvat c41f880982
Fix bug 1685799: Compile python requirements in docker (#1806) 2021-01-08 22:02:29 +01:00
Matjaž Horvat 18a0698527
Update lxml to 4.6.2 and python to 3.8.7 (#1805) 2021-01-08 21:41:58 +01:00
Philipp Fischbeck 5084c1cf97
Fix bug 1680536: Use pip-compile for Python dependencies (#1766)
All direct dependencies are now in requirements/*.in files, and the requirements/*.txt files are generated with pip-compile. We provide a script for that, since these files should always be updated all at once.
2020-12-09 16:16:54 +01:00
Philipp Fischbeck 1ac10779f5
Bug 1627655: Update django-extensions (#1736) 2020-11-13 23:54:40 +01:00
Philipp Fischbeck f9e209b802
Bug 1627655: Remove django-nose dependency (#1699)
The package doesn't officially support Django >=3.0, and nose is not maintained anymore. All usages were replaced by appropriate pytest equivalents.
2020-10-10 22:20:45 +02:00
Jarek 10b6331fb0
Bug 1607696: Update to Django 2.2.11 (#1591)
This commit:
* removes old migrations
* bumps up the dependencies that couldn't run on Django 2.2
* adds missing on_delete attributes
* removes all authenticated() calls and uses the property instead
* uses the Django's constraints mechanism and removes PartialIndex
* updates the config of django-notifications-hq
2020-03-31 19:53:18 +02:00
Jarek c1a9db2d5c
Bug 1607696 - Migrate middlewares to Django 2.0 and replace `django.core.urlresolvers` occurrences with `django.urls`. (#1567) 2020-02-17 11:08:35 +01:00
Jarek de28fe7a3f Fix bug 1541252 - Fix linting errors on Python 3 (#1288)
Fix all errors detected by flake8. `pytest` is able to run testsuites and report failing tests. Changes don't affect Pontoon on Python 2.

Included changes/bugfixes:
* bump up the version number of:
** Mercurial==5.0, it has experimental support for Python 3
** lxml==4.3.3
* add new dependencies:
** python3-openid - required by django-allauth
** defused-xml - required by python3-openid
* move sqlparse to `constraints.txt`, because it's a dependency of django-debug-toolbar
* nested() from contextlib is not available in Python 3
* update hashes of some dependencies for Python 3 (thanks to Hashin)
2019-06-03 18:21:05 +02:00
Jarek 6da1f3524b Fix bug 1527507 - Refactor all dependencies (#1204)
Newer versions of Pip (7.1+) allow to create a constraints file which keeps track of versions of all sub-dependencies.

* All requirements files are renamed and moved into a separate directory.
* All sub-dependencies are moved to a constraints file.
2019-03-07 09:51:37 +01:00
Michael Kelly c2bc0d493d Move all requirements to a single file. 2015-04-08 15:31:22 -07:00
Matjaž Horvat 62cf3640eb Add server contents to / 2012-04-11 23:34:02 +02:00