LsstswRepos

class lsst.verify.metadata.lsstsw.LsstswRepos(dirname)

Bases: object

lsstsw package version information based on repos.yaml and checked out Git repositories.

Parameters:
dirnamestr

Path of an lsstsw directory.

Attributes Summary

manifest_path

Path of the manifest.txt file.

Methods Summary

get_package_branch(package_name)

Get the name of the checked-out branch of an EUPS package cloned in lsstsw/build.

get_package_commit_sha(package_name)

Get the hex SHA of the checked-out commit of an EUPS package cloned to lsstsw/build.

get_package_repo_path(package_name)

Path to a EUPS package repository in lsstsw/build.

get_package_repo_url(package_name)

URL of the package's Git repository.

Attributes Documentation

manifest_path

Path of the manifest.txt file.

Methods Documentation

get_package_branch(package_name)

Get the name of the checked-out branch of an EUPS package cloned in lsstsw/build.

Parameters:
package_namestr

Name of the EUPS package.

Returns:
branchstr

Name of the checked-out Git branch. If GitPython is not installed, None is always returned instead.

get_package_commit_sha(package_name)

Get the hex SHA of the checked-out commit of an EUPS package cloned to lsstsw/build.

Parameters:
package_namestr

Name of the EUPS package.

Returns:
commitstr

Hex SHA of the checkout-out Git commit. If GitPython is not installed, None is always returned instead.

get_package_repo_path(package_name)

Path to a EUPS package repository in lsstsw/build.

Parameters:
package_namestr

Name of the EUPS package.

Returns:
pathstr

Directory path of the package’s Git repository in lsstsw/build.

get_package_repo_url(package_name)

URL of the package’s Git repository.

This data is obtained from lsstsw/etc/repos.yaml.

Parameters:
package_namestr

Name of the EUPS package.

Returns:
repo_urlstr

Git origin URL of the package’s Git repository.