RPackage: fix style
This commit is contained in:
parent
0f47d68dd7
commit
56e087ad77
@ -43,6 +43,7 @@ def configure_vars(self):
|
|||||||
"""Arguments to pass to install via ``--configure-vars``."""
|
"""Arguments to pass to install via ``--configure-vars``."""
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
def parse_description(data: str) -> Generator:
|
def parse_description(data: str) -> Generator:
|
||||||
"""Parses CRAN package metadata from
|
"""Parses CRAN package metadata from
|
||||||
https://cran.r-project.org/src/contrib/PACKAGES
|
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):
|
if not merged_dependencies[dep].spec.satisfies(deps[dep].spec):
|
||||||
missing_deps.append(
|
missing_deps.append(
|
||||||
f' depends_on("{deps[dep].spec}",'
|
f' depends_on("{deps[dep].spec}",'
|
||||||
+ f' type=("build", "run"),'
|
+ ' type=("build", "run"),'
|
||||||
+ f' when="@{self.pkg.version}:")'
|
+ f' when="@{self.pkg.version}:")'
|
||||||
)
|
)
|
||||||
# Remove from dict
|
# Remove from dict
|
||||||
@ -188,7 +189,7 @@ def verify_package(self):
|
|||||||
else:
|
else:
|
||||||
missing_deps.append(
|
missing_deps.append(
|
||||||
f' depends_on("{deps[dep].spec}",'
|
f' depends_on("{deps[dep].spec}",'
|
||||||
+ f' type=("build", "run"),'
|
+ ' type=("build", "run"),'
|
||||||
+ f' when="@{self.pkg.version}:")'
|
+ f' when="@{self.pkg.version}:")'
|
||||||
)
|
)
|
||||||
for dep in merged_dependencies:
|
for dep in merged_dependencies:
|
||||||
|
Loading…
Reference in New Issue
Block a user