Source code for enpt_enmapboxapp.version

# -*- coding: utf-8 -*-

# enpt_enmapboxapp, A QGIS EnMAPBox plugin providing a GUI for the EnMAP processing tools (EnPT)
#
# Copyright (C) 2018-2024 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
#
# This software was developed within the context of the EnMAP project supported
# by the DLR Space Administration with funds of the German Federal Ministry of
# Economic Affairs and Energy (on the basis of a decision by the German Bundestag:
# 50 EE 1529) and contributions from DLR, GFZ and OHB System AG.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.

__version__ = '0.8.6'
__versionalias__ = '20240305.01'
__author__ = 'Daniel Scheffler'

_minimal_enpt_version = '0.20.1'


[docs] def check_minimal_enpt_version(enpt_version: str): from packaging.version import parse as _parse_version if _parse_version(enpt_version) < _parse_version(_minimal_enpt_version): raise EnvironmentError(f"The installed version of EnPT (v{enpt_version}) is too old. " f"At least version {_minimal_enpt_version} is required.")