diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -2,15 +2,20 @@ pkgbase=python-ci_watson _pyname=${pkgbase#python-} pkgname=("python-${_pyname}" "python-${_pyname}-doc") -pkgver=0.4 +pkgver=0.5 pkgrel=1 pkgdesc="CI helper for STScI Jenkins" arch=('i686' 'x86_64') url="https://ci_watson.readthedocs.io" license=('BSD') -makedepends=('python-setuptools' 'python-relic' 'python-pytest' 'python-sphinx_rtd_theme' 'python-numpydoc' 'python-sphinx-automodapi') +makedepends=('python-setuptools-scm' 'python-pytest' 'python-sphinx_rtd_theme' 'python-numpydoc' 'python-sphinx-automodapi') +#checkdepends=('python-pytest-astropy-header') source=("https://github.com/spacetelescope/${_pyname}/archive/${pkgver}.tar.gz") -md5sums=('64a92637b9ff11a5b126e2cc6e5d17e7') +md5sums=('b229fcdf7d74e8f7217945a8d83efc08') + +prepare() { + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} +} build() { cd ${srcdir}/${_pyname}-${pkgver} @@ -24,6 +29,7 @@ check() { cd ${srcdir}/${_pyname}-${pkgver} python setup.py test +# pytest } package_python-ci_watson() { @@ -40,6 +46,7 @@ package_python-ci_watson-doc() { pkgdesc="Documentation for CI Watson" cd ${srcdir}/${_pyname}-${pkgver}/build/sphinx + install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE.md install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}" cp -a html "${pkgdir}/usr/share/doc/${pkgbase}" } |