python-pytest: fix template
This commit is contained in:
parent
d9ac451215
commit
18bb8ca08d
@ -1,40 +1,49 @@
|
|||||||
# Template file for 'python-pytest'
|
# Template file for 'python-pytest'
|
||||||
pkgname=python-pytest
|
pkgname=python-pytest
|
||||||
version=3.5.1
|
version=3.5.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="${pkgname/python-//}-${version}"
|
wrksrc="${pkgname/python-//}-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module="_pytest"
|
pycompile_module="_pytest pytest.py"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python-attrs python-funcsigs python-more-itertools python-pluggy
|
depends="python-attrs python-funcsigs python-more-itertools python-pluggy
|
||||||
python-py python-setuptools"
|
python-py python-setuptools"
|
||||||
checkdepends="python3-hypothesis python3-more-itertools python3-pluggy
|
checkdepends="python3-hypothesis python3-more-itertools python3-pluggy
|
||||||
python3-py"
|
python3-py"
|
||||||
short_desc="Pytest: simple powerful testing with Python2"
|
short_desc="Simple powerful testing with Python2"
|
||||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://docs.pytest.org/en/latest/"
|
homepage="https://docs.pytest.org/en/latest/"
|
||||||
distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz"
|
||||||
checksum=54713b26c97538db6ff0703a12b19aeaeb60b5e599de542e7fca0ec83b9038e8
|
checksum=54713b26c97538db6ff0703a12b19aeaeb60b5e599de542e7fca0ec83b9038e8
|
||||||
alternatives="python-pytest:pytest:/usr/bin/pytest2
|
alternatives="
|
||||||
python-pytest:py.test:/usr/bin/py.test2"
|
pytest:pytest:/usr/bin/pytest2
|
||||||
|
pytest:py.test:/usr/bin/py.test2"
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
sed -i setup.py \
|
||||||
|
-e '/setup_requires=/d' \
|
||||||
|
-e '/use_scm_version/,+2d' \
|
||||||
|
-e "/name=/ a\
|
||||||
|
version='${version}',"
|
||||||
|
}
|
||||||
do_check() {
|
do_check() {
|
||||||
python3 setup.py test
|
python3 setup.py test
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-pytest_package() {
|
python3-pytest_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pycompile_module="_pytest"
|
pycompile_module="_pytest pytest.py"
|
||||||
alternatives="python-pytest:pytest:/usr/bin/pytest3
|
alternatives="
|
||||||
python-pytest:py.test:/usr/bin/py.test3"
|
pytest:pytest:/usr/bin/pytest3
|
||||||
|
pytest:py.test:/usr/bin/py.test3"
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
depends="python3-hypothesis python3-more-itertools python3-pluggy python3-py"
|
depends="python3-attrs python3-more-itertools python3-pluggy python3-py
|
||||||
|
python3-setuptools"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/bin/*3"
|
vmove "usr/bin/*3"
|
||||||
vmove "usr/lib/python3*"
|
vmove "usr/lib/python3*"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user