diff options
author | vvolkl <valentin.volkl@cern.ch> | 2020-04-27 18:01:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 11:01:09 -0500 |
commit | 77812845b83311019daa01bb859afe944e4f2162 (patch) | |
tree | df32576bc821a61a8fc8f55f570f761633f9d163 /var | |
parent | eda886f62751d7493e1f0a28e76ef7e290766644 (diff) | |
download | spack-77812845b83311019daa01bb859afe944e4f2162.tar.gz spack-77812845b83311019daa01bb859afe944e4f2162.tar.bz2 spack-77812845b83311019daa01bb859afe944e4f2162.tar.xz spack-77812845b83311019daa01bb859afe944e4f2162.zip |
update podio version formatting (#16321)
* update podio version formatting
* [podio] formatting fixes
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/podio/package.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/podio/package.py b/var/spack/repos/builtin/packages/podio/package.py index bc7a6dab90..14b4722cdb 100644 --- a/var/spack/repos/builtin/packages/podio/package.py +++ b/var/spack/repos/builtin/packages/podio/package.py @@ -17,10 +17,10 @@ class Podio(CMakePackage): maintainers = ['vvolkl', 'drbenmorgan'] version('master', branch='master') - version('00-10', sha256='b5b42770ec8b96bcd2748abc05669dd3e4d4cc84f81ed57d57d2eda1ade90ef2') - version('00-09-02', sha256='8234d1b9636029124235ef81199a1220968dcc7fdaeab81cdc96a47af332d240') - version('00-09', sha256='3cde67556b6b76fd2d004adfaa3b3b6173a110c0c209792bfdb5f9353e21076f') - version('00-08', sha256='9d035a7f5ebfae5279a17405003206853271af692f762e2bac8e73825f2af327') + version('0.10.0', sha256='b5b42770ec8b96bcd2748abc05669dd3e4d4cc84f81ed57d57d2eda1ade90ef2') + version('0.9.2', sha256='8234d1b9636029124235ef81199a1220968dcc7fdaeab81cdc96a47af332d240') + version('0.9.0', sha256='3cde67556b6b76fd2d004adfaa3b3b6173a110c0c209792bfdb5f9353e21076f') + version('0.8.0', sha256='9d035a7f5ebfae5279a17405003206853271af692f762e2bac8e73825f2af327') variant('build_type', default='Release', description='The build type to build', @@ -56,3 +56,16 @@ class Podio(CMakePackage): def setup_dependent_run_environment(self, env, dependent_spec): env.set('PODIO', self.prefix) + + def url_for_version(self, version): + # podio releases are dashes and padded with a leading zero + # the patch version is omitted when 0 + # so for example v01-12-01, v01-12 ... + major = (str(version[0]).zfill(2)) + minor = (str(version[1]).zfill(2)) + patch = (str(version[2]).zfill(2)) + if version[2] == 0: + url = "https://github.com/AIDASoft/podio/archive/v%s-%s.tar.gz" % (major, minor) + else: + url = "https://github.com/AIDASoft/podio/archive/v%s-%s-%s.tar.gz" % (major, minor, patch) + return url |