From 5810189d12ae62e413fd182bbc0c7fd2c0ebc0ec Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Thu, 28 Nov 2024 11:37:32 +0100 Subject: [PATCH] Fix sip project generation --- recipes/pyprojecttoolchain/all/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/pyprojecttoolchain/all/conanfile.py b/recipes/pyprojecttoolchain/all/conanfile.py index 2dfc4cf..a99e197 100644 --- a/recipes/pyprojecttoolchain/all/conanfile.py +++ b/recipes/pyprojecttoolchain/all/conanfile.py @@ -55,7 +55,7 @@ def context(self): mod_version = Version(self._conanfile.version) pypi_version = f"{mod_version.major}.{mod_version.minor}.{mod_version.patch}" - if mod_version.pre != "": + if mod_version.pre is not None: split_prerelease = str(mod_version.pre).split(".") if len(split_prerelease) > 1: pypi_version += f"{split_prerelease[0][0]}{split_prerelease[1]}"