mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
python-pytest: require specific version of pluggy
This commit is contained in:
parent
e5f64f1459
commit
4473fd6c92
1 changed files with 10 additions and 5 deletions
|
@ -1,16 +1,17 @@
|
||||||
# Template file for 'python-pytest'
|
# Template file for 'python-pytest'
|
||||||
pkgname=python-pytest
|
pkgname=python-pytest
|
||||||
version=4.6.9
|
version=4.6.9
|
||||||
revision=1
|
revision=2
|
||||||
archs=noarch
|
archs=noarch
|
||||||
wrksrc="pytest-${version}"
|
wrksrc="pytest-${version}"
|
||||||
build_style=python2-module
|
build_style=python2-module
|
||||||
hostmakedepends="python-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools
|
depends="python-atomicwrites python-attrs>=17.4.0 python-funcsigs
|
||||||
python-pluggy python-py python-setuptools python-pathlib2 python-six
|
python-more-itertools python-pluggy>=0.12.0 python-py>=1.6.0
|
||||||
|
python-setuptools python-pathlib2 python-six>=1.10.0
|
||||||
python-wcwidth python-hypothesis python-importlib_metadata
|
python-wcwidth python-hypothesis python-importlib_metadata
|
||||||
python-packaging"
|
python-packaging"
|
||||||
checkdepends="$depends python-mock tox"
|
checkdepends="$depends python-mock"
|
||||||
short_desc="Simple powerful testing with Python 2"
|
short_desc="Simple powerful testing with Python 2"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -26,10 +27,14 @@ post_patch() {
|
||||||
vsed -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}\",|"
|
||||||
|
# This merely check if pytest executable was generated
|
||||||
|
rm testing/test_entry_points.py
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
tox -e py27
|
# Don't use tox, tox will use its own environment instead of system
|
||||||
|
# package
|
||||||
|
PYTHONPATH=$(pwd)/build/lib python2 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue