From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 13 Apr 2023 12:58:50 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pmufB-002845-Oc for lore@lore.pengutronix.de; Thu, 13 Apr 2023 12:58:50 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pmufC-0001Xn-1W; Thu, 13 Apr 2023 12:58:50 +0200 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.221]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmuf4-0001Xe-RI for ptxdist@pengutronix.de; Thu, 13 Apr 2023 12:58:43 +0200 ARC-Seal: i=1; a=rsa-sha256; t=1681383522; cv=none; d=strato.com; s=strato-dkim-0002; b=lGMLR5PHjZMxCxltIspeF3oHuWyXRkxZJMkvzne/FXa9VOTuSybSe63KWR4VZXaUF8 ryJ0vbeytgD+BsGy1RGXYbFIu0Lv6GwtfbXI4d7TB9W1P92QqlLR0C9BtuNCCfJocYSn h5oVjnc8togsXEX3GpRJNeHTycmE1v1QFN/auwsfy8kte5wNVD+g5K3AqDHFtTmM7ztH 6cUdujTvzjxMWEoT5kU/4NybAdHu9oTPX4WBeTAPwpRzoDX9aFH7f8XV/0dlweBk9vnX i7w6PDitTAjg5lV11j21rwACZHiFNxvDf6HYPRSpUoah6p2QodyH44WeaF20DhfWCp2u 46IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1681383522; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=OiL5I53UrJnKeYiBmLn+9C64VnzC5w8JVX0CqBytu78=; b=UE2sLWOCwddCEFMLDEfqDWL5o6YIfvehEePlel2u3/vtke7lpQ94AakkZdmn5vb2yF rUU4z9cerln9OHqgNyS/pgGUqzuPO0DiPIYXqZbv6rDXF2SoGwge9jSu841ReaplJVHv fMMh5nMYAFIebiMqDiuCf1yp4jjfDLe7HP2QsM/oEfqyec7bn8hPni9Bcg0Sh/SwXarH F2NsZg267WF49mC2XMHpj43AuDTZJocXIInkgEL6oNvxPOY9hTpVDseXDX8luLgFFQ7m beVAmmTpY5ANTQ2qqPXjlmqs1LKeh85Ku/QYPAGD35Fe4vCd7ObI+Gb+Wr7eSbvOklwP 0nSA== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1681383522; s=strato-dkim-0002; d=4wiebe.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=OiL5I53UrJnKeYiBmLn+9C64VnzC5w8JVX0CqBytu78=; b=PAKb+aR1pjD7VWCnaHZ2dbZMmawjOr5KQL2UMhUdIvuJvLm/NK0OPAge2Sfjp9BM5J M9sj4xwj6D0Xyuw4J2C+Xhxysj+boozw++rgozRMTjuR1I7T/GZZdM/DKb6RPqWAIFoG 5Ttn1zPsr3VHN9nMxTy8kQLsR9Rwb++STy2DEecj8oaZ4LpgAHKKaei0WyeDVnoJR8Qc Jzn5VBgZ0y2fcn4Af3LZBA7xgD56w6QKxVDObVoUlWr+hO/YdeyoSPmJEYI078ERuRUL HAqZu0lyXO8YbzNkvC10e/hw6CVKRM9Xz8dpImiWBPj+/R+iTXD46RTCXyrVLNm33qg5 H4qA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1681383522; s=strato-dkim-0003; d=4wiebe.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=OiL5I53UrJnKeYiBmLn+9C64VnzC5w8JVX0CqBytu78=; b=qtksex/jFp+gjjTCsTQv6H44ZK1n6LHflo/AqcrPhdPG5smXyHDjzwNcjjQvIOLHwx OeeBawIR0ciCShHWMECQ== X-RZG-AUTH: ":Km0JfEyhft8wzIIhFLJpRLyPODuSc5X4exbBROmid4/wfXDMnRC7+FnMrvP0Z5i9Y6KNNDKR" Received: from home by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id h05573z3DAwgPGH (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 13 Apr 2023 12:58:42 +0200 (CEST) Received: from tuxedo.. (localhost.localdomain [127.0.0.1]) by home (Postfix) with ESMTP id 055FF1A04CD; Thu, 13 Apr 2023 12:58:42 +0200 (CEST) From: Artur Wiebe To: ptxdist@pengutronix.de Date: Thu, 13 Apr 2023 12:58:41 +0200 Message-Id: <20230413105841.13617-1-artur@4wiebe.de> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] host-python3-setuptools-rust: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Artur Wiebe Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Artur Wiebe --- patches/setuptools-rust-1.5.2/series | 1 + .../use-Literal-from-typing.patch | 53 +++++++++++++++++++ rules/host-python3-setuptools-rust.in | 7 +++ rules/host-python3-setuptools-rust.make | 33 ++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 patches/setuptools-rust-1.5.2/series create mode 100644 patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch create mode 100644 rules/host-python3-setuptools-rust.in create mode 100644 rules/host-python3-setuptools-rust.make diff --git a/patches/setuptools-rust-1.5.2/series b/patches/setuptools-rust-1.5.2/series new file mode 100644 index 000000000..b69a0d2bb --- /dev/null +++ b/patches/setuptools-rust-1.5.2/series @@ -0,0 +1 @@ +use-Literal-from-typing.patch diff --git a/patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch b/patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch new file mode 100644 index 000000000..186a0279e --- /dev/null +++ b/patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch @@ -0,0 +1,53 @@ +From b3ac96d620caae2834770f5a744db507846868c6 Mon Sep 17 00:00:00 2001 +From: Artur Wiebe +Date: Mon, 27 Mar 2023 14:49:44 +0200 +Subject: [PATCH] use Literal from typing + +--- + setuptools_rust/build.py | 2 +- + setuptools_rust/extension.py | 2 +- + setuptools_rust/setuptools_ext.py | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/setuptools_rust/build.py b/setuptools_rust/build.py +index 21c1975..ff94cb0 100644 +--- a/setuptools_rust/build.py ++++ b/setuptools_rust/build.py +@@ -23,7 +23,7 @@ import pkg_resources + from setuptools.command.build import build as CommandBuild # type: ignore[import] + from setuptools.command.build_ext import build_ext as CommandBuildExt + from setuptools.command.build_ext import get_abi3_suffix +-from typing_extensions import Literal ++from typing import Literal + + from ._utils import format_called_process_error + from .command import RustCommand +diff --git a/setuptools_rust/extension.py b/setuptools_rust/extension.py +index f7a09d1..537a8db 100644 +--- a/setuptools_rust/extension.py ++++ b/setuptools_rust/extension.py +@@ -9,7 +9,7 @@ from functools import lru_cache + from typing import Any, Dict, List, NewType, Optional, Sequence, Union, cast + + from semantic_version import SimpleSpec +-from typing_extensions import Literal ++from typing import Literal + + from ._utils import format_called_process_error + +diff --git a/setuptools_rust/setuptools_ext.py b/setuptools_rust/setuptools_ext.py +index 8ce281e..943b2e9 100644 +--- a/setuptools_rust/setuptools_ext.py ++++ b/setuptools_rust/setuptools_ext.py +@@ -11,7 +11,7 @@ from setuptools.command.install_lib import install_lib + from setuptools.command.install_scripts import install_scripts + from setuptools.command.sdist import sdist + from setuptools.dist import Distribution +-from typing_extensions import Literal ++from typing import Literal + + from .extension import RustBin, RustExtension + +-- +2.39.2 + diff --git a/rules/host-python3-setuptools-rust.in b/rules/host-python3-setuptools-rust.in new file mode 100644 index 000000000..37af602f3 --- /dev/null +++ b/rules/host-python3-setuptools-rust.in @@ -0,0 +1,7 @@ +## SECTION=hosttools_noprompt + +config HOST_PYTHON3_SETUPTOOLS_RUST + tristate + default y if ALLYES + select HOST_PYTHON3_SETUPTOOLS + select HOST_PYTHON3_SEMANTIC_VERSION diff --git a/rules/host-python3-setuptools-rust.make b/rules/host-python3-setuptools-rust.make new file mode 100644 index 000000000..6414ac062 --- /dev/null +++ b/rules/host-python3-setuptools-rust.make @@ -0,0 +1,33 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Artur Wiebe +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_SETUPTOOLS_RUST) += host-python3-setuptools-rust + +# +# Paths and names +# +HOST_PYTHON3_SETUPTOOLS_RUST_VERSION := 1.5.2 +HOST_PYTHON3_SETUPTOOLS_RUST_MD5 := fd3412ca77ffd6e06e2e83d0e9636084 +HOST_PYTHON3_SETUPTOOLS_RUST := setuptools-rust-$(HOST_PYTHON3_SETUPTOOLS_RUST_VERSION) +HOST_PYTHON3_SETUPTOOLS_RUST_SUFFIX := tar.gz +HOST_PYTHON3_SETUPTOOLS_RUST_URL := $(call ptx/mirror-pypi, setuptools-rust, $(HOST_PYTHON3_SETUPTOOLS_RUST).$(HOST_PYTHON3_SETUPTOOLS_RUST_SUFFIX)) +HOST_PYTHON3_SETUPTOOLS_RUST_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_SETUPTOOLS_RUST).$(HOST_PYTHON3_SETUPTOOLS_RUST_SUFFIX) +HOST_PYTHON3_SETUPTOOLS_RUST_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_SETUPTOOLS_RUST) +HOST_PYTHON3_SETUPTOOLS_RUST_LICENSE := MIT +HOST_PYTHON3_SETUPTOOLS_RUST_LICENSE_FILES := file://LICENSE;md5=011cd92e702dd9e6b1a26157b6fd53f5 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_PYTHON3_SETUPTOOLS_RUST_CONF_TOOL := python3 + +# vim: syntax=make -- 2.40.0