Skip to content
Snippets Groups Projects
  • Nik | Klampfradler's avatar
    2c1009a7
    Rework `get_version` to not rely on import · 2c1009a7
    Nik | Klampfradler authored
    What did I drink when I wrote the original code? The relative import
    `from .. import __version__` in the utility code in core, of course,
    always imported from `aleksis.core`, no matter the real `AppConfig`
    that inherited the utility code. Thus, the versions always showed the
    version of AlekSIS-Core everywhere (whose version information was
    broken ever since we renamed AlekSIS to AlekSIS-Core).
    
    This change decouples the `get_version` code from the package level
    `__version__` information, which effectively becomes optional now.
    2c1009a7
    History
    Rework `get_version` to not rely on import
    Nik | Klampfradler authored
    What did I drink when I wrote the original code? The relative import
    `from .. import __version__` in the utility code in core, of course,
    always imported from `aleksis.core`, no matter the real `AppConfig`
    that inherited the utility code. Thus, the versions always showed the
    version of AlekSIS-Core everywhere (whose version information was
    broken ever since we renamed AlekSIS to AlekSIS-Core).
    
    This change decouples the `get_version` code from the package level
    `__version__` information, which effectively becomes optional now.