-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from boegel/feature_package_step_w_fpm
cleanup of support for packaging + kickstart unit tests related to packaging support
- Loading branch information
Showing
7 changed files
with
244 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,55 @@ | ||
|
||
## | ||
# Copyright 2015-2015 Ghent University | ||
# | ||
# This file is part of EasyBuild, | ||
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), | ||
# with support of Ghent University (http://ugent.be/hpc), | ||
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), | ||
# the Hercules foundation (http://www.herculesstichting.be/in_English) | ||
# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en). | ||
# | ||
# http://github.com/hpcugent/easybuild | ||
# | ||
# EasyBuild is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation v2. | ||
# | ||
# EasyBuild is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with EasyBuild. If not, see <http://www.gnu.org/licenses/>. | ||
## | ||
|
||
""" | ||
General package naming scheme. | ||
@author: Robert Schmidt (Ottawa Hospital Research Institute) | ||
@author: Kenneth Hoste (Ghent University) | ||
""" | ||
from vsc.utils import fancylogger | ||
from easybuild.tools.config import build_option | ||
from easybuild.tools.version import VERSION as EASYBUILD_VERSION | ||
options = [ "package-naming-name-template", "package-naming-version-template", "package-naming-toolchain-template" ] | ||
|
||
class PackagingNamingScheme(object): | ||
"""Abstract class for package naming scheme""" | ||
|
||
class PackagingNamingScheme(object): | ||
"""Abstract class for package naming schemes""" | ||
|
||
def __init__(self, *args, **kwargs): | ||
def __init__(self): | ||
"""initialize logger.""" | ||
self.log = fancylogger.getLogger(self.__class__.__name__, fname=False) | ||
self.eb_ver = EASYBUILD_VERSION | ||
|
||
def name(self,ec): | ||
"""Return name of the package, by default would include name, version, toolchain""" | ||
def name(self, ec): | ||
"""Determine package name""" | ||
raise NotImplementedError | ||
|
||
def version(self,ec): | ||
"""The version in the version part of the package""" | ||
return ec['version'] | ||
|
||
def release(self,ec=None): | ||
"""Just the release""" | ||
return build_option('package_release') | ||
|
||
def version(self, ec): | ||
"""Determine package version""" | ||
return ec['version'] | ||
|
||
def release(self, ec=None): | ||
"""Determine package release""" | ||
return build_option('package_release') |
Oops, something went wrong.