version.py 442 B

12345678910111213
  1. import sys # pragma: no cover
  2. __version__ = "2.3.0"
  3. msg = """OmegaConf 2.0 and above is compatible with Python 3.6 and newer.
  4. You have the following options:
  5. 1. Upgrade to Python 3.6 or newer.
  6. This is highly recommended. new features will not be added to OmegaConf 1.4.
  7. 2. Continue using OmegaConf 1.4:
  8. You can pip install 'OmegaConf<1.5' to do that.
  9. """
  10. if sys.version_info < (3, 6):
  11. raise ImportError(msg) # pragma: no cover