wok rev 25866

created recipes for python3-setuptools and python3-six
author Hans-Günter Theisgen
date Thu Sep 04 10:21:15 2025 +0100 (2 weeks ago)
parents e2c64941b37a
children 9075a253da61
files python3-setuptools/receipt python3-six/description.txt python3-six/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python3-setuptools/receipt	Thu Sep 04 10:21:15 2025 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="python3-setuptools"
     1.7 +VERSION="46.1.3"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Easily download, build, install, upgrade, and uninstall Python packages."
    1.10 +MAINTAINER="HGT@slitaz.org"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://pypi.org/project/setuptools/"
    1.13 +REPOLOGY="python:setuptools"
    1.14 +
    1.15 +SOURCE="setuptools"
    1.16 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.17 +WGET_URL="https://github.com/pypa/$SOURCE/archive/v$VERSION.tar.gz"
    1.18 +
    1.19 +DEPENDS="python3"
    1.20 +BUILD_DEPENDS="python3 python3-dev"
    1.21 +
    1.22 +current_version()
    1.23 +{
    1.24 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    1.25 +	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
    1.26 +}
    1.27 +
    1.28 +# Rules to configure and make the package.
    1.29 +compile_rules()
    1.30 +{
    1.31 +	python3 bootstrap.py &&
    1.32 +	python3 setup.py build &&
    1.33 +	python3 setup.py install --root=$DESTDIR
    1.34 +}
    1.35 +
    1.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 +genpkg_rules()
    1.38 +{
    1.39 +	cook_copy_folders	usr
    1.40 +}
    1.41 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/python3-six/description.txt	Thu Sep 04 10:21:15 2025 +0100
     2.3 @@ -0,0 +1,9 @@
     2.4 +Six is a Python 2 and 3 compatibility library.
     2.5 +It provides utility functions for smoothing over the differences between
     2.6 +the Python versions with the goal of writing Python code that is compatible
     2.7 +on both Python versions.
     2.8 +See the documentation for more information on what is provided.
     2.9 +
    2.10 +Six supports Python 2.7 and 3.3+. It is contained in only one Python file,
    2.11 +so it can be easily copied into your project.
    2.12 +(The copyright and license notice must be retained.)
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/python3-six/receipt	Thu Sep 04 10:21:15 2025 +0100
     3.3 @@ -0,0 +1,39 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="python3-six"
     3.7 +VERSION="1.17.0"
     3.8 +CATEGORY="development"
     3.9 +SHORT_DESC="Six is a Python 2 and 3 compatibility library."
    3.10 +MAINTAINER="HGT@slitaz.org"
    3.11 +LICENSE="MIT"
    3.12 +WEB_SITE="https://pypi.org/project/six/"
    3.13 +REPOLOGY="python:six"
    3.14 +
    3.15 +SOURCE="six"
    3.16 +TARBALL="$SOURCE-$VERSION.tar.gz"
    3.17 +WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
    3.18 +
    3.19 +DEPENDS="python3"
    3.20 +BUILD_DEPENDS="python3-dev python3-setuptools"
    3.21 +
    3.22 +HOST_ARCH="i486 arm x86_64"
    3.23 +
    3.24 +# What is the latest version available today?
    3.25 +current_version()
    3.26 +{
    3.27 +	wget -O - $WEB_SITE 2>/dev/null | \
    3.28 +	sed '/release_/!d;/project/!d;s|.*six/||;s|/.*||;q'
    3.29 +}
    3.30 +
    3.31 +# Rules to configure and make the package.
    3.32 +compile_rules()
    3.33 +{
    3.34 +	python3 setup.py install --root=$DESTDIR
    3.35 +}
    3.36 +
    3.37 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.38 +genpkg_rules()
    3.39 +{
    3.40 +	cook_copy_folders	lib
    3.41 +}
    3.42 +