From 648586856481f6678088df4d36c005ad8d4be7d6 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Thu, 26 Mar 2020 14:42:08 +0100 Subject: [PATCH] gpxpy version assertion --- search.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/search.py b/search.py index 5ef92f0..6c1667e 100644 --- a/search.py +++ b/search.py @@ -10,8 +10,10 @@ __version__ = "0.1" import gpxpy import requests import os +from packaging import version import sys assert sys.version_info >= (3, 6), "At least Python 3.8 required due to fStrings. Replace all f\"…\" and comment this line to enable running in lower versions (but really, you should just update your Python version…)." +assert version.parse(gpxpy.__version) >= version.parse("1.4.0"), "Update gpxpy to at least v1.4.0" ##################################### ######## configuration