Idea: determine `entry_points` automatically from `*.dist-info/entry_points.txt` for `noarch: python` packages

Open
#171 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
build-system

Research direction

Start by tracing how v0 and v1 noarch: python recipes process the entry_points field and how installed *.dist-info/entry_points.txt files are handled. Define and validate the behavior for explicit lists, true-based discovery, and false-based disabling before identifying the required tests; done means the behavior is specified consistently for both recipe versions.

Written by the indexing model from the issue text.

Description

Checklist
  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate
What is the idea?

Currently noarch: python recipes (both v0 and v1) require including a list of entry_points: manually. However, the respective packages already carry the upstream list of entry points in the *.dist-info/entry_points.txt file.

The idea (as initially discussed with @jaimergp) would be to change the entry_points for noarch: python packages to allow three kinds of values:

  • an explicit list of entry points (the current behavior)
  • true to automatically discover entry points from entry_points.txt
  • false to disable automatic discovery and not create any entry points
Why is this needed?

The current behavior of having to manually "copy" entry_points is both cumbersome and carries a potential of missync if people miss changing entry points upstream.

What should happen?

No response

Additional Context

I may be missing something non-obvious as to why this wouldn't work.

Dominant language
No language data
Stars
35
Forks
43
Avg merge
2h 11m
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from conda/ceps

All issues in conda/ceps

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.