Message ID | cover.1719992277.git.mcsinyx@disroot.org |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 16F3227BBE2; Wed, 3 Jul 2024 08:56:49 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7307227BBE9 for <patchwork@mira.cbaines.net>; Wed, 3 Jul 2024 08:56:47 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1sOuqq-0000BQ-5B; Wed, 03 Jul 2024 03:56:28 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1sOuqg-0000AI-IB for guix-patches@gnu.org; Wed, 03 Jul 2024 03:56:19 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1sOuqZ-0007CY-EY; Wed, 03 Jul 2024 03:56:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1sOuqQ-0002pQ-I4; Wed, 03 Jul 2024 03:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71914] [PATCH 00/10] gnu: Add python-nh3. Resent-From: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong <mcsinyx@disroot.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Wed, 03 Jul 2024 07:56:02 +0000 Resent-Message-ID: <handler.71914.B.171999332010775@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71914 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71914@debbugs.gnu.org Cc: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong <mcsinyx@disroot.org>, Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>, Munyoki Kilyungi <me@bonfacemunyoki.com>, Sharlatan Hellseher <sharlatanus@gmail.com>, Tanguy Le Carrour <tanguy@bioneland.org>, jgart <jgart@dismail.de> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>, Munyoki Kilyungi <me@bonfacemunyoki.com>, Sharlatan Hellseher <sharlatanus@gmail.com>, Tanguy Le Carrour <tanguy@bioneland.org>, jgart <jgart@dismail.de> Received: via spool by submit@debbugs.gnu.org id=B.171999332010775 (code B ref -1); Wed, 03 Jul 2024 07:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jul 2024 07:55:20 +0000 Received: from localhost ([127.0.0.1]:38549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1sOupj-0002nj-Pq for submit@debbugs.gnu.org; Wed, 03 Jul 2024 03:55:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:37420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mcsinyx@disroot.org>) id 1sOuph-0002nW-Tn for submit@debbugs.gnu.org; Wed, 03 Jul 2024 03:55:18 -0400 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 <mcsinyx@disroot.org>) id 1sOupf-0008Cd-JG for guix-patches@gnu.org; Wed, 03 Jul 2024 03:55:15 -0400 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <mcsinyx@disroot.org>) id 1sOupd-0006jw-4b for guix-patches@gnu.org; Wed, 03 Jul 2024 03:55:15 -0400 X-Virus-Scanned: SPAM Filter at disroot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1719993310; bh=/60YnC7ycWGBvxrV1wCjDgEv7r8GQnssEcWZJZIpeL4=; h=From:To:Cc:Subject:Date; b=GrRiuMq55WsmF6vrHr9BQ3vu40oaT7gnbdWngFrJOj7XBglP2l/ZtiIeS6mO+C2i9 zRm7+WYea7nVvs8PGnyOnrkoQem7xW7dqSwSib9du3Tz1dVftsjoFd3alKLrFS0IO/ 8ELBBgh9/8GU2h58IP+NNepAIcyS/yLQxTaEDbQRLipiNOZQLLTKiHSVxeax3LtUZx 8UfDa8INwp9PcrtnCGhNyjFv3uzrFknamb10ZTfUeOoJjYy36eB8Z5x98rvamCa4FK N/1bn4EhuMMfwheP6cyvBt1JQMbb3865wtmhxTmz1L5LsZZqf84LW9X/IZuyK6wFjz mxcbXznLbYyMw== Date: Wed, 3 Jul 2024 16:54:58 +0900 Message-ID: <cover.1719992277.git.mcsinyx@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=mcsinyx@disroot.org; helo=layka.disroot.org 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong <mcsinyx@disroot.org> X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= <guix-patches@gnu.org> From: guix-patches--- via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
gnu: Add python-nh3.
|
|
Message
tusharhero--- via Guix-patches via
July 3, 2024, 7:54 a.m. UTC
nh3 is a HTML sanitization library for Python, generally a replacement for the now-deprecated bleach. I use nh3 for a tool rendering mail threads into HTML, but that's to be packaged later since I also want to upgrade its other dependency, mistune. Dependency tree among patches: * Add Python nh3 * Add Rust ammonia * Add Rust html5ever 0.27 * Add Rust markup5ever 0.12 * Update Rust typed-arena 2 to 2.0.2 * Add Rust pyo3* 0.21 (also update pyo3* 0.20 to 0.20.3) Nguyễn Gia Phong (10): gnu: rust-typed-arena-2: Update to 2.0.2. gnu: Add rust-markup5ever-0.12. gnu: Add rust-html5ever-0.27. gnu: Add rust-ammonia-4. gnu: Add rust-pyo3-build-config-0.21. gnu: Add rust-pyo3-ffi-0.21. gnu: Add rust-pyo3-macros-backend-0.21. gnu: Add rust-pyo3-macros-0.21. gnu: Add rust-pyo3-0.21. gnu: Add python-nh3. gnu/packages/crates-io.scm | 240 ++++++++++++++++++++++++++++++------ gnu/packages/crates-web.scm | 29 +++++ gnu/packages/python-web.scm | 45 +++++++ 3 files changed, 277 insertions(+), 37 deletions(-) base-commit: 4b3a553ca5ba5ac190739309eb5f7aa8170cf2a8
Comments
On Wed, Jul 03, 2024 at 04:54:58PM +0900, guix-patches--- via wrote: > nh3 is a HTML sanitization library for Python, > generally a replacement for the now-deprecated bleach. > > I use nh3 for a tool rendering mail threads into HTML, > but that's to be packaged later since I also want to upgrade > its other dependency, mistune. > > Dependency tree among patches: > * Add Python nh3 > * Add Rust ammonia > * Add Rust html5ever 0.27 > * Add Rust markup5ever 0.12 > * Update Rust typed-arena 2 to 2.0.2 > * Add Rust pyo3* 0.21 (also update pyo3* 0.20 to 0.20.3) > > Nguyễn Gia Phong (10): > gnu: rust-typed-arena-2: Update to 2.0.2. > gnu: Add rust-markup5ever-0.12. > gnu: Add rust-html5ever-0.27. > gnu: Add rust-ammonia-4. > gnu: Add rust-pyo3-build-config-0.21. > gnu: Add rust-pyo3-ffi-0.21. > gnu: Add rust-pyo3-macros-backend-0.21. > gnu: Add rust-pyo3-macros-0.21. > gnu: Add rust-pyo3-0.21. > gnu: Add python-nh3. > > gnu/packages/crates-io.scm | 240 ++++++++++++++++++++++++++++++------ > gnu/packages/crates-web.scm | 29 +++++ > gnu/packages/python-web.scm | 45 +++++++ > 3 files changed, 277 insertions(+), 37 deletions(-) > > > base-commit: 4b3a553ca5ba5ac190739309eb5f7aa8170cf2a8 Since it wasn't only new packages I applied this to the rust-team branch, which should be merged soon-ish. There were a couple of missing bits, which I found while building all the packages affected: rust-pyo3-macros-0.21, rust-pyo3-macros-0.20: Needs python-minimal as a native-input rust-pyo3-macros-backend-0.21, rust-pyo3-macros-backend-0.20: Needs rust-pyo3-build-config-0.2X as a cargo-input and python-minimal as a native-input rust-pyo3-0.21: [cargo-inputs]: Added rust-chrono-tz-0.6, rust-portable-atomic-1. [cargo-development-inputs]: Added rust-chrono-tz-0.6, rust-futures-0.3. Removed rust-widestring-0.5. I used the following command to build all the packages: ./pre-inst-env guix build --no-grafts --fallback --max-jobs=3 rust-typed-arena@2 rust-markup5ever@0.12 rust-html5ever@0.27 rust-ammonia@4 rust-pyo3{,-{build-config,ffi,macros-backend,macros}}@0.{20,21} python-nh3
On 2024-07-03 at 12:07+03:00, Efraim Flashner wrote: > On Wed, Jul 03, 2024 at 04:54:58PM +0900, Nguyễn Gia Phong wrote: > > Nguyễn Gia Phong (10): > > gnu: rust-typed-arena-2: Update to 2.0.2. > > gnu: Add rust-markup5ever-0.12. > > gnu: Add rust-html5ever-0.27. > > gnu: Add rust-ammonia-4. > > gnu: Add rust-pyo3-build-config-0.21. > > gnu: Add rust-pyo3-ffi-0.21. > > gnu: Add rust-pyo3-macros-backend-0.21. > > gnu: Add rust-pyo3-macros-0.21. > > gnu: Add rust-pyo3-0.21. > > gnu: Add python-nh3. > > Since it wasn't only new packages I applied this to the rust-team > branch, which should be merged soon-ish. > > There were a couple of missing bits, which I found while building all > the packages affected: > rust-pyo3-macros-0.21, rust-pyo3-macros-0.20: > Needs python-minimal as a native-input > rust-pyo3-macros-backend-0.21, rust-pyo3-macros-backend-0.20: > Needs rust-pyo3-build-config-0.2X as a cargo-input and python-minimal as > a native-input > rust-pyo3-0.21: > [cargo-inputs]: Added rust-chrono-tz-0.6, rust-portable-atomic-1. > [cargo-development-inputs]: Added rust-chrono-tz-0.6, rust-futures-0.3. > Removed rust-widestring-0.5. > > I used the following command to build all the packages: > ./pre-inst-env guix build --no-grafts --fallback --max-jobs=3 rust-typed-arena@2 rust-markup5ever@0.12 rust-html5ever@0.27 rust-ammonia@4 rust-pyo3{,-{build-config,ffi,macros-backend,macros}}@0.{20,21} python-nh3 Thank you very much! So because Rust is statically compiled, each package needs to be (built and) tested individually?
On Wed, Jul 03, 2024 at 06:20:03PM +0900, Nguyễn Gia Phong wrote: > On 2024-07-03 at 12:07+03:00, Efraim Flashner wrote: > > On Wed, Jul 03, 2024 at 04:54:58PM +0900, Nguyễn Gia Phong wrote: > > > Nguyễn Gia Phong (10): > > > gnu: rust-typed-arena-2: Update to 2.0.2. > > > gnu: Add rust-markup5ever-0.12. > > > gnu: Add rust-html5ever-0.27. > > > gnu: Add rust-ammonia-4. > > > gnu: Add rust-pyo3-build-config-0.21. > > > gnu: Add rust-pyo3-ffi-0.21. > > > gnu: Add rust-pyo3-macros-backend-0.21. > > > gnu: Add rust-pyo3-macros-0.21. > > > gnu: Add rust-pyo3-0.21. > > > gnu: Add python-nh3. > > > > Since it wasn't only new packages I applied this to the rust-team > > branch, which should be merged soon-ish. > > > > There were a couple of missing bits, which I found while building all > > the packages affected: > > rust-pyo3-macros-0.21, rust-pyo3-macros-0.20: > > Needs python-minimal as a native-input > > rust-pyo3-macros-backend-0.21, rust-pyo3-macros-backend-0.20: > > Needs rust-pyo3-build-config-0.2X as a cargo-input and python-minimal as > > a native-input > > rust-pyo3-0.21: > > [cargo-inputs]: Added rust-chrono-tz-0.6, rust-portable-atomic-1. > > [cargo-development-inputs]: Added rust-chrono-tz-0.6, rust-futures-0.3. > > Removed rust-widestring-0.5. > > > > I used the following command to build all the packages: > > ./pre-inst-env guix build --no-grafts --fallback --max-jobs=3 rust-typed-arena@2 rust-markup5ever@0.12 rust-html5ever@0.27 rust-ammonia@4 rust-pyo3{,-{build-config,ffi,macros-backend,macros}}@0.{20,21} python-nh3 > > Thank you very much! So because Rust is statically compiled, > each package needs to be (built and) tested individually? Yeah, its an unfortunate side effect of using the sources of the packages instead of an output. There has been talk in the upstream rust community about providing a stable-ish interface so that we can reuse build artifacts from one build to another.
On 2024-07-03 at 12:24+03:00, Efraim Flashner wrote: > On Wed, Jul 03, 2024 at 06:20:03PM +0900, Nguyễn Gia Phong wrote: > > On 2024-07-03 at 12:07+03:00, Efraim Flashner wrote: > > > There were a couple of missing bits, which I found > > > while building all the packages affected: > > > rust-pyo3-macros-0.21, rust-pyo3-macros-0.20: > > > Needs python-minimal as a native-input [...] > > > > > > I used the following command to build all the packages: > > > ./pre-inst-env guix build --no-grafts --fallback --max-jobs=3 rust-typed-arena@2 rust-markup5ever@0.12 rust-html5ever@0.27 rust-ammonia@4 rust-pyo3{,-{build-config,ffi,macros-backend,macros}}@0.{20,21} python-nh3 > > > > So because Rust is statically compiled, > > each package needs to be (built and) tested individually? > > Yeah, its an unfortunate side effect of using the sources of the > packages instead of an output. There has been talk in the upstream > rust community about providing a stable-ish interface > so that we can reuse build artifacts from one build to another. Thank you, that's good to know. On 2024-07-03 at 12:27+03:00, Efraim Flashner wrote: > On Wed, Jul 03, 2024 at 06:12:51PM +0900, Nguyễn Gia Phong wrote: > > what's the general etiquette for sending revisions > > of a subset of the patch series? > > I don't think we have a consensus. On one hand re-sending unchanged > patches is "wasteful", on the other hand it makes it easier to work > on a set of patches (or a revision of patches) in one go. > > I think I normally end up with a single updated patch if there's > a change to only one patch, but otherwise I normally send out > a whole new set and then in 0000-v2 I mention what changes > there are compared to the previous version. Thanks, guess that'd be best for compatibility with everyone's tooling.