From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oJDOI7OgjWUskgAAkFu2QA (envelope-from ) for ; Thu, 28 Dec 2023 17:22:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yAJOHrOgjWVd+wAAqHPOHw (envelope-from ) for ; Thu, 28 Dec 2023 17:22:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=czYQk9HH; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703780531; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=T3BxGWAO701XHVcb/KjE5lV0yDhUTrltpvKuDedQjAI=; b=EALmcB+hpP/VI2lf6xDfTATmnXjkFQjQm3BfGZAZXV6A093+8Ia6TRhczZ3VT6DCjteSAz Sm2HdanoSJrEcJ4TKmJKFcVVY8L9hMBSEam88FBvHSYnxGwrxuHHjhhOt2gMQH5vywsgsq GEESX33NWzyuMhupPQzy2eZoA3fBxkgCbbACuLzBS9EbW6wnMlb3Q+s89EKjeaHf6eUnf6 oxpJgxC9jejI6vtW4l6OvEC4op39wNYZ282EApWyRjId5JxH8QpTFMMdjEm+c4qFzIM0oz RsPYFaLwmfTxU8yH+k5jTICVgds6savmfgoeTPeSR8OmH9k9ziCyw5WKMAzO7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703780531; a=rsa-sha256; cv=none; b=GioDMlU5Mqerx5OUap9IppACoMIEdpxeRdRCwS17kKOPRZ0qX7tvS43CGzMxvg4q6Bh/qR lwwJPgzMnfCRgWMXsFAAZB0C9JsIReBLrjeSYPjMlv16vK9NToWGbKwE07CqHw8cbLCGca x7npd/keXxC/p+JVPPOfSCTGTZq1D5mUwt1YSQJ8tZWQdmhhnUmt9+INr9VTEBgVVp7E0U wBpMcKLK6X/Nn3v98s0Zk0P8pSPhXQkxP8KqjxvRZXasfAsjMrLwB3JO3d89hRot//ch2y yrGKGY+LyMpnMYzGUa6tR0oOafZz1/yL04x3gZkjASLln5gQyHgNnf1PHzeLdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=czYQk9HH; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 593875085F for ; Thu, 28 Dec 2023 17:22:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIt7d-0006Jh-L1; Thu, 28 Dec 2023 11:20:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIt7b-0006JG-Vh for guix-devel@gnu.org; Thu, 28 Dec 2023 11:20:35 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIt7Z-000276-7p for guix-devel@gnu.org; Thu, 28 Dec 2023 11:20:35 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-50e759ece35so3764718e87.3 for ; Thu, 28 Dec 2023 08:20:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703780426; x=1704385226; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=T3BxGWAO701XHVcb/KjE5lV0yDhUTrltpvKuDedQjAI=; b=czYQk9HHocT957TfbfRwmeerZBZcdT56FrACuzCP5JDpQBTSxB5qAHeONHHmKWXCgO m62XQw/P6RZuE9D4bF5XNR68t9ghynWCEYHKUVx4CW9IEgd1E8SRgr3E4WAnw+Z5UWZl TONS4UfKvXCCXbHCKTFDJOC5dllNzdIlAQkGcY9QyBbZxaKQPE+yb3eWJ1w92BKpAgA/ LdaODXPQpYvFzp+PbKIrZ6aGGwueogp2+Mab9t6Gv+cvNdkmv6ozZzxGNZMgPuyW7V5u 7EeUfmRx1MTriyrpcB4RvE7E5ehzK+4hjC/WenqfiTyVZFoA9+6jDL6okEDk90P3WIBU 085w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703780426; x=1704385226; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T3BxGWAO701XHVcb/KjE5lV0yDhUTrltpvKuDedQjAI=; b=uLXtIsukbkP4VgGRE4wkOQpuGyR1CZ4hiCySG0Yj/2ej9u+2g4RDqKNrENGkWS/qO6 8Yg3yjiEtc2gSppehXLlaJTts8NqXhfC1eVMDq117q6CACD4kzwn1ez9KXkBRscBRO6u hRdNTFY89uOaqzCcsMzOrqLrLp5zAQRkZhf3qMbWnucvEaLadKFqgloKdF9gAJbl9Odc i5lzRCHOPfPRg6IrwU1yyuCSxKQDfpE5Aaae/dlnBhur5RwuLtk00Ok8KxFVdMRzpLSq xivjom9zX/LGXlIKqAGSx47oo2M8CuqRKBamVxBLqO6SNkEUX24exwpv0gVK1bgyP/V7 Is0Q== X-Gm-Message-State: AOJu0YyUUHYiOeQ75mYU1GYK3QYmoLbg9cBeMhsSeVpCHFCc4DDTjmAy 3sti+FNTp2UwD+c1UuGu1mGwMyQsJBF0fm51MGXPyDMdMCr80Q== X-Google-Smtp-Source: AGHT+IFFoqps5K03wDuX2kaURTRTZUpr40s4JMfckH7sJjUAVgNp5PRB+UxzxNTPvVr8bbBbynwdf1tBeC4HpE6w3tc= X-Received: by 2002:a05:6512:ba7:b0:50e:7be3:d325 with SMTP id b39-20020a0565120ba700b0050e7be3d325mr3016987lfv.86.1703780426169; Thu, 28 Dec 2023 08:20:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sharlatan Hellseher Date: Thu, 28 Dec 2023 19:20:10 +0000 Message-ID: Subject: Re: Question on python-pydantic update, rust and maturin build tool To: guix-devel Cc: Efraim Flashner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=sharlatanus@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.55 X-Spam-Score: -5.55 X-Migadu-Queue-Id: 593875085F X-Migadu-Scanner: mx11.migadu.com X-TUID: ly++MX0v8CDf Hi Efraim, I was about to update python-hvpy to v1.1.0 which requires pydantic>=3D2.0.0 https://github.com/Helioviewer-Project/python-api/blob/v1.1.0/setup.cfg#L37 Pydantic 2+ (the latest is v2.5.3 2023-12-22) depends on pydantic-core (the latest is v2.14.6 2023-12-21) which is built with Rust flavor. pydantic-core=3D=3D2.0.1 https://github.com/pydantic/pydantic/blob/v2.0/pyproject.toml#L64 Pydantic core is built with maturin 1, <2: https://github.com/pydantic/pydantic-core/blob/v2.0.1/pyproject.toml Currently I've prepared updates for anything which requires minimum overhea= d and does not break built of dependent packages. https://issues.guix.gnu.org/67915 Thanks, Oleg On Thu, 28 Dec 2023 at 11:56, Efraim Flashner wrote= : > > On Tue, Dec 26, 2023 at 12:27:38AM +0000, Sharlatan Hellseher wrote: > > Hi Guix! > > > > > > It might be addressed to rust/python teams. > > https://github.com/pydantic/pydantic-core > > > > During update of some packages from (gnu packages astronomy) I've faced > > with requirement for the fresh version of pydantic which depends on > > pydantic-core built with rust and maturin. > > > > This thread is just conversation opener for the potential strategy to d= eal > > with similar cases where python projects start using rust with rare but= new > > build tool. > > We have maturin packaged at 1.1.0 and I believe it is even used to build > a couple of packages. python-rpds-py, which just landed in the repo > today, is probably the best short example of how to use a combination of > cargo and any other build system to build a project that doesn't really > need any phases overridden, just added/replaced. > > Is there a specific version of pydantic that you need? I might be able > to put together something either using the crates in the master branch > or a newer version on the rust-team branch. > > -- > Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7= =A4 =D7=9D=D7=99=D7=A8=D7=A4=D7=90 > GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 > Confidentiality cannot be guaranteed on emails sent or received unencrypt= ed --=20 =E2=80=A6 =D0=BD=D0=B0=D1=88 =D1=80=D0=B0=D0=B7=D1=83=D0=BC - =D0=BF=D1=80= =D0=B5=D0=B2=D0=BE=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=B0=D1=8F =D0=BE=D0=B1= =D1=8A=D1=8F=D1=81=D0=BD=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F = =D0=BC=D0=B0=D1=88=D0=B8=D0=BD=D0=B0 =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D0=B0= =D1=8F =D1=81=D0=BF=D0=BE=D1=81=D0=BE=D0=B1=D0=BD=D0=B0 =D0=BD=D0=B0=D0=B9=D1=82=D0=B8 =D1=81=D0=BC=D1=8B=D1=81=D0=BB =D0=BF=D0=BE= =D1=87=D1=82=D0=B8 =D0=B2 =D1=87=D0=B5=D0=BC =D1=83=D0=B3=D0=BE=D0=B4=D0=BD= =D0=BE, =D0=B8=D1=81=D1=82=D0=BE=D0=BB=D0=BA=D0=BE=D0=B2=D0=B0=D1=82=D1=8C = =D0=BB=D1=8E=D0=B1=D0=BE=D0=B9 =D1=84=D0=B5=D0=BD=D0=BE=D0=BC=D0=B5=D0=BD, = =D0=BD=D0=BE =D1=81=D0=BE=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=BD=D0=BE =D0=BD=D0=B5 = =D0=B2 =D1=81=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B8 =D0=BF=D1=80= =D0=B8=D0=BD=D1=8F=D1=82=D1=8C =D0=BC=D1=8B=D1=81=D0=BB=D1=8C =D0=BE =D0=BD= =D0=B5=D0=BF=D1=80=D0=B5=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D1=83=D0=B5=D0=BC=D0= =BE=D1=81=D1=82=D0=B8.