File: version.py

package info (click to toggle)
siril 1.4.0~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 47,352 kB
  • sloc: ansic: 174,082; cpp: 28,254; python: 7,891; makefile: 974; xml: 777; sh: 271
file content (15 lines) | stat: -rw-r--r-- 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Version information for sirilpy package."""

try:  # import from the packaging specification
    from importlib.metadata import metadata, PackageNotFoundError
    meta = metadata("sirilpy")
    __version__ = meta.get("version", "unknown")
    __author__ = meta.get("author", "unknown")
    __license__ = meta.get("license", "unknown")
except (ImportError, PackageNotFoundError):
    # Specific exceptions rather than general Exception
    __version__ = "unknown"
    __author__ = "unknown"
    __license__ = "unknown"

__copyright__ = " (c) Team free-astro 2024-2025"  # not a standard metadata