diff --git a/README.md b/README.md index b06aae0..c949c57 100644 --- a/README.md +++ b/README.md @@ -44,5 +44,5 @@ setup_requires = requires = ["setuptools", "setuptools-protobuf"] [tool.setuptools-protobuf] -protobufs = example/foo.proto +protobufs = ["example/foo.proto"] ``` diff --git a/setuptools_protobuf/__init__.py b/setuptools_protobuf/__init__.py index 4267144..2756823 100644 --- a/setuptools_protobuf/__init__.py +++ b/setuptools_protobuf/__init__.py @@ -57,7 +57,9 @@ def run(self): self.outfiles.extend(protobuf.outputs()) def get_inputs(self): - return [protobuf.path for protobuf in self.distribution.protobufs] + return [ + protobuf.path + for protobuf in self.distribution.protobufs] # type: ignore def get_outputs(self): return self.outfiles @@ -87,7 +89,8 @@ def pyprojecttoml_config(dist: Distribution) -> None: return None if cfg: - dist.protobufs = [Protobuf(pb) for pb in cfg.get("protobufs")] + dist.protobufs = [ # type: ignore + Protobuf(pb) for pb in cfg.get("protobufs")] class Protobuf: