diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 19:11:35 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 19:31:47 -0300 |
commit | ab292101d2b52d3887aa37437647eb86f0eb744c (patch) | |
tree | d47f00e4f1729402cff0b4a9e46b588d79310756 /testing/py3-sphinxcontrib-gravatar | |
parent | 6524d74a56f60521b03f0e9ff1b50ff6ded207ca (diff) | |
download | aports-ab292101d2b52d3887aa37437647eb86f0eb744c.tar.bz2 aports-ab292101d2b52d3887aa37437647eb86f0eb744c.tar.xz |
testing/py3-sphinxcontrib-gravatar: upgrade to 0.1.2
Diffstat (limited to 'testing/py3-sphinxcontrib-gravatar')
-rw-r--r-- | testing/py3-sphinxcontrib-gravatar/APKBUILD | 42 |
1 files changed, 17 insertions, 25 deletions
diff --git a/testing/py3-sphinxcontrib-gravatar/APKBUILD b/testing/py3-sphinxcontrib-gravatar/APKBUILD index 48626fc953..50af54b994 100644 --- a/testing/py3-sphinxcontrib-gravatar/APKBUILD +++ b/testing/py3-sphinxcontrib-gravatar/APKBUILD @@ -1,41 +1,33 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-sphinxcontrib-gravatar +pkgname=py3-sphinxcontrib-gravatar _pkgname=sphinxcontrib-gravatar -pkgver=0.1.0 +pkgver=0.1.2 pkgrel=0 pkgdesc="Sphinx gravatar extension" +options="!check" # Most tests fail url="https://pypi.python.org/pypi/sphinxcontrib-gravatar" arch="noarch" -license="BSD" -depends="python2 py-sphinx" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +license="BSD-2-Clause" +depends="python3 py3-sphinx" +makedepends="py3-setuptools" +checkdepends="py3-pytest py3-pytest-cov py3-mock" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_builddir="$srcdir"/$_pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +replaces="py-sphinxcontrib-gravatar" # Backwards compatibility +provides="py-sphinxcontrib-gravatar=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build +} + +check() { + python3 setup.py test } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="5e30b438dd76e15a8a8ddf4a87422101 sphinxcontrib-gravatar-0.1.0.tar.gz" -sha256sums="055665d3536345d4c2d7e3d6d11a22be0bb773124f8cdbdd3adc22d2f65c43e7 sphinxcontrib-gravatar-0.1.0.tar.gz" -sha512sums="2e59b7c47b6c5f3e90880f1e32ad4e42e70bc3498edd3f3630256fc28f921c2cac1881001b960206f95b39cb970f097c97a2de0eaff27d3afb3b4c20e78933b8 sphinxcontrib-gravatar-0.1.0.tar.gz" +sha512sums="18f68ab2259a85fe33bf76c9c6c98eed2b196b33a5a3fe04bb481f4df37b653473aeca1bf58871164dc60cf82d7225b62bade9993d825356f6450bca9d8f2980 sphinxcontrib-gravatar-0.1.2.tar.gz" |