wok-current annotate python-webtest/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 104a2a2e5484
children
rev   line source
taziden@3777 1 # SliTaz package receipt.
taziden@3777 2
taziden@3777 3 PACKAGE="python-webtest"
Hans-G?nter@25250 4 VERSION="2.0.35" # last version for Python 2
taziden@3777 5 CATEGORY="development"
Hans-G?nter@23582 6 TAGS="python"
Hans-G?nter@23582 7 SHORT_DESC="Helper to test WSGI applications."
taziden@3777 8 MAINTAINER="taziden@slitaz.org"
pascal@15376 9 LICENSE="MIT"
Hans-G?nter@25250 10 WEB_SITE="https://pypi.org/project/WebTest/"
Hans-G?nter@25250 11 REPOLOGY="python:webtest"
Hans-G?nter@23582 12
taziden@3777 13 SOURCE="WebTest"
taziden@3777 14 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23582 15 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
taziden@3777 16
pascal@15376 17 DEPENDS="python"
pascal@21582 18 BUILD_DEPENDS="python python-dev python-setuptools"
pascal@15376 19
pascal@24391 20 # What is the latest version available today?
pascal@24391 21 current_version()
pascal@24391 22 {
pascal@24391 23 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@24391 24 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@24391 25 }
pascal@24391 26
taziden@3777 27 # Rules to configure and make the package.
taziden@3777 28 compile_rules()
taziden@3777 29 {
pascal@15376 30 python setup.py install --root=$DESTDIR
taziden@3777 31 }
taziden@3777 32
taziden@3777 33 # Rules to gen a SliTaz package suitable for Tazpkg.
taziden@3777 34 genpkg_rules()
taziden@3777 35 {
Hans-G?nter@25250 36 cook_copy_folders lib
taziden@3777 37 }