From c8381a6d0d4a0a41af0e91c183dc653cd0b00a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 31 Dec 2019 14:19:05 +0100 Subject: [PATCH 1/2] python-importlib_metadata: add dependencies, fix tests --- srcpkgs/python3-importlib_metadata/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-importlib_metadata/template b/srcpkgs/python3-importlib_metadata/template index fa80b295033..ccf63f56be2 100644 --- a/srcpkgs/python3-importlib_metadata/template +++ b/srcpkgs/python3-importlib_metadata/template @@ -1,14 +1,14 @@ # Template file for 'python3-importlib_metadata' pkgname=python3-importlib_metadata version=1.2.0 -revision=2 +revision=3 archs=noarch wrksrc="importlib_metadata-${version}" build_style=python-module pycompile_module=importlib_metadata hostmakedepends="python-setuptools python3-setuptools" depends="python3-zipp" -checkdepends="${depends}" +checkdepends="${depends} python3-packaging" short_desc="Read metadata from Python packages" maintainer="Piotr Wójcik " license="Apache-2.0" @@ -17,8 +17,12 @@ changelog="https://importlib-metadata.readthedocs.io/en/latest/changelog%20(link distfiles="${PYPI_SITE}/i/importlib_metadata/importlib_metadata-${version}.tar.gz" checksum=41e688146d000891f32b1669e8573c57e39e5060e7f5f647aa617cd9a9568278 +do_check() { + python3 setup.py test +} + python-importlib_metadata_package() { - depends=python-zipp + depends="python-zipp python-backports.configparser python-contextlib2" short_desc="${short_desc/Python/Python 2/}" pkg_install() { vmove "usr/lib/python2.7" From 9ab573e0b8cd7b176a5e123f3ac3feff585ed043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 31 Dec 2019 14:19:44 +0100 Subject: [PATCH 2/2] python-pytest: add dependencies --- srcpkgs/python-pytest/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python-pytest/template b/srcpkgs/python-pytest/template index a88c5709737..21ca51dad59 100644 --- a/srcpkgs/python-pytest/template +++ b/srcpkgs/python-pytest/template @@ -1,7 +1,7 @@ # Template file for 'python-pytest' pkgname=python-pytest version=4.6.7 -revision=1 +revision=2 archs=noarch wrksrc="${pkgname/python-//}-${version}" build_style=python2-module @@ -9,7 +9,8 @@ pycompile_module="_pytest pytest.py" hostmakedepends="python-setuptools" depends="python-atomicwrites python-attrs python-funcsigs python-more-itertools python-pluggy python-py python-setuptools python-pathlib2 python-six - python-wcwidth python-hypothesis python-importlib_metadata" + python-wcwidth python-hypothesis python-importlib_metadata + python-packaging" checkdepends="$depends tox" short_desc="Simple powerful testing with Python 2" maintainer="Orphaned "