From 70123aaa5d95eee8a9d74c8893b0b5cfd7728390 Mon Sep 17 00:00:00 2001 From: Shlomi Fish <shlomif@shlomifish.org> Date: Wed, 22 Apr 2020 20:21:10 +0300 Subject: [PATCH] Require a minimal version of "attr". See: https://github.com/shlomif/PySolFC/issues/159 . Thanks to @radub7 for the report. --- pysollib/game/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pysollib/game/__init__.py b/pysollib/game/__init__.py index 340ae1e7..f7419155 100644 --- a/pysollib/game/__init__.py +++ b/pysollib/game/__init__.py @@ -78,6 +78,11 @@ if TOOLKIT == 'tk': else: from pysollib.pysoltk import reset_solver_dialog +# See: https://github.com/shlomif/PySolFC/issues/159 . +# 'factory=' is absent from older versions. +assert getattr(attr, '__version_info__', (0, 0, 0)) >= (18, 2, 0), ( + "Newer version of https://pypi.org/project/attrs/ is required.") + PLAY_TIME_TIMEOUT = 200 S_PLAY = 0x40