Skip to content

Commit

Permalink
Fix sip project generation
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Nov 28, 2024
1 parent f02c7b2 commit 5810189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/pyprojecttoolchain/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]}"
Expand Down

0 comments on commit 5810189

Please sign in to comment.