wok annotate python-pytest/receipt @ rev 25374
updated tslib and tslib-dev (1.21 -> 1.22)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 29 15:53:36 2022 +0100 (2022-07-29) |
parents | 104a2a2e5484 |
children |
rev | line source |
---|---|
pascal@14376 | 1 # SliTaz package receipt. |
pascal@14376 | 2 |
pascal@14376 | 3 PACKAGE="python-pytest" |
Hans-G?nter@25230 | 4 VERSION="4.6.11" # last version for Python 2 |
pascal@14376 | 5 CATEGORY="development" |
Hans-G?nter@23547 | 6 SHORT_DESC="A simple powerful testing with Python." |
pascal@14376 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15378 | 8 LICENSE="MIT" |
Hans-G?nter@25230 | 9 WEB_SITE="https://pypi.org/project/pytest/" |
Hans-G?nter@25230 | 10 REPOLOGY="python:pytest" |
Hans-G?nter@23547 | 11 |
pascal@14376 | 12 SOURCE="pytest" |
Hans-G?nter@23549 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23547 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@14376 | 15 |
pascal@14376 | 16 DEPENDS="python" |
pascal@21582 | 17 BUILD_DEPENDS="python-dev python-setuptools" |
pascal@14376 | 18 |
pascal@24391 | 19 # What is the latest version available today? |
pascal@24391 | 20 current_version() |
pascal@24391 | 21 { |
pascal@24391 | 22 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 23 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 24 } |
pascal@24391 | 25 |
pascal@14376 | 26 # Rules to configure and make the package. |
pascal@14376 | 27 compile_rules() |
pascal@14376 | 28 { |
Hans-G?nter@23547 | 29 sed -i 's|setuptools-scm|setuptools|' setup.py |
Hans-G?nter@23547 | 30 |
Hans-G?nter@23547 | 31 python setup.py build && |
pascal@14376 | 32 python setup.py install --root=$DESTDIR |
pascal@14376 | 33 } |
pascal@14376 | 34 |
pascal@14376 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14376 | 36 genpkg_rules() |
pascal@14376 | 37 { |
Hans-G?nter@25230 | 38 cook_copy_folders lib |
pascal@14376 | 39 } |