# Path: ciao_contrib/logger_wrapper.py
# class NullHandler(logging.Handler):
# class CIAOLogger(logging.getLoggerClass()):
#     def emit(self, record):
# def _lvl_to_v(lvl):
# def _v_to_lvl(v):
# def _check_verbose(verbose):
#     def __init__(self, name, verbose=-1, level=None):
#     def verbose(self):
#     def verbose(self, verbose):
#     def getEffectiveVerbose(self):
#     def verbose0(self, msg):
#     def verbose1(self, msg):
#     def verbose2(self, msg):
#     def verbose3(self, msg):
#     def verbose4(self, msg):
#     def verbose5(self, msg):
# def get_logger(lgr):
# def get_module_logger(lgr):
# def initialize_module_logger(name):
# def initialize_logger(name, verbose=0, out=sys.stdout):
# def get_verbosity():
# def get_effective_verbosity():
# def set_verbosity(verbose=1):
# def get_module_verbosity():
# def get_module_effective_verbosity():
# def set_module_verbosity(verbose=1):
# def make_verbose_level(progname, verbose):
# def preprocess_arglist(args):
# def set_handle_ciao_errors_debug(flag=False):
# def get_handle_ciao_errors_debug():
# def _add_color(txt):
# def _handle_traceback():
# def handle_ciao_errors(toolname, version=None):
#     def decorator(fn):
#         def new_fn(*args, **kw):
# VNOTSET = -1
# V0 = _v_to_lvl(0)
# V1 = _v_to_lvl(1)
# V2 = _v_to_lvl(2)
# V3 = _v_to_lvl(3)
# V4 = _v_to_lvl(4)
# V5 = _v_to_lvl(5)


import glob
import json
import os
import subprocess
    import ssl
from urllib.request import urlopen
from urllib.error import HTTPError, URLError
from ciao_contrib import logger_wrapper as lw
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 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 General Public License for more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

"""
Access the CIAO version (both installed and latest available).

Query either the local installation for the installed version
of CIAO, or find out the latest released version by querying
the CXC website.
"""





__all__ = ('get_installed_versions', 'get_latest_versions',
           'read_latest_versions', 'check_conda_versions')



# Path: ciao_contrib/logger_wrapper.py
# class NullHandler(logging.Handler):
# class CIAOLogger(logging.getLoggerClass()):
#     def emit(self, record):
# def _lvl_to_v(lvl):
# def _v_to_lvl(v):
# def _check_verbose(verbose):
#     def __init__(self, name, verbose=-1, level=None):
#     def verbose(self):
#     def verbose(self, verbose):
#     def getEffectiveVerbose(self):
#     def verbose0(self, msg):
#     def verbose1(self, msg):
#     def verbose2(self, msg):
#     def verbose3(self, msg):
#     def verbose4(self, msg):
#     def verbose5(self, msg):
# def get_logger(lgr):
# def get_module_logger(lgr):
# def initialize_module_logger(name):
# def initialize_logger(name, verbose=0, out=sys.stdout):
# def get_verbosity():
# def get_effective_verbosity():
# def set_verbosity(verbose=1):
# def get_module_verbosity():
# def get_module_effective_verbosity():
# def set_module_verbosity(verbose=1):
# def make_verbose_level(progname, verbose):
# def preprocess_arglist(args):
# def set_handle_ciao_errors_debug(flag=False):
# def get_handle_ciao_errors_debug():
# def _add_color(txt):
# def _handle_traceback():
# def handle_ciao_errors(toolname, version=None):
#     def decorator(fn):
#         def new_fn(*args, **kw):
# VNOTSET = -1
# V0 = _v_to_lvl(0)
# V1 = _v_to_lvl(1)
# V2 = _v_to_lvl(2)
# V3 = _v_to_lvl(3)
# V4 = _v_to_lvl(4)
# V5 = _v_to_lvl(5)


# Path: ciao_contrib/_tools/versioninfo.py
import glob
import json
import os
import subprocess
    import ssl
from urllib.request import urlopen
from urllib.error import HTTPError, URLError
from ciao_contrib import logger_wrapper as lw

#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 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 General Public License for more details.
#
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

"""
Access the CIAO version (both installed and latest available).

Query either the local installation for the installed version
of CIAO, or find out the latest released version by querying
the CXC website.
"""





__all__ = ('get_installed_versions', 'get_latest_versions',
           'read_latest_versions', 'check_conda_versions')



lgr = lw.initialize_module_logger('_tools.versioninfo')