Skip to content

Commit

Permalink
gui: use PEP 440-compliant version number
Browse files Browse the repository at this point in the history
Fixes this error from setuptools:

setuptools.extern.packaging.version.InvalidVersion: Invalid version: '2.10.1.Ludicrous.Lemur'

packaging commit 237ff3a ("Drop `LegacySpecifier` and `LegacyVersion`
(#407)") removed support for legacy versions. This was previously only a
warning from setuptools. This commit is included by packaging 22.0 and
setuptools 67.0.0.

Fixes #608
  • Loading branch information
cebtenzzre committed Apr 18, 2023
1 parent 1ecfb60 commit b5a6d9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def read_version():
with open('../.version', 'r') as handle:
version_string = handle.read()

return version_string.strip()
version_numbers, _ = version_string.split(' ', 1)
return version_numbers


def get_prefix():
Expand Down

0 comments on commit b5a6d9b

Please sign in to comment.