From nobody Mon Nov 20 08:30:03 2023 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SYgfz5Mdsz527Zc for ; Mon, 20 Nov 2023 08:30:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SYgfz2fnLz4qVc for ; Mon, 20 Nov 2023 08:30:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700469003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vw5wzkVVMOb+pcKyN3YjBJ6AzWxMsJD0FvzsHn7toJQ=; b=PtiUUgBcppzRlzfE4gDZlpVYNZR2BJzhzNw/POTPE5IoByYsUJ2h6jdxn5eCtZCTwonuMq qY9mowWUEbfhXums9roNiBis3xhSihpFs3J4tYf87MKvidd4ZU9aunfPFLHESJdjdhC0r5 1cu5RG6l04OiHMFUCVm5nMKtNfTVLG9yzPCJ5L6lN/yLQW1wbVJJlPDMAwt0eP95wEfaRj Mr+beyBdFG/60YrYKU9m1wKbOjjEq1L/+NQ2fwXCtuSyyCkWzaqbu8Ch9RmvbtP/CUPZC8 kofvr3wMrHgpXWTYeCVQMJIu13prayqu7BAATJD9kIKdLkAnFGS8JOGOevpRAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700469003; a=rsa-sha256; cv=none; b=RGJr8fmH9PV4kMiQ14IeFV4oLal8lAxlgW5OJorv8u063j0g9yoA2xvI5CumBnLcfMYhQg kToYSD223H4RgiGz34qElTjinzEnP3W66YU+HEtSXCYbM2zTCaeLWtAnXQZ8oPxHCTcpU1 +P2eyTXetYSH5n9fyor5vxNPZf3PmrkYGxEZVNTdN4+9oBDZV9oeNGVbHszfWQJqivL0uA /kMU2E3s9cIBoQ2sBZWGeJO2gHu9Vb5iQLOKFubDzXsnc0EvxVrjDKEZbn2GBtNuXz5LYL MIkNFe6ovhAEAai6Zy+w3DS7o+Ax8mKcI8X9gfLtfX+A8RyOckP+hV9dl8ipUQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SYgfz1lPczkc4 for ; Mon, 20 Nov 2023 08:30:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3AK8U3dV074154 for ; Mon, 20 Nov 2023 08:30:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AK8U3Gl074153 for python@FreeBSD.org; Mon, 20 Nov 2023 08:30:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 275167] security/py-service-identity: merge duplicate of security/py-service_identity Date: Mon, 20 Nov 2023 08:30:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275167 --- Comment #8 from John Hein --- (In reply to Palle Girgensohn from comment #6) The package indeed installs to site-packages/service_identity. Installing = to site-packages/service-identity breaks when you do 'import service-identity' since identifier names cannot include hyphens. There are ways to import modules if the directory name has hyphens, but it's better if you don't do = so. PyPI package names are another story. You can use hyphens there although so= me style guides recommend just using alphabetic lowercase (see 'Package and Mo= dule Names' PEP 8). There are lots of package names that use uppercase and hyphe= ns at pypi.org that do not follow that guideline, however - see https://packaging.python.org/en/latest/specifications/name-normalization/ (which allows underscores and hyphens and uppercase). Maybe I am misreading PEP 8 (specifically what is considered a "package name"). But note that af= ter the "name normalization" described in the 'Python Packaging User Guide', na= mes with hyphens and underscores are considered equal in certain contexts (e.g., when provided to importlib.metadata functions). --=20 You are receiving this mail because: You are on the CC list for the bug.=