From 6eb1d718d073117e080cf066531ca0a473ebbb80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Sun, 16 Jun 2024 23:44:44 +0200 Subject: [PATCH] ci: workaround for Python 3.6 version getter --- igor2/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/igor2/__init__.py b/igor2/__init__.py index 020875d..de5a36c 100644 --- a/igor2/__init__.py +++ b/igor2/__init__.py @@ -1,5 +1,10 @@ # flake8: noqa: F401 """Interface for reading binary IGOR files.""" -from ._version import __version__, __version_tuple__ +try: + from ._version import __version__, __version_tuple__ +except ImportError + # semver not working on Python 3.6 + __version__ = "unknown" + from . import binarywave