all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sebastien Rey-Coyrehourcq" <sebastien.rey-coyrehourcq@univ-rouen.fr>
To: help-guix@gnu.org
Subject: Managing python entry-points to discover plugin package with the new  pyproject-build-system ?
Date: Thu, 11 Jul 2024 15:55:20 +0200	[thread overview]
Message-ID: <3e9fa5-668fe480-1e97-22cb8440@260136720> (raw)

Hi, For my lab i actually manage to package the latest version (existing package on guix are old) of python mkdocs static site generator with mkdocs-materials theme. Mkdocs use a yaml entry to call the theme (here mkdocs-material-theme) to use for the website generation. Both project use a pyproject.toml for pip installation. An example of mkdocs.yml that use the material theme : ```yamlsite_name: my site nametheme:  name: material``` The name entry run/use python entry-points (https://peps.python.org/pep-0621/#entry-points) to detect theme actually installed with pip in the same context. Entry-point is a common way to install/link package as plugin. Even if my homemade package mkdocs-material is well installed and contain the entry-point.txt into dist-info/entry_points.txt that doesn't work. By looking in the build system of python i found some information about that : I package mkdocs-material using the new pyproject-build-system https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/pyproject-build-system.scm  My problem is that management of entry-points seems not implemented, as line https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/pyproject-build-system.scm#n61 say. Is there a way to implement this outside of pyproject-build-system, only for this project ? Best regards,SR   

             reply	other threads:[~2024-07-11 13:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-11 13:55 Sebastien Rey-Coyrehourcq [this message]
2024-07-12  9:47 ` Managing python entry-points to discover plugin package with the new pyproject-build-system ? Simon Tournier
2024-07-12 20:07   ` s.rey.coyrehourcq

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e9fa5-668fe480-1e97-22cb8440@260136720 \
    --to=sebastien.rey-coyrehourcq@univ-rouen.fr \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.