LsstswRepos

class lsst.verify.metadata.lsstsw.LsstswRepos(dirname)[source]

Bases: object

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

Parameters:

dirname : str

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)[source]

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

Parameters:

package_name : str

Name of the EUPS package.

Returns:

branch : str

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

get_package_commit_sha(package_name)[source]

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

Parameters:

package_name : str

Name of the EUPS package.

Returns:

commit : str

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

get_package_repo_path(package_name)[source]

Path to a EUPS package repository in lsstsw/build.

Parameters:

package_name : str

Name of the EUPS package.

Returns:

path : str

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

get_package_repo_url(package_name)[source]

URL of the package’s Git repository.

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

Parameters:

package_name : str

Name of the EUPS package.

Returns:

repo_url : str

Git origin URL of the package’s Git repository.