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

164 Коммитов

Автор SHA1 Сообщение Дата
Eemeli Aro 42421cd6c1
Refactor sync (#3312) 2024-12-20 00:09:40 +02:00
Francesco Lodolo e3e7168097
Update ruff (0.8.2) and uv (0.5.7) (#3483) 2024-12-11 22:17:58 +01:00
Matjaž Horvat 44ab754666
Update to Django 4.2.17 (#3471) 2024-12-04 20:31:03 +01:00
Francesco Lodolo fbeb09bc99
Fix graphql on DEV server, update django-graphene to 3.2.2 (#3388) 2024-09-30 12:43:00 +02:00
Francesco Lodolo dece990591
Update more Python dependencies (#3378) 2024-09-26 10:28:57 +02:00
Matjaž Horvat 0ba3b9aea9
Replace unmaintained wsgi-sslify with Django settings (#3376) 2024-09-25 17:36:40 +02:00
Matjaž Horvat 082778c2b3
Update libs (#3375)
* Update sacremoses, openai and gunicorn to latest versions
* Upgrade existing dependencies within the given constraints of the input files
2024-09-25 16:15:13 +02:00
Matjaž Horvat c60169cbc4
Update Django to latest dot release (#3374) 2024-09-25 13:59:55 +02:00
Francesco Lodolo b4cf2f6528
Update APScheduler to 3.10.4 (#3369) 2024-09-24 10:02:41 +02:00
Francesco Lodolo 1e1c02fc92
Update google-cloud-translate package to 3.16.0 (#3366) 2024-09-22 16:28:48 +02:00
Francesco Lodolo 91b85b8bea
Update Python dependencies used in test and lint (#3365) 2024-09-22 16:28:33 +02:00
Matjaž Horvat 385476a2a1
Remove django-sslserver (#3359)
We don't really use it. The library hasn't been updated in years. The same can be achieved using django-extensions.

Also fix compile_requirements.sh to output requirements .txt files. See:
https://docs.astral.sh/uv/pip/compatibility/#pip-compile-defaults
2024-09-20 16:23:17 +02:00
Francesco Lodolo e3e5935f66
Replace pip and pip-tools with uv (#3357) 2024-09-20 13:29:39 +02:00
Francesco Lodolo 89536387b5
Update lxml to 5.3.0 (#3338) 2024-09-12 21:59:55 +02:00
Francesco Lodolo 179f47358f
Replace python-levenshtein with RapidFuzz package (#3334) 2024-09-12 14:04:07 +02:00
Francesco Lodolo 1e03996a09
Replace html2text with BeautifulSoup (#3331) 2024-09-12 10:51:48 +02:00
Francesco Lodolo fa157fcb0b
Update ruff to 0.6.4 (#3329) 2024-09-12 09:05:33 +02:00
Matjaž Horvat a794992e72
Remove unused mercurial requirements (#3320) 2024-09-10 18:19:47 +02:00
Matjaž Horvat 4fd99f4595
Add ability to send emails and notifications from the Messaging Center (#3259)
Note that until we implement recipient filters, the recipient of the messages is the sender.

Also included:
- Factor out check-box CSS
- Make .notification selectors in style.css and main.js more specific
2024-07-02 12:13:58 +02:00
Francesco Lodolo b4c53ea2c5
Update compare-locales to 9.0.4 (#3267) 2024-07-01 11:50:44 +02:00
Francesco Lodolo d650739031
Replace black, flake8, pyupgrade with ruff for Python linting and formatting (#3248) 2024-06-03 19:08:47 +02:00
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
Matjaž Horvat e3b2e20a97
Update compare-locales to 9.0.3 (#3182) 2024-04-18 15:08:05 +02:00
Eemeli Aro e996d94cfa
Drop support for the .lang format (#3163)
* Fix remaining failing test

---------

Co-authored-by: Matjaž Horvat <matjaz.horvat@gmail.com>
2024-04-04 19:54:44 +02:00
ayanaar 3e03b17424
Implementation of LLM-Assisted Translations Backend (#3100) 2024-02-26 21:29:45 +01: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 b013fb937f
Update New Relic (#3092) 2024-02-13 17:11:39 +01:00
Matjaž Horvat 59eb3c0038
Update to compare-locales 9.0.2 (#2962) 2023-09-18 19:49:49 +02:00
Fabien LOISON 976385b1ad
Updated parsimonious to v0.10 (#2916) 2023-07-24 14:14:12 +02:00
Fabien LOISON 464835d2cc
Updated psycopg2 from 2.8.5 to 2.9.6 (#2906) 2023-07-18 10:11:33 +02:00
Matjaž Horvat 0ce71dccaa Generate accesskeys (rather than pretranslate)
Fluent Rich editor has a special UI for messages with access keys, which lists access key candidates. We now use the same logic when
pretranslating accesskeys and save the first candidate as the pretranslation.

Also: Remove regex dependency and use the built-in re.
2023-05-17 17:47:13 +02: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
Matjaž Horvat d49eac8262
Optimize Thunderbird and Seamonkey sync (#2830) 2023-05-04 00:08:41 +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 ceef69803d
Set up a dedicated dyno to schedule and execute Google AutoML Translate Warmup process (#2682)
Usually, separating scheduler and execution worker is recommended, but we break that pattern intentionally in order to run the task exactly when scheduled.

Co-authored-by: Francesco Lodolo <flod@lodolo.net>
2023-02-16 10:06:39 +01:00
Matjaž Horvat 016de8a937
Add sacrebleu, needed for Pretranslation evaluation (#2747) 2023-02-09 15:08:14 +01:00
Matjaž Horvat ca67f5d312
Add support for Google AutoML Translation (#2648)
* Gracefully handle Google AutoML error when credentials not set

* Prevent app crash on Heroku by forcing protobuf to use Python for parsing

By default, protobuf uses C++ for parsing. The library includes prebuilt binary modules for Apple silicon, which my local box uses, so for me the
library works as expected without this hack. I only noticed that's not the case for everyone after deploying to the stage server on Heroku.

Read more:
https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
https://developers.google.com/protocol-buffers/docs/reference/python-generated#sharing-messages

* Add buildpack needed for authentication using Google Cloud service accounts

And while we're at it, let's remove the unused buildpack.
2022-11-07 11:51:04 +01:00
Tomás Novau b5b19f73d0
Add missing python-binary-memcached package hash (#2644) 2022-10-25 17:49:29 +02:00
Matjaž Horvat 8e709ac2c5
Update Django (#2614) 2022-08-26 12:16:10 +02:00
Matjaž Horvat 49f2e2f17a
Allow user to add a contact email address (#2606)
- Adds a contact email field to user settings.
- Implements verification process: sends unique verification URL with a token to that email address.

Co-authored-by: Eemeli Aro <eemeli@gmail.com>
2022-08-17 14:43:18 +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 175082327a
Bump Silme to 0.11.2 (#2496)
- Switch to mozilla org on GitHub
- Release notes: https://github.com/mozilla/silme/releases/tag/v0.11.0
- Release notes: https://github.com/mozilla/silme/releases/tag/v0.11.1
- Release notes: https://github.com/mozilla/silme/releases/tag/v0.11.2
2022-04-27 11:22:01 +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
Eemeli Aro 8d2714d5db
Refactor tag-admin to use functional components, stop testing its internals, replace webpack with rollup (#2432)
* refactor(tag-admin): Use functional components, stop testing internals

* style(tag-admin): Satisfy Prettier

* chore(tag-admin): Add & configure build with Rollup

* chore: Drop webpack dependencies as unused

terser is included in the root package.json to ensure its availability
for pipeline during the Django build via TERSER_BINARY.

* chore(tag-admin): Add npm install & build targets to Makefile

Also sets engine-strict = true in .npmrc, so attempts to use
npm cli versions which do not support workspaces will fail.

* chore(tag-admin): Update from rollup-plugin-replace to @rollup/plugin-replace

* docs: Update prerequisites
2022-02-21 19:28:25 +01:00
Matjaž Horvat 261792baac
Update Django to 3.2.10 (#2392) 2021-12-21 11:50:41 +01:00
Matjaž Horvat 4e6099eabc
Update dependencies (#2390)
* Update lxml

* Update new frontend dependencies by running `yarn upgrade` in /frontend

* Update old frontend dependencies by regenerating package-lock.json using `npm i --package-lock-only`.

* Replace Array<React.ReactNode> with React.ReactNodeArray to match react-content-marker
2021-12-21 00:18:33 +01:00