From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id V6GdEyV0mWXuMwAAkFu2QA (envelope-from ) for ; Sat, 06 Jan 2024 16:39:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GNMmDCV0mWXwwgAAe85BDQ (envelope-from ) for ; Sat, 06 Jan 2024 16:39:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=nSE1Q7NE; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704555557; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=mgGO5lTJD9QUbKKsb5PdQEp45fELupGZk3BX4Qn4YEM=; b=Q0pHbu5JhpL7bTSTTUQmzJ3Ajgg13wti2mykETiZ58VLeCqWcCn6xsjGV16kawc/mlGzOR YbYvqMftDLT/XIGwfdiWpbUXfRDC1BC2vOhhZG8HRNx30IoMAs88dPQG7VwapgPN0bJXsP nmQoAt/uTyLpWSUxn4L/9Cmnu6w4by5Gg3FA06UKbfRz7J2izWFa4ivebBK7QQCnKefvp8 0TN6ApRoV0FlBsHwMXHJUa1oW+fy19nfmC27oFmp9NZb38cLCbIlvmp1bpnqldxnfEZ4im w6X73GKR/gFPoEZrEZ87EaN/lDB9t2rQAzmdyQ6JTNWs1q73/CvYI3WD/lyswA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=nSE1Q7NE; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704555557; a=rsa-sha256; cv=none; b=KeaLOTVKlHuCyGyYZlN6WamjmPa9FsmgxY3O/J5e4miODF7ANPqZz2J/tRcDFXlpS+L+Xh kt6gumrRbie/Gi4wQZqBUJ0OHUw4l7kDbWaTcDKrmroESh7KqlzuozbPl44upagcI2SDnV lH9sMECHKPCa5Zs2GtMVL8Hps0EaKp1TUC/hAmek7+Q+WBMFzHA3W6T3GUaN4S0E+0QMej w6ZLHUujKfuzeYIrcFaobYkZG0QNYC8bF4imbvl0IZl9DuH2qz5GlcYU/asqf0SiH7+mbh FfaxM5aQz0prCrR1qPhjEybC5QVBw8johemYcYQ+rUcEmJCLp9An9r8TeksJ+g== 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 E98CA46565 for ; Sat, 6 Jan 2024 16:39:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rM8lH-0001la-Ns; Sat, 06 Jan 2024 10:38:59 -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 1rM8lF-0001lQ-JR for guix-patches@gnu.org; Sat, 06 Jan 2024 10:38:57 -0500 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 ) id 1rM8lF-0008VP-BD for guix-patches@gnu.org; Sat, 06 Jan 2024 10:38:57 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rM8lK-0001bp-3A for guix-patches@gnu.org; Sat, 06 Jan 2024 10:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68147] Naming collision Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Jan 2024 15:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68147 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68147@debbugs.gnu.org Received: via spool by 68147-submit@debbugs.gnu.org id=B68147.17045555346172 (code B ref 68147); Sat, 06 Jan 2024 15:39:02 +0000 Received: (at 68147) by debbugs.gnu.org; 6 Jan 2024 15:38:54 +0000 Received: from localhost ([127.0.0.1]:60159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM8lC-0001bU-4p for submit@debbugs.gnu.org; Sat, 06 Jan 2024 10:38:54 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:40718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rM8l8-0001bF-Lh for 68147@debbugs.gnu.org; Sat, 06 Jan 2024 10:38:51 -0500 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4T6kxn3CXdz9sb6 for <68147@debbugs.gnu.org>; Sat, 6 Jan 2024 16:38:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1704555517; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mgGO5lTJD9QUbKKsb5PdQEp45fELupGZk3BX4Qn4YEM=; b=nSE1Q7NE2ajfgFOxkri3oudaSsnlnahntVKVuNcHKwxmd/8q1splfNvI3YUE1cTndh9Cp7 yoV1WJPH5xegkdrXpmrKzQzXLBP9k/ybpKlNCyyVBbzFhT9MajVRmKMVgaJYHQdEM5MnKF r3anvYrL4z5UH4Z2Pti2AZf97ofktATOxbFwQY0TyiUGTgOFO7WLgpT1q26dAiTrp0mqBQ gRmYzFOjVelAJTXBF3sFxbVXZMbyR0LIL7kTisquz1YVjBEht9ST5dTYxdGD+Dic7KXFJI qLHpT5I+OMsz301cfTP5cZWAIq/gNrpSFzGWBwah5JtkAIEIbRMaNgvRxLurng== From: Troy Figiel In-Reply-To: (Tomas Volf's message of "Sat, 30 Dec 2023 18:21:55 +0100") References: <87v88fu4jy.fsf@troyfigiel.com> Date: Sat, 06 Jan 2024 16:38:33 +0100 Message-ID: <87cyuexyiu.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.65 X-Spam-Score: -2.65 X-Migadu-Queue-Id: E98CA46565 X-TUID: jsGLVfIWYzVb Hi Tomas, I like your approach, I was thinking in the same direction. Having a slightly more convoluted name would be preferable over having to change the API later on. I will submit a new patch with a comment regarding its name. Snappy seems to be a desired namespace :) Best wishes, Troy Tomas Volf <~@wolfsden.cz> writes: > On 2023-12-30 15:51:29 +0100, Troy Figiel wrote: >> Interestingly, both `python-snappy' and `snappy' are available on PyPI >> (https://pypi.org/project/snappy/). These are two completely distinct >> packages and in this issue I only package `python-snappy'. >> >> If I understand the Python naming rules, if someone were to package >> `snappy' in the future, both would be associated to the `python-snappy' >> variable in Guix. What would be the best approach to handle this >> potential naming collision? > > As far as I can tell, names of PyPI packages in guix are basically formed by > adding `python-' prefix to the PyPI name. So here the correct name would be > `python-python-snappy'. I agree that it looks... weird, however it does prevent > the collision. > > It will prevent any user confusion, while adhering to a pattern that is already > elsewhere, so I think it is worth it. > > Have a nice day, > Tomas Volf > > -- > There are only two hard things in Computer Science: > cache invalidation, naming things and off-by-one errors. > <#secure method=pgpmime mode=sign>