wok-next diff python-pytest/receipt @ rev 21716
created get-anydesk
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jul 28 11:20:16 2020 +0100 (2020-07-28) |
parents | 8b5b2a6d07b8 |
children |
line diff
1.1 --- a/python-pytest/receipt Fri Sep 14 01:56:52 2018 +0300 1.2 +++ b/python-pytest/receipt Tue Jul 28 11:20:16 2020 +0100 1.3 @@ -1,31 +1,37 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 +ORIGIN="pytest" 1.8 PACKAGE="python-pytest" 1.9 -VERSION="2.3.4" 1.10 -CATEGORY="development" 1.11 +VERSION="3.8.0" 1.12 +CATEGORY="python" 1.13 SHORT_DESC="A simple powerful testing with Python" 1.14 MAINTAINER="pascal.bellard@slitaz.org" 1.15 LICENSE="MIT" 1.16 -WEB_SITE="https://pypi.org/project/pytest/" 1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.18 +HOST_ARCH="any" 1.19 REPOLOGY="python:pytest" 1.20 1.21 -SOURCE="pytest" 1.22 -TARBALL="$SOURCE-$VERSION.zip" 1.23 -WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" 1.24 +BUILD_DEPENDS="python python-atomicwrites python-attrs python-funcsigs \ 1.25 +python-more-itertools python-pathlib2 python-pluggy python-py python-six \ 1.26 +python3 python3-atomicwrites python3-attrs python3-more-itertools \ 1.27 +python3-pluggy python3-py python3-six" 1.28 +SPLIT="${PACKAGE/python/python3}:3" 1.29 1.30 -DEPENDS="python" 1.31 -BUILD_DEPENDS="python-dev" 1.32 - 1.33 -# Rules to configure and make the package. 1.34 -compile_rules() 1.35 -{ 1.36 - python setup.py build 1.37 - python setup.py install --root=$DESTDIR 1.38 +compile_rules() { 1.39 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.40 } 1.41 1.42 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 -genpkg_rules() 1.44 -{ 1.45 - mkdir -p $fs/usr 1.46 - cp -a $install/usr/lib $fs/usr 1.47 +genpkg_rules() { 1.48 + copy @std 1.49 + py=${PACKAGE%%-*} # python/python3 1.50 + case $PACKAGE in 1.51 + python-*) 1.52 + DEPENDS="$py $py-atomicwrites $py-attrs $py-funcsigs \ 1.53 + $py-more-itertools $py-pathlib2 $py-pluggy $py-py $py-six" 1.54 + ;; 1.55 + python3-*) 1.56 + DEPENDS="$py $py-atomicwrites $py-attrs $py-more-itertools \ 1.57 + $py-pluggy $py-py $py-six" 1.58 + ;; 1.59 + esac 1.60 }