mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/py3-pyfakefs: upgrade to 5.2.2
This commit is contained in:
parent
433740ed8e
commit
2720c6855d
@ -1,31 +1,40 @@
|
|||||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
pkgname=py3-pyfakefs
|
pkgname=py3-pyfakefs
|
||||||
_pkgname=${pkgname#py3-}
|
_pkgname=${pkgname#py3-}
|
||||||
pkgver=5.0.0
|
pkgver=5.2.2
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="fake file system that mocks the Python file system modules"
|
pkgdesc="fake file system that mocks the Python file system modules"
|
||||||
options="!check" # flaky tests
|
|
||||||
url="https://github.com/jmcgeheeiv/pyfakefs/"
|
url="https://github.com/jmcgeheeiv/pyfakefs/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="
|
||||||
|
py3-gpep517
|
||||||
|
py3-setuptools
|
||||||
|
py3-wheel
|
||||||
|
"
|
||||||
|
checkdepends="py3-pytest-xdist"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 setup.py test
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
||||||
|
testenv/bin/python3 -m installer dist/*.whl
|
||||||
|
testenv/bin/python3 -m pytest -n auto
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
python3 -m installer -d "$pkgdir" \
|
||||||
|
dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
807042f7fcffb72590cada04634ec4a1c9bdc901f56012907cef67df2c04e847d23c2f4b6925240664e03d9640d9ebe3f2137efd0d28190de53386bb9a15cca2 pyfakefs-5.0.0.tar.gz
|
08e7f91ae618ed29481a1df7420d26cfe7630ea51d5653ff887d304b6841b2301aa98d13ff1312791cd658400bbdcaec54035dd2e95e4504509eb74188b5c2d3 pyfakefs-5.2.2.tar.gz
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user