Пример #1
0
 def test_pretty_print(self):
     pretty_print_latest_version("1.1.1")
Пример #2
0
        import prefetch_generator
    except ImportError:
        _prefetch_generator_available = False
    else:
        _prefetch_generator_available = True

    def _is_prefetch_generator_available():
        return _prefetch_generator_available

    from lightly.core import *
    from lightly import active_learning
    from lightly import api
    from lightly import data
    from lightly import embedding
    from lightly import loss
    from lightly import models
    from lightly import openapi_generated
    from lightly import transforms
    from lightly import utils

    # check for latest version
    from lightly.api.version_checking import get_latest_version
    from lightly.api.version_checking import version_compare
    from lightly.api.version_checking import pretty_print_latest_version

    latest_version = get_latest_version(__version__)
    if latest_version is not None:
        if version_compare(__version__, latest_version) < 0:
            # local version is behind latest version
            pretty_print_latest_version(latest_version)
Пример #3
0
 def test_pretty_print(self):
     pretty_print_latest_version(current_version="curr",
                                 latest_version="1.1.1")