From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iLvFGWlKTmchEQEA62LTzQ:P1 (envelope-from ) for ; Tue, 03 Dec 2024 00:01:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iLvFGWlKTmchEQEA62LTzQ (envelope-from ) for ; Tue, 03 Dec 2024 01:01:45 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=iwv0IxGf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733184105; a=rsa-sha256; cv=none; b=NkcRMEmWtiipl52Dm/cDC7jsDSMvXBRO0p0v0AGPMY2ytApdrp0vOMWpZA0Ua4hu88zXGt cYWReRUP5X0Na5/DlS/2/oGZBAgGRP+7n2Rvu/0bSALAmCHsut0RbbNOrvUcgwstkbwMCo i4DNZScS5rq2RmdSB0FxKevWrBG4HKJozV3Cn/x/9+R1ptarPkugqZS++nHIKgOYwf4mQk t2URrJDyKMoYBXgrGzs3lU3nIPs5FfJGoVL/Qoz3TTN1Udc0jRsltcUdREL/4I9Ycsnf5L dGMR58f8+MX4Xn/+ihl1KDJAg5T+sTW4uDj9DcbeWBAcoyvf8p6DCUYwhz9BjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=iwv0IxGf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733184105; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=mK+ATD1qU3XzsPrQiMj7TZ0/iAZApRtVp+GGTFmbhoA=; b=OKcDGxUXhRiyIHu6b0sLQZ5HiTOuvBxRNvH7l8vImPRn2t2dioB0I+bYx8SUFsFJ7gVo/o IggIPIcGDLRPi4sI+Flt/Esz3rIUMx0mQx9dGBgeQNI4qEZ3qeppkC1qNF04eWEh68coAx Btwp42Sgj/K0xun+b949JrnpOtfNY/azY1LIy6B5v9hGAf/ZccWpxUtsEZK+q3VyEy8R4O U73R1zoLUVgle8kejYf1k9+G2oDzfJ26CW2SQxp+vvwe+zYu8lZESgUAPELbSNxFLiZNo0 EUAmd3wZ2/CYcd1aPpcpdYIynJBQGdsCWld4VSz6HdzgPnGKSKdhZNdOpQg+xQ== 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 300C07BAD for ; Tue, 03 Dec 2024 01:01:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIGLo-0001iF-Ob; Mon, 02 Dec 2024 19:01:12 -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 1tIFUK-0002j1-Eb for help-guix@gnu.org; Mon, 02 Dec 2024 18:05:56 -0500 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIFUI-000631-Rz for help-guix@gnu.org; Mon, 02 Dec 2024 18:05:56 -0500 Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-8418ecda128so167287039f.2 for ; Mon, 02 Dec 2024 15:05:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733180753; x=1733785553; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=mK+ATD1qU3XzsPrQiMj7TZ0/iAZApRtVp+GGTFmbhoA=; b=iwv0IxGf1x29Kqs5KRKGkI25kRcuTsrnN1kkOKiaUFgMmNrjxtZM5zDX9ioLrkT6nK trkdav1qwwF6pTgYxbC0/qycJt2IbUHTn6FlpEuoAGiBrOPR4l2k2pHffndYeFY7cpNC oekOp5EjQWAMy6k/Pqo9sDnxwZwGCCuPtjOo0zDf00xpBINUA+NNAqzsP9FuW3E+Mo9U 6YvCnncW7iB8LYJ0WF/KNlaUIBWHt3Zs56eQfMAZt8cks6DZZSKlpbQ8OoHdQJv7anEd 19yyVcUs21TyGUMXOO661aBmG/PCUsNe2QmTWlP/UPx/Cua53sIDNJq9oZCcMi9W2uQq FFfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733180753; x=1733785553; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mK+ATD1qU3XzsPrQiMj7TZ0/iAZApRtVp+GGTFmbhoA=; b=iS+iierSacH0neOOoKUyqhElGLJsp05ccABo/mED/rANMZDazzDZfQcUiPHi4esDSD 4vKxa8v/j2k5TLRNMimD2Aet/FmUnsn27mVx/8Qb1l4buiT9kI2uCYlIZkq5AG6vqMYS XtzAayZkMvwEylhdR0qCqt4k4XIgPbTayGvSGB/NPasXREQMZV/Z2TQo9ihVdkE3N/ga DnW9BeY/njXWzvY+E9WgYNMc7Bx1RX9VX4g+FQ02oAqH6lQNzSREA9GyXz0+s7Z2IXmp pFPryfN/Qtwmn9ugrWtSo9wepBl63uDLD/q6/ADiEsFq7OCm0vNW4llidj2EveQynC5U qw3A== X-Forwarded-Encrypted: i=1; AJvYcCWjvBf203mAltCYDZLuJsqxfHBUo+dn2vnGhPmQI+ATkMyJdIMjPpaOmz6bN3X3MTRTgXitILr/FHU=@gnu.org X-Gm-Message-State: AOJu0YwNcvBE5T3UeSo24r4Jcjau4+UTtVaiEXX0kGVtIHOcjao8OoRQ c162sLvJdFspxcBlTgJxphZAtThZFlmL/NL49K1MNeZ2P6fQNQQBb6Oq0Q== X-Gm-Gg: ASbGnctVuDAuvuVRyCzuI6NLJegiGvz5xcRKh07f5Kekvmq9Q4a5iTV8Y31Ooc2ymEU VeP24pSoWTcJzsDM4kzXuBq6mY9QZpwYihNn725F7Mh4eA/r6R09y/BdsS1zIQXvnJguZUuxGVI kFuavZtXzCsKYRZPc2aciDziRjbe/TNMDJYIfWYbH4TgTyFIJN4+6WmGWn6YU2sGZKW1zil7NTz lSXvXIA+FSKTBDCZyLZ7xs9b6evpoDYGG9HSu1/A5D8JmqledDt9zZizsQ= X-Google-Smtp-Source: AGHT+IEzLr7oQUUSbeoxHd0H152W6eRjSFXtzUMGI+fShkc1r1yXgvcBXcplqNhP1See2AiWg5y0eQ== X-Received: by 2002:a05:6602:15d0:b0:83a:b79c:66b6 with SMTP id ca18e2360f4ac-8445b543e7emr62598339f.2.1733180752629; Mon, 02 Dec 2024 15:05:52 -0800 (PST) Received: from ?IPV6:2600:4808:a053:7600::ebd1? ([2600:4808:a053:7600::ebd1]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-84405ec8620sm218212939f.16.2024.12.02.15.05.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Dec 2024 15:05:51 -0800 (PST) Message-ID: Date: Mon, 2 Dec 2024 18:05:49 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pyproject build (hatchling) with entry-points To: Gabriel Wicki , help-guix@gnu.org References: Content-Language: en-US From: aurtzy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::d33; envelope-from=aurtzy@gmail.com; helo=mail-io1-xd33.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 02 Dec 2024 19:01:08 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 300C07BAD X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.45 X-Spam-Score: -5.45 X-TUID: TcP9uhiPt4pS Hi gabber, On 12/2/24 16:46, Gabriel Wicki wrote: > Hi there! > > I have created a Python application that seems to build just fine (using > a pyproject.toml file and the hatchling build system, by invoking > `python3 -m build`), including script entrypoints and everything. > > Unfortunately I am not as lucky with my Guix packaging attempts. My > Python project creates a wheel and a tar.gz dist file with the > corresponding entry_points.txt file, but the pyproject-build-system's > create-entrypoints phase does not seem to pick it up. Making the guix > build fail I see that no entry_points.txt makes its way into the build > process. Am I doing it wrongly? Am I missing something? Is this a > known issue? > > Thanks for any and all pointers leading me further down the path > gabber > I worked on packaging some software with pyproject-build-system recently and may have encountered a similar issue with a fix you can try. My conclusion was that pyproject-build-system expects a certain format when parsing entrypoints, and drops any that do not match it. In my case, the entrypoint in my pyproject.toml appeared to be ignored because a colon ":" is always expected in the format. My original intention was for the module itself to be executed, but the build system seems to only accept entrypoints that call a function via a format like "MODULE[.SUBMODULE]:FUNCTION". If you want to have a look at the code itself and the exact regexp(s), the parsing for entrypoints happens in (guix build pyproject-build-system): Cheers, aurtzy