Would it be possible to make it work for Linux too? It only works for macOS at the moment.
As an alternative if this helps anyone, I am doing this:
# host.package doesn't work with homebrew packages on Linux
def test_homebrew_packages(host):
packages = {
'git-delta': re.compile(r'delta \d+\.\d+\.\d+', re.M),
'hub': re.compile(r'hub version .*', re.M),
}
for package, version_re in packages.items():
version = host.run("bash -l -c " + package + " --version").stdout
assert version_re.match(version)
Not as robust as using the package module but better than nothing.
Would it be possible to make it work for Linux too? It only works for macOS at the moment.
As an alternative if this helps anyone, I am doing this:
Not as robust as using the package module but better than nothing.