Message ID | cover.1690360848.git.koszko@koszko.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 CE79727BBE2; Wed, 26 Jul 2023 10:07:23 +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 1C75527BBE9 for <patchwork@mira.cbaines.net>; Wed, 26 Jul 2023 10:07:22 +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 1qOaUA-0006bv-Nt; Wed, 26 Jul 2023 05:07:10 -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 1qOaU7-0006bY-SQ for guix-patches@gnu.org; Wed, 26 Jul 2023 05:07:08 -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 1qOaU3-0008Ct-QY for guix-patches@gnu.org; Wed, 26 Jul 2023 05:07:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qOaU2-0006nG-0j; Wed, 26 Jul 2023 05:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64869] [PATCH 0/2] Add pipx package manager for Python applications Resent-From: Wojtek Kosior <koszko@koszko.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: lars@6xq.net, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Wed, 26 Jul 2023 09:07:01 +0000 Resent-Message-ID: <handler.64869.B.169036241526097@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64869 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64869@debbugs.gnu.org Cc: Wojtek Kosior <koszko@koszko.org>, Lars-Dominik Braun <lars@6xq.net>, jgart <jgart@dismail.de> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun <lars@6xq.net>, jgart <jgart@dismail.de> Received: via spool by submit@debbugs.gnu.org id=B.169036241526097 (code B ref -1); Wed, 26 Jul 2023 09:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jul 2023 09:06:55 +0000 Received: from localhost ([127.0.0.1]:47534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qOaTu-0006mq-W7 for submit@debbugs.gnu.org; Wed, 26 Jul 2023 05:06:55 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <koszko@koszko.org>) id 1qOaTs-0006md-N6 for submit@debbugs.gnu.org; Wed, 26 Jul 2023 05:06:53 -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 <koszko@koszko.org>) id 1qOaTm-0006Vz-49 for guix-patches@gnu.org; Wed, 26 Jul 2023 05:06:46 -0400 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <koszko@koszko.org>) id 1qOaTj-0008Au-Rs for guix-patches@gnu.org; Wed, 26 Jul 2023 05:06:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc: To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1SCO9s6tesRQG6phxjmAvPTakzmNlk1CU91a3BhgDVo=; b=XavopWbYX6Qw9oD2UBVdKQ2XrI QLiWCXZIGiZ+zf6RiPeN9E4Ojo69lOi8zydhwcCwVCDDcp/aGcnZfcafrNyh+L6xB8ILp6nyOOpIA BdxpdxcqG3ritQT9FJSqdRztKiTkhVAQrSSnqK9A7RrSJRSy9cFkkt4o/iqY5wDoWaPPDmsSkgddR /LLsoBGZuGYqpDPXpbjA1DoE+55lCiYyjziXwmARFucT7K4q0AZ9XPBDe9AMWNM4J8AS5+CxHCYYn d86u+oN7QUG3TKaz9fpwytaBsOyny8AaMj9cRe6kcTqzvcPnT20RbkEF9+eXH1ZyjTVp7dGAP33y8 vgZxqKMHxuXx/MOJxGg5O5rsaimR8p0EWmnkPBy5TKGZKuB6If4Xb0DHV+UfNuYBoKgFXn9ZiwVUP DyNuaSpghxSyJ37RbE19AtPDsE0uw9v0uTM65ndiVCcUlR1++rnHxn0GmbejS/QtacAE8UTyz3XT9 +MpknTTLE8iLSBb17eireQInTyaq8GImgVjZe41feM8aMvMMgFZYnU9QIvovTBn1Zsm5ORgt51oCb 1EX2w1pj8bjN+hIWAcObXGMY/HSYxwIrwbM+kV1H6V+yWeqfuoWK68FY1SiH3VPJRpb33H0ToNUph f2uKMs43FIcGV7QT/dSkZ/AKSXTkhNp7qOiB4FPhg=; Received: from [77.252.47.76] (helo=localhost.localdomain) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <koszko@koszko.org>) id 1qOaTe-00022w-DB; Wed, 26 Jul 2023 11:06:38 +0200 Date: Wed, 26 Jul 2023 11:05:37 +0200 Message-ID: <cover.1690360848.git.koszko@koszko.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.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_PASS=-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: 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: Wojtek Kosior <koszko@koszko.org> X-ACL-Warn: , Wojtek Kosior via Guix-patches <guix-patches@gnu.org> From: Wojtek Kosior via 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 |
Add pipx package manager for Python applications
|
|
Message
Wojtek Kosior
July 26, 2023, 9:05 a.m. UTC
This series adds pipx, a tool similar to pip but oriented towards installation of Python applications rather than libraries, with automatic isolation of installed packages. Other distros are now changing pip to recommend using pipx instead[1]. Whether or not Guix will do the same, it seems like a good idea to at least have pipx available in the repos. I was unsure whether python-pipx should go into python-build or python-xyz. python-pip is declared in the former, python-virtualenv in the latter. In the end I chose python-xyz. Tests have been disabled because those of python-userpath rely on `docker pull` and those of python-pipx rely on application wheels from PyPI. It might be possible to enable at least some tests of python-pipx by using wheels from Guix. Rn I did not, however, have time to investigate. I tested the new package(s) with: #BEGIN_EXAMPLE ./pre-inst-env guix lint python-userpath python-pipx guix gc -D /gnu/store/*python-userpath-1.9.0 /gnu/store/*python-pipx-1.2.0 ./pre-inst-env guix build python-userpath --rounds=3 ./pre-inst-env guix build python-pipx --rounds=3 ./pre-inst-env guix shell -C coreutils python-pipx findutils which less bash --network --no-cwd pipx install pycowsay pipx ensurepath bash -l pycowsay moooo pipx uninstall pycowsay #END_EXAMPLE [1] https://pythonspeed.com/articles/externally-managed-environment-pep-668/ Wojtek Kosior (2): gnu: Add python-userpath. gnu: Add python-pipx. gnu/packages/python-xyz.scm | 77 +++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) base-commit: 76e041f9eef85bb039c5251d3350c62ee2066883