Skip to content

Commit

Permalink
Bug 1750281: Bump compare-locales from 8.1.0 to 8.2.1 r=eemeli
Browse files Browse the repository at this point in the history
Resolves race condition on creating parent directories when
run in parallel.

Differential Revision: https://phabricator.services.mozilla.com/D136278
  • Loading branch information
Mitchell Hentges committed Jan 18, 2022
1 parent a7c1adf commit a8e8758
Show file tree
Hide file tree
Showing 13 changed files with 121 additions and 167 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.0
Metadata-Version: 2.1
Name: compare-locales
Version: 8.1.0
Version: 8.2.1
Summary: Lint Mozilla localizations
Home-page: UNKNOWN
Author: Axel Hecht
Expand All @@ -18,6 +18,8 @@ Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Localization
Classifier: Topic :: Software Development :: Testing
Expand All @@ -27,7 +29,7 @@ Requires-Dist: fluent.syntax (<0.19,>=0.18.0)
Requires-Dist: pytoml
Requires-Dist: six

[![Build Status](https://travis-ci.org/Pike/compare-locales.svg?branch=master)](https://travis-ci.org/Pike/compare-locales)
![Build tests](https://github.com/mozilla/compare-locales/workflows/test/badge.svg)
# compare-locales
Lint Mozilla localizations

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Wheel-Version: 1.0
Generator: bdist_wheel (0.30.0)
Generator: bdist_wheel (0.37.1)
Root-Is-Purelib: true
Tag: py2-none-any
Tag: py3-none-any
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "8.1.0"
version = "8.2.1"
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,15 @@ def check_params(params, string):
"Mismatching formatter",
"android"
)
# All parameters used in the reference are expected to be included.
# Warn if this isn't the case.
for order in params:
if order not in sorted(lparams):
yield (
"warning",
0,
"Formatter %{}${} not found in translation".format(
order, params[order]
),
"android",
)
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def __init__(self, quiet=0):

def create_merge_dir(self, merge_file):
outdir = mozpath.dirname(merge_file)
if not os.path.isdir(outdir):
os.makedirs(outdir)
os.makedirs(outdir, exist_ok=True)

def merge(self, ref_entities, ref_file, l10n_file, merge_file,
missing, skips, ctx, capabilities, encoding):
Expand Down
2 changes: 2 additions & 0 deletions third_party/python/compare_locales/compare_locales/plurals.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
'sat': 1,
'sc': 1,
'scn': 1,
'sco': 1,
'si': 1,
'sk': 8,
'sl': 10,
Expand All @@ -181,6 +182,7 @@
'ta': 1,
'ta': 1,
'te': 1,
'tg': 1,
'th': 0,
'tl': 1,
'tn': 1,
Expand Down
2 changes: 1 addition & 1 deletion third_party/python/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cbor2==4.0.1
# define it here because it's needed by other dependencies on
# Windows systems.
colorama==0.4.4
compare-locales==8.1.0
compare-locales==8.2.1
cookies==2.2.1
coverage==5.1
cram==0.7
Expand Down
6 changes: 3 additions & 3 deletions third_party/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ colorama==0.4.4 \
--hash=sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b \
--hash=sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2
# via -r requirements-mach-vendor-python.in
compare-locales==8.1.0 \
--hash=sha256:286270797ce64f7a2f25e734bb437870661409884a4f0971c0bb94fdad6c1f35 \
--hash=sha256:3d374ff959d5de2cfd5b94caf6b0fa61445f1d8ede5af384002cb3542aacad3a
compare-locales==8.2.1 \
--hash=sha256:470d50d96c68f8e147daa3d70f29a7b750adefea450c5fa07e0f666c8083d854 \
--hash=sha256:e6a1610151d357e74ee6c1f5e944f1868e449f83e478c84d92f7b86132f721d7
# via
# -r requirements-mach-vendor-python.in
# fluent.migrate
Expand Down

0 comments on commit a8e8758

Please sign in to comment.