RPackage: fix style

This commit is contained in:
Wouter Deconinck 2024-09-01 20:04:01 -05:00
parent 0f47d68dd7
commit 56e087ad77

View File

@ -43,6 +43,7 @@ def configure_vars(self):
"""Arguments to pass to install via ``--configure-vars``."""
return []
@staticmethod
def parse_description(data: str) -> Generator:
"""Parses CRAN package metadata from
https://cran.r-project.org/src/contrib/PACKAGES
@ -180,7 +181,7 @@ def verify_package(self):
if not merged_dependencies[dep].spec.satisfies(deps[dep].spec):
missing_deps.append(
f' depends_on("{deps[dep].spec}",'
+ f' type=("build", "run"),'
+ ' type=("build", "run"),'
+ f' when="@{self.pkg.version}:")'
)
# Remove from dict
@ -188,7 +189,7 @@ def verify_package(self):
else:
missing_deps.append(
f' depends_on("{deps[dep].spec}",'
+ f' type=("build", "run"),'
+ ' type=("build", "run"),'
+ f' when="@{self.pkg.version}:")'
)
for dep in merged_dependencies: