From nobody Fri Feb 16 07:02:27 2024 X-Original-To: ports@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 4TbjYM4Mvkz5B1ZN for ; Fri, 16 Feb 2024 07:02:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4TbjYL6F2hz4j7R for ; Fri, 16 Feb 2024 07:02:30 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=softfail (mx1.freebsd.org: 198.144.192.42 is neither permitted nor denied by domain of yuri@FreeBSD.org) smtp.mailfrom=yuri@FreeBSD.org; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=freebsd.org (policy=none) Received: from [192.168.5.3] (c-98-42-44-116.hsd1.ca.comcast.net [98.42.44.116]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 41G72T66050418 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 15 Feb 2024 23:02:29 -0800 (PST) (envelope-from yuri@FreeBSD.org) X-Authentication-Warning: shell1.rawbw.com: Host c-98-42-44-116.hsd1.ca.comcast.net [98.42.44.116] claimed to be [192.168.5.3] Content-Type: multipart/alternative; boundary="------------mehQP257eF7jaTuAHE6cRzur" Message-ID: <07d2ff32-b297-4f7b-8aad-be04b89df0ca@FreeBSD.org> Date: Thu, 15 Feb 2024 23:02:27 -0800 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: "py-" prefix shouldn't be needed for Python-based ports that are programs, not libraries To: ports@freebsd.org References: <593106a3-b1c1-4aa6-95b9-e0d15ed2cd47@FreeBSD.org> <9ecdf1c4-97d1-4a18-bd77-9aff2ee2cc8d@freebsd.org> Content-Language: en-US From: Yuri In-Reply-To: <9ecdf1c4-97d1-4a18-bd77-9aff2ee2cc8d@freebsd.org> X-Rspamd-Queue-Id: 4TbjYL6F2hz4j7R X-Spamd-Bar: + X-Spamd-Result: default: False [1.90 / 15.00]; VIOLATED_DIRECT_SPF(3.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.19)[0.189]; RCVD_NO_TLS_LAST(0.10)[]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF, No valid DKIM,none]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ONCE_RECEIVED(0.10)[]; XM_UA_NO_VERSION(0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[ports@freebsd.org]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[ports@freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all:c]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEFALL_USER(0.00)[yuri]; TO_DOM_EQ_FROM_DOM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_XAW(0.00)[] This is a multi-part message in MIME format. --------------mehQP257eF7jaTuAHE6cRzur Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/15/24 22:48, Charlie Li wrote: > This distinction does not practically exist; any Python package, even > if primarily a program, can be specified and imported as a library in > another as a dependency. See meson, which had to grow flavours when > meson-python came about. This isn't true. If the program has one main function and several helper application-specific submodules - none of them can be used by any other software as dependency because everything is application-specific. If the package has the description "Command line utility to xx" - this likely means that this is just a command line application and nothing more, and it shouldn't have the "py-" prefix. Yuri --------------mehQP257eF7jaTuAHE6cRzur Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 2/15/24 22:48, Charlie Li wrote:
This distinction does not practically exist; any Python package, even if primarily a program, can be specified and imported as a library in another as a dependency. See meson, which had to grow flavours when meson-python came about.


This isn't true.

If the program has one main function and several helper application-specific submodules - none of them can be used by any other software as dependency because everything is application-specific.


If the package has the description "Command line utility to xx" - this likely means that this is just a command line application and nothing more, and it shouldn't have the "py-" prefix.



Yuri


--------------mehQP257eF7jaTuAHE6cRzur--