mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-04 04:12:31 +00:00
20 lines
441 B
Python
Executable File
20 lines
441 B
Python
Executable File
#!/usr/bin/python3
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
import sys
|
|
import markdown
|
|
|
|
try:
|
|
from packaging.version import Version
|
|
except ImportError:
|
|
print("Missing 'packaging' python module")
|
|
sys.exit(1)
|
|
|
|
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
|
|
if Version(markdown.__version__) < Version("3.3.3"):
|
|
print("python3-markdown version 3.3.3 required for gi-docgen")
|
|
sys.exit(1)
|
|
|
|
# success
|
|
sys.exit(0)
|