Dzil authordeps requires dist.ini.

This commit is contained in:
Jelmer Vernooij 2021-05-03 17:24:19 +01:00
parent 1967b13d98
commit 743c83c4b4

View file

@ -999,9 +999,10 @@ class DistZilla(BuildSystem):
return cls(os.path.join(path, "dist.ini")) return cls(os.path.join(path, "dist.ini"))
def get_declared_dependencies(self, session, fixers=None): def get_declared_dependencies(self, session, fixers=None):
lines = run_with_build_fixers(session, ["dzil", "authordeps"], fixers) if os.path.exists(os.path.join(self.path, "dist.ini")):
for entry in lines: lines = run_with_build_fixers(session, ["dzil", "authordeps"], fixers)
yield "build", PerlModuleRequirement(entry.strip()) for entry in lines:
yield "build", PerlModuleRequirement(entry.strip())
if os.path.exists(os.path.join(os.path.dirname(self.path), "cpanfile")): if os.path.exists(os.path.join(os.path.dirname(self.path), "cpanfile")):
yield from _declared_deps_from_cpanfile(session, fixers) yield from _declared_deps_from_cpanfile(session, fixers)