From 35d15c3d339a0a121cedbfe21e449c24e54b11b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=96hman?= Date: Sun, 12 Oct 2025 00:46:03 +0200 Subject: [PATCH 1/2] Add templates for source with just version numbers --- easybuild/framework/easyconfig/templates.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/easybuild/framework/easyconfig/templates.py b/easybuild/framework/easyconfig/templates.py index fccdd58817..b21d279c7e 100644 --- a/easybuild/framework/easyconfig/templates.py +++ b/easybuild/framework/easyconfig/templates.py @@ -271,6 +271,11 @@ 'SOURCE_%s' % suffix: ('%(name)s-%(version)s.' + ext, "Source .%s bundle" % ext), 'SOURCELOWER_%s' % suffix: ('%(namelower)s-%(version)s.' + ext, "Source .%s bundle with lowercase name" % ext), }) + TEMPLATE_CONSTANTS.update({ + 'VERSION_%s' % suffix: ('%(version)s.' + ext, "Source filename .%s common at github" % ext), + 'VVERSION_%s' % suffix: ('v%(version)s.' + ext, "Source filename v.%s common at github" % ext), + }) + for pyver in ('py2.py3', 'py2', 'py3'): if pyver == 'py2.py3': desc = 'Python 2 & Python 3' From a7759a36282436cf65536e094df00604fcb25fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=96hman?= Date: Tue, 14 Oct 2025 00:20:47 +0200 Subject: [PATCH 2/2] Update easybuild/framework/easyconfig/templates.py Co-authored-by: Alexander Grund --- easybuild/framework/easyconfig/templates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/framework/easyconfig/templates.py b/easybuild/framework/easyconfig/templates.py index b21d279c7e..1e0a1166d6 100644 --- a/easybuild/framework/easyconfig/templates.py +++ b/easybuild/framework/easyconfig/templates.py @@ -272,8 +272,8 @@ 'SOURCELOWER_%s' % suffix: ('%(namelower)s-%(version)s.' + ext, "Source .%s bundle with lowercase name" % ext), }) TEMPLATE_CONSTANTS.update({ - 'VERSION_%s' % suffix: ('%(version)s.' + ext, "Source filename .%s common at github" % ext), - 'VVERSION_%s' % suffix: ('v%(version)s.' + ext, "Source filename v.%s common at github" % ext), + 'VERSION_%s' % suffix: ('%(version)s.' + ext, "Source filename .%s common at GitHub" % ext), + 'VVERSION_%s' % suffix: ('v%(version)s.' + ext, "Source filename v.%s common at GitHub" % ext), }) for pyver in ('py2.py3', 'py2', 'py3'):