gpxpy version assertion
This commit is contained in:
@@ -10,8 +10,10 @@ __version__ = "0.1"
|
|||||||
import gpxpy
|
import gpxpy
|
||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
|
from packaging import version
|
||||||
import sys
|
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 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
|
######## configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user