add version 1.26 to py-git-review and fix run_env (#6919)

* Update py-git-review to version 1.26.0

* Fix py-git-review package

TypeError: object of type 'Version' has no len()
This commit is contained in:
healther 2018-01-14 05:08:05 +01:00 committed by Adam J. Stewart
parent c6a7979cfd
commit 176814373c

View file

@ -31,6 +31,7 @@ class PyGitReview(PythonPackage):
homepage = "http://docs.openstack.org/infra/git-review"
url = "https://pypi.io/packages/source/g/git-review/git-review-1.25.0.tar.gz"
version('1.26.0', 'dec20e8a259c03fe19c9dd2362c4ec3f')
version('1.25.0', '0a061d0e23ee9b93c6212a3fe68fb7ab')
version('1.24', '145116fe58a3487c3ad1bf55538fd741')
version('1.23', 'b0023ad8c037ab710da81412194c6a3a')
@ -46,4 +47,4 @@ class PyGitReview(PythonPackage):
depends_on('tk', type=('run'))
def setup_environment(self, spack_env, run_env):
run_env.set('PBR_VERSION', self.spec.version)
run_env.set('PBR_VERSION', str(self.spec.version))