-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: package only translations explicitly marked as supported #1497
Conversation
Marking as ready for review while I investigate why an unrelated test has started to fail in CI. |
Once CI has been placated on |
You should be good to go whenever you want now @cfm -CI is fixed | latest nightly build 🙂 |
5840426
to
fb85e48
Compare
Translations are excluded from the source distribution by default by pruning the "locale" directory. Translations for supported languages must be explicitly grafted back in. All translations present in the tree remain loadable during development via (e.g.): $ LANG=es python -m securedrop_client
Per #1438, language support will be a maintainers' decision, rather than an automated check based on translation coverage in Weblate.
wlc was only used by "make supported-languages", which we've removed.
fb85e48
to
94b2a50
Compare
Investigating unrelated failing check remaining after rebase from
|
Caught by mypy 0.940 → 0.960.
2ed1bc4
to
57e9b40
Compare
Ready for review with CI (finally) passing. Along the way, ebb5336 fixes an unrelated typing error caught by new mypy 0.940 → 0.960. This is an unfortunate side effect of not pinning development dependencies. Removing a dependency X from a Let me know if a stack of pull requests is preferable for separate review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - test plan checks out
# | ||
# graft securedrop_client/locale/$LANG | ||
# | ||
# Please keep this list alphabetized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
@@ -92,7 +92,8 @@ def _check_for_duplicate_jobs(self, job: QueueJob) -> bool: | |||
stored on self.current_job. We check that the job to be added is not among them. | |||
""" | |||
in_progress_jobs = [in_progress_job for priority, in_progress_job in self.queue.queue] | |||
in_progress_jobs.append(self.current_job) | |||
if self.current_job is not None: | |||
in_progress_jobs.append(self.current_job) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this was caught by mypy update to 0.960
Description
Closes #1438 by adding in
MANIFEST.in
(rather thansetup.py
as originally proposed):prune
directive to exclude translation assets present in the tree by default; andgraft
directives for explicitly including translation assets only for languages considered supported.Also:
make supported-languages
, obsoleted by this approach per Add list of supported languages; disable unsupported languages #1438 (comment);wlc
), which is no longer needed; andTest Plan
securedrop_client/locale
, e.g.:Checklist
If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:
If these changes add or remove files other than client code, the AppArmor profile may need to be updated. Please check as applicable:
These assets are covered by:
securedrop-client/files/usr.bin.securedrop-client
Line 21 in 1c5482b
If these changes modify the database schema, you should include a database migration. Please check as applicable:
main
and confirmed that the migration applies cleanlymain
and would like the reviewer to do so