From cd5ce9d278a2b0687f20d394f2ff254fcb6b1e05 Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Sun, 16 Oct 2022 10:44:20 +0200 Subject: [PATCH] Allow strings and lists of strings for preprocess --- src/fpm/metadata/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fpm/metadata/models.py b/src/fpm/metadata/models.py index d16f6a8..db111bf 100644 --- a/src/fpm/metadata/models.py +++ b/src/fpm/metadata/models.py @@ -234,13 +234,13 @@ class Preprocess(BaseModel): Preprocessing directives for the project. """ - macros: List[str] = [] + macros: Union[str, List[str]] = [] """Preprocessor macros e.g. ['HAVE_MPI', 'VALUE=1', 'VERSION={version}']""" - directories: List[str] = [] + directories: Union[str, List[str]] = [] """Include directories""" - suffixes: List[str] = [] + suffixes: Union[str, List[str]]= [] """Suffixes the preprocessor should run on"""