1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-teamcity-messages
6 pkgdesc="Send test results to TeamCity continuous integration server from unittest, nose, py.test, twisted trial, behave"
7 url="https://github.com/JetBrains/teamcity-messages"
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest' 'python-virtualenv')
13 source=("https://github.com/JetBrains/teamcity-messages/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('b9733edb1e2aef4ca69773070e927a2b6162b34d8bea4b4fd22c5d7858de2d6416dcc39102aa718b4858635900519cfd7e02016143ac6a19fa82d1fd6780c0a3')
17 cd teamcity-messages-$pkgver
18 sed -i "s/virtualenv_version = 'virtualenv==20.7.2'/virtualenv_version = 'virtualenv'/" setup.py
22 cd teamcity-messages-$pkgver
27 cd teamcity-messages-$pkgver
28 python setup.py test || echo "Tests failed"
32 cd teamcity-messages-$pkgver
33 python setup.py install --root="$pkgdir" --optimize=1