easybuild.tools.repository.repository module¶
Generic support for dealing with repositories
Authors:
- Stijn De Weirdt (Ghent University)
- Dries Verdegem (Ghent University)
- Kenneth Hoste (Ghent University)
- Pieter De Baets (Ghent University)
- Jens Timmerman (Ghent University)
- Toon Willems (Ghent University)
- Ward Poelmans (Ghent University)
- Fotis Georgatos (Uni.Lu, NTUA)
-
class
easybuild.tools.repository.repository.Repository(repo_path, subdir='')¶ Bases:
objectInterface for repositories
-
DESCRIPTION= None¶
-
USABLE= True¶
-
add_easyconfig(cfg, name, version, stats, previous)¶ Add easyconfig to repository
Parameters: - cfg – location of easyconfig file
- name – software name
- version – software install version, incl. toolchain & versionsuffix
- stats – build stats, to add to archived easyconfig
- previous – list of previous build stats
Returns: location of archived easyconfig
-
add_patch(patch)¶ Add patch file to repository
Parameters: patch – location of patch file Returns: location of archived patch
-
cleanup()¶ Clean up working copy.
-
commit(msg=None)¶ Commit working copy - add msg - add more info to msg
-
create_working_copy()¶ Create working copy.
-
get_buildstats(name, ec_version)¶ Get the build statististics for software with name and easyconfig version
-
init()¶ Prepare repository for use.
-
is_initialized()¶ Indicate whether repository was initialized.
-
setup_repo()¶ Set up repository.
-
stage_file(path)¶ Stage file at specified location in repository for commit
Parameters: path – location of file to stage
-
-
easybuild.tools.repository.repository.avail_repositories(check_useable=True)¶ - Return all available repositories.
- check_useable: boolean, if True, only return usable repositories
-
easybuild.tools.repository.repository.init_repository(repository, repository_path)¶ Return an instance of the selected repository class.