diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 24 insertions, 8 deletions
@@ -1,34 +1,50 @@ # Maintainer: Astro Benzene <universebenzene at sina dot com> pkgname=python-sphinx-astropy _pyname=${pkgname#python-} -pkgver=1.7.0 +pkgver=1.8.0 pkgrel=1 pkgdesc="Sphinx extensions and configuration specific to the Astropy project" arch=('any') url="https://github.com/astropy/sphinx-astropy" license=('BSD') -depends=('python-sphinx>=1.7' 'python-astropy-sphinx-theme' 'python-sphinx-automodapi' 'python-sphinx-gallery' 'python-numpydoc' 'python-pillow' 'python-pytest-doctestplus>=0.11.0' 'python-packaging') -makedepends=('python-setuptools') -#checkdepends=('python-pytest') +makedepends=('python-setuptools-scm' + 'python-wheel' + 'python-build' + 'python-installer') +checkdepends=('python-pytest-doctestplus' + 'python-astropy-sphinx-theme' + 'python-numpydoc' + 'python-sphinxcontrib.jquery' + 'python-sphinx-automodapi' + ) source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") -md5sums=('a5e01881d8f9faef1231f7e0c7884c53') +md5sums=('1080a54c73c327fe6511764110b09508') build() { cd ${srcdir}/${_pyname}-${pkgver} - python setup.py build + python -m build --wheel --no-isolation } check() { cd ${srcdir}/${_pyname}-${pkgver} - pytest || warning "Tests failed" + pytest || warning "Tests failed" # -vv --color=yes } package() { + depends=('python-packaging' + 'python-sphinx>=1.7' + 'python-astropy-sphinx-theme' + 'python-sphinx-automodapi' + 'python-sphinx-gallery' + 'python-numpydoc' + 'python-sphinxcontrib.jquery' + 'python-pillow' + 'python-pytest-doctestplus>=0.11') cd ${srcdir}/${_pyname}-${pkgver} install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}" install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" - python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + python -m installer --destdir="${pkgdir}" dist/*.whl } |