From 419abc63c42592968cc8aea031374bd51afab7fa Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 10 Oct 2024 18:30:04 +0200 Subject: [PATCH 1/2] Generate .pot with all reuse Python files Signed-off-by: Carmen Bianca BAKKER --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7edcd64f8..67b4426f8 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ dist: clean-build clean-pyc clean-docs ## builds source and wheel package .PHONY: create-pot create-pot: ## generate .pot file - xgettext --add-comments --from-code=utf-8 --output=po/reuse.pot src/reuse/**.py + xgettext --add-comments --from-code=utf-8 --output=po/reuse.pot src/reuse/**/*.py xgettext --add-comments --output=po/click.pot "${VIRTUAL_ENV}"/lib/python*/*-packages/click/**.py msgcat --output=po/reuse.pot po/reuse.pot po/click.pot for name in po/*.po; do \ From a87cdcc9c498e00456cd5f0962060cd97b742c85 Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 10 Oct 2024 18:31:46 +0200 Subject: [PATCH 2/2] Fix typo This typo fix should also trigger pot generation. Signed-off-by: Carmen Bianca BAKKER --- src/reuse/cli/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reuse/cli/common.py b/src/reuse/cli/common.py index 0e185f274..1f943fba1 100644 --- a/src/reuse/cli/common.py +++ b/src/reuse/cli/common.py @@ -106,7 +106,7 @@ def handle_parse_result( def spdx_identifier(text: str) -> Expression: - """factory for creating SPDX expressions.""" + """Factory for creating SPDX expressions.""" try: return _LICENSING.parse(text) except (ExpressionError, ParseError) as error: