Skip to content

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

Description

@mgorny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions