This is an automated email from the ASF dual-hosted git repository. akitouni pushed a commit to branch abderrahim/prereleases in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 957860e742e8daad21c0d13d4d47f029fab6fada Author: Abderrahim Kitouni <[email protected]> AuthorDate: Tue Jun 3 19:18:16 2025 +0100 pluginoriginpip: allow prereleases This was a regression introduced by the move to use importlib and packaging instead of pkg_resources in 10b45216684a5de8f8770efbf1821f03f16b9e73 --- src/buildstream/_pluginfactory/pluginoriginpip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buildstream/_pluginfactory/pluginoriginpip.py b/src/buildstream/_pluginfactory/pluginoriginpip.py index 507339b7e..a6174d080 100644 --- a/src/buildstream/_pluginfactory/pluginoriginpip.py +++ b/src/buildstream/_pluginfactory/pluginoriginpip.py @@ -72,7 +72,7 @@ class PluginOriginPip(PluginOrigin): reason="package-not-found", ) from e - if dist.version not in package.specifier: + if not package.specifier.contains(dist.version, prereleases=True): raise PluginError( "{}: Version conflict encountered while loading {} plugin '{}'".format( self.provenance_node.get_provenance(), plugin_type, kind
