From cae4c73f92a14d01826804266bd219c6af89af57 Mon Sep 17 00:00:00 2001 From: Doan Tran Cong Danh Date: Sat, 14 Dec 2019 18:36:35 +0700 Subject: [PATCH] python3-pytest: update to 5.3.2 Split from python-pytest --- srcpkgs/python3-pytest | 1 - srcpkgs/python3-pytest/template | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) delete mode 120000 srcpkgs/python3-pytest create mode 100644 srcpkgs/python3-pytest/template diff --git a/srcpkgs/python3-pytest b/srcpkgs/python3-pytest deleted file mode 120000 index 83ab9de776..0000000000 --- a/srcpkgs/python3-pytest +++ /dev/null @@ -1 +0,0 @@ -python-pytest \ No newline at end of file diff --git a/srcpkgs/python3-pytest/template b/srcpkgs/python3-pytest/template new file mode 100644 index 0000000000..80bf19690d --- /dev/null +++ b/srcpkgs/python3-pytest/template @@ -0,0 +1,39 @@ +# Template file for 'python3-pytest' +pkgname=python3-pytest +version=5.3.2 +revision=1 +archs=noarch +wrksrc="${pkgname/python3-//}-${version}" +build_style=python3-module +pycompile_module="_pytest pytest.py" +hostmakedepends="python3-setuptools" +depends="python3-py python3-packaging python3-attrs python3-more-itertools + python3-atomicwrites python3-pluggy python3-importlib_metadata python3-wcwidth" +checkdepends="$depends python3-argcomplete python3-hypothesis python3-mock + python3-nose python3-requests python3-parsing tox" +short_desc="Simple powerful testing with Python 3" +maintainer="Orphaned " +license="MIT" +homepage="https://docs.pytest.org/en/latest/" +changelog="https://docs.pytest.org/en/latest/changelog.html" +distfiles="${PYPI_SITE}/p/pytest/pytest-${version}.tar.gz" +checksum=6b571215b5a790f9b41f19f3531c53a45cf6bb8ef2988bc1ff9afb38270b25fa +alternatives=" + pytest:pytest:/usr/bin/pytest3 + pytest:py.test:/usr/bin/py.test3" + +post_patch() { + sed -i setup.py \ + -e '/setup_requires=/d' \ + -e "s|use_scm_version=.*|version=\"${version}\",|" +} + +do_check() { + tox -e py36 +} + +post_install() { + mv ${DESTDIR}/usr/bin/pytest ${DESTDIR}/usr/bin/pytest3 + mv ${DESTDIR}/usr/bin/py.test ${DESTDIR}/usr/bin/py.test3 + vlicense LICENSE +}