From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 16 Apr 2023 11:38:21 +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 1pnypw-005Kie-ET for lore@lore.pengutronix.de; Sun, 16 Apr 2023 11:38:21 +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 1pnypw-0004M0-MI; Sun, 16 Apr 2023 11:38:20 +0200 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.50]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pnyoP-0003Pt-C7 for ptxdist@pengutronix.de; Sun, 16 Apr 2023 11:36:47 +0200 ARC-Seal: i=1; a=rsa-sha256; t=1681637804; cv=none; d=strato.com; s=strato-dkim-0002; b=UFQh8uyIWiyu9THAutY0R3FFxaCr8v7Qc5HhqPOJ5YUJDJhgsTAEjMQ9WrP+Ye/00R N/ypCahtquSvKhBttGlCZqcgzv1roB14MFGFi0xuvJV+QNnnEtcferKPGSf4Azd9nJM6 /Lhd3jJm5y8sn7UQ8TBJSJjI3Hp04FtoL/SqUitIsHvp1LRIhgDsslxftWTw04smk0Qz 3VPTY5nM1sHTA+cQgfYCL1HFoPRhoSjKqlM1OlJLJzgJ2TageTiJV8hN/aiul7W8WERa cCi4JsgbLBt4gQz8KzsW8uAlZcNzeEj6dgZv1McxwHgat3bcP9PCZFMtH1WVHS1b3AuR 3loQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1681637804; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=OiL5I53UrJnKeYiBmLn+9C64VnzC5w8JVX0CqBytu78=; b=DOUzsr2IOqOnAKeUItf61BJRTyC5vMKKmbeBO+pbJnlPeLOurJzvv4t+an8Xp0F/QD d9KJ6ihUUrGqz6kSDwu2VKbmlNMdkj0fMq2+MRd+/2XmHDvAEHPMf5Xh+Cj6NZSGA43y Anz9iTiyGRwjvrhtBC35kEdeFlHVychPui4E6bcnSqKjY/Yur/BQG8CHoBe9DxUD4SnF 7G/wcYopcp6JznsVSqrt7DIiL/VLP/RgKmVktsuXIA2AfWFEE5G8IM/CBrTFVxnRKrPq Nvcaru7Jx/S6mq83dS8GG0WeRs1JI1sCkiOkvP103u1qZKrIK2ZmISJDpiAycPG+83kE Y4GQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1681637804; s=strato-dkim-0002; d=4wiebe.de; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=OiL5I53UrJnKeYiBmLn+9C64VnzC5w8JVX0CqBytu78=; b=JPx6pypscTSDmdooivx3Xu7jIeiiH4sfH8tUwvUOr+9GbNNkfC6SEMbl311E4aLiew Pw7t5YVzno9A5PFgbMqRzolbzVJ/YB3Xf4zq0npSotgM6zOYL7h5ZeXtwu/BRt05YkVH cjMaJc1LyDVAKZ9fyh4XK6hptZowVoNTDZ7RrxY1kIPjpTlY2wb5p+syvHb5IaIGB94z DOxUIXUPEulXcdYcus1yExsfYFgSm3y2fGuEL+ixqz7zx9CVVxQ/QRjvDjhav34hijBs rIa9RTQMIw9QasCBCUMG8NMscYnUQLkVRmr/HujD1MKByAe7KxRnRkYhg47ZZGM7II+v qOtQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1681637804; s=strato-dkim-0003; d=4wiebe.de; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Cc:Date:From: Subject:Sender; bh=OiL5I53UrJnKeYiBmLn+9C64VnzC5w8JVX0CqBytu78=; b=ZflgjHVopIrSannj3ZVocII8N/6nxps2mTzaM17+92eUQe+Q5PnrJ6iiDESGGl7tqr 3w4zASPkAhegiOcWyeBg== X-RZG-AUTH: ":Km0JfEyhft8wzIIhFLJpRLyPODuSc5X4exbBROmid4/wfXDMnRC7+FnMrvP0Z5i9Y6KNNDKR" Received: from home by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id h05573z3G9aiViO (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Sun, 16 Apr 2023 11:36:44 +0200 (CEST) Received: from tuxedo.. (localhost.localdomain [127.0.0.1]) by home (Postfix) with ESMTP id ED1411A0544 for ; Sun, 16 Apr 2023 11:36:43 +0200 (CEST) From: Artur Wiebe To: ptxdist@pengutronix.de Date: Sun, 16 Apr 2023 11:36:41 +0200 Message-Id: <20230416093643.3983478-9-artur@4wiebe.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230416093643.3983478-1-artur@4wiebe.de> References: <20230416093643.3983478-1-artur@4wiebe.de> 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.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 09/11] 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 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