From: Andrei Pavel Date: Tue, 10 Oct 2023 15:51:23 +0000 (+0300) Subject: [#2969] update supported-systems list in hammer.py X-Git-Tag: Kea-2.5.4~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ff68eba357531de51bca6a981da82a8cabfac43;p=thirdparty%2Fkea.git [#2969] update supported-systems list in hammer.py --- diff --git a/doc/sphinx/arm/hammer.rst b/doc/sphinx/arm/hammer.rst index b8a5318d7c..b8a71586f4 100644 --- a/doc/sphinx/arm/hammer.rst +++ b/doc/sphinx/arm/hammer.rst @@ -32,25 +32,32 @@ or in VirtualBox. For a list of supported systems, use the .. code-block:: console - $ ./hammer.py supported-systems - fedora: - - 27: lxc, virtualbox - - 28: lxc, virtualbox - - 29: lxc, virtualbox - centos: - - 7: lxc, virtualbox - rhel: - - 8: virtualbox - ubuntu: - - 16.04: lxc, virtualbox - - 18.04: lxc, virtualbox - - 18.10: lxc, virtualbox - debian: - - 8: lxc, virtualbox - - 9: lxc, virtualbox - freebsd: - - 11.2: virtualbox - - 12.0: virtualbox + $ ./hammer.py supported-systems + fedora: + - 37: lxc + - 38: + centos: + - 8: lxc, virtualbox + - 9: + rhel: + - 8: virtualbox + - 9: + ubuntu: + - 18.04: lxc, virtualbox + - 20.04: lxc + - 22.04: lxc + debian: + - 10: lxc, virtualbox + - 11: lxc + - 12: lxc + freebsd: + - 12.0: virtualbox + - 12.1: + - 13.0: virtualbox + alpine: + - 3.15: lxc + - 3.16: lxc + - 3.17: lxc It is also possible to run the build locally, in the current system (if the OS is supported). diff --git a/hammer.py b/hammer.py index 153806cd1e..a5867643cf 100755 --- a/hammer.py +++ b/hammer.py @@ -42,64 +42,71 @@ except: import xml.etree.ElementTree as ET +# SYSTEMS = { +# 'os': [ +# ( 'version', True if supported else False ), +# ... +# ], +# ... +# } SYSTEMS = { 'fedora': [ - #'27', # EOLed - #'28', # EOLed - #'29', # EOLed - #'30', # EOLed - #'31', # EOLed - '32', # EOLed - '33', # EOLed - '34', - '35', - '36', - '37', - '38' + ( '27', False ), + ( '28', False ), + ( '29', False ), + ( '30', False ), + ( '31', False ), + ( '32', False ), + ( '33', False ), + ( '34', False ), + ( '35', False ), + ( '36', False ), + ( '37', True ), + ( '38', True ), ], 'centos': [ - '7', - '8', - '9', + ( '7', False ), + ( '8', True ), + ( '9', True ), ], 'rhel': [ - '8', - '9', + ( '8', True ), + ( '9', True ), ], 'ubuntu': [ - #'16.04', - '18.04', - #'18.10', # EOLed - #'19.04', # EOLed - #'19.10', # EOLed - '20.04', - '20.10', - '21.04', - '22.04', + ( '16.04', False ), + ( '18.04', True ), + ( '18.10', False ), + ( '19.04', False ), + ( '19.10', False ), + ( '20.04', True ), + ( '20.10', False ), + ( '21.04', False ), + ( '22.04', True ), ], 'debian': [ - #'8', - '9', - '10', - '11', - '12' + ( '8', False ), + ( '9', False ), + ( '10', True ), + ( '11', True ), + ( '12', True ), ], 'freebsd': [ - '11.2', - '11.4', - '12.0', - '12.1', - '13.0', + ( '11.2', False ), + ( '11.4', False ), + ( '12.0', True ), + ( '12.1', True ), + ( '13.0', True ), ], 'alpine': [ - #'3.10', # EOLed - #'3.11', # EOLed - #'3.12', # EOLed - '3.13', - '3.14', - '3.15', - '3.16', - '3.17', + ( '3.10', False ), + ( '3.11', False ), + ( '3.12', False ), + ( '3.13', False ), + ( '3.14', False ), + ( '3.15', True ), + ( '3.16', True ), + ( '3.17', True ), ], 'arch': [] } @@ -2868,9 +2875,11 @@ def parse_args(): def list_supported_systems(): """List systems hammer can support (with supported providers).""" - for system, revisions in SYSTEMS.items(): + for system, revisions_and_supported in SYSTEMS.items(): print('%s:' % system) - for r in revisions: + for r, supported in revisions_and_supported: + if not supported: + continue providers = [] for p in ['lxc', 'virtualbox']: k = '%s-%s-%s' % (system, r, p)