python-pytest: update to 4.6.7
This commit is contained in:
parent
1c8eaed94f
commit
b2dedb8189
1 changed files with 16 additions and 30 deletions
|
@ -1,53 +1,39 @@
|
||||||
# Template file for 'python-pytest'
|
# Template file for 'python-pytest'
|
||||||
pkgname=python-pytest
|
pkgname=python-pytest
|
||||||
version=3.7.1
|
version=4.6.7
|
||||||
revision=3
|
revision=1
|
||||||
archs=noarch
|
archs=noarch
|
||||||
wrksrc="${pkgname/python-//}-${version}"
|
wrksrc="${pkgname/python-//}-${version}"
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
pycompile_module="_pytest pytest.py"
|
pycompile_module="_pytest pytest.py"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools
|
depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools
|
||||||
python-pluggy python-py python-setuptools python-pathlib2"
|
python-pluggy python-py python-setuptools python-pathlib2 python-six
|
||||||
checkdepends="python3-atomicwrites python3-hypothesis python3-more-itertools
|
python-wcwidth python-hypothesis python-importlib_metadata"
|
||||||
python3-pluggy python3-py python3-six"
|
checkdepends="$depends tox"
|
||||||
short_desc="Simple powerful testing with Python2"
|
short_desc="Simple powerful testing with Python 2"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://docs.pytest.org/en/latest/"
|
homepage="https://pytest.org/en/latest/"
|
||||||
changelog="https://raw.githubusercontent.com/pytest-dev/pytest/master/CHANGELOG.rst"
|
changelog="https://docs.pytest.org/en/latest/changelog.html"
|
||||||
distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
|
||||||
checksum=86a8dbf407e437351cef4dba46736e9c5a6e3c3ac71b2e942209748e76ff2086
|
checksum=9ea149066f566c943d3122f4b1cf1b577cab73189d11f490b54703fa5fa9df50
|
||||||
alternatives="
|
alternatives="
|
||||||
pytest:pytest:/usr/bin/pytest2
|
pytest:pytest:/usr/bin/pytest2
|
||||||
pytest:py.test:/usr/bin/py.test2"
|
pytest:py.test:/usr/bin/py.test2"
|
||||||
|
|
||||||
pre_build() {
|
post_patch() {
|
||||||
sed -i setup.py \
|
vsed -i setup.py \
|
||||||
-e '/setup_requires=/d' \
|
-e '/setup_requires=/d' \
|
||||||
-e "s|use_scm_version=.*|version=\"${version}\",|"
|
-e "s|use_scm_version=.*|version=\"${version}\",|"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
python3 setup.py test
|
tox -e py27
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
mv ${DESTDIR}/usr/bin/pytest ${DESTDIR}/usr/bin/pytest2
|
||||||
|
mv ${DESTDIR}/usr/bin/py.test ${DESTDIR}/usr/bin/py.test2
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-pytest_package() {
|
|
||||||
archs=noarch
|
|
||||||
pycompile_module="_pytest pytest.py"
|
|
||||||
alternatives="
|
|
||||||
pytest:pytest:/usr/bin/pytest3
|
|
||||||
pytest:py.test:/usr/bin/py.test3"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
|
||||||
depends="python3-atomicwrites python3-attrs python3-more-itertools
|
|
||||||
python3-pluggy python3-py python3-setuptools python3-six"
|
|
||||||
pkg_install() {
|
|
||||||
vmove "usr/bin/*3"
|
|
||||||
vmove "usr/lib/python3*"
|
|
||||||
vlicense LICENSE
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue