Skip to content

setup.cfg: entry_points keys are made lowercase #1937

Closed
@madig

Description

@madig

This breaks when the entry point is actually case-sensitive.

  1. git clone https://github.com/pydoit/doit-plugin-sample
  2. Delete setup.py, use the following setup.cfg:
[metadata]
name = doit-plugin-sample
description = a simple doit command plugin

[options]
py_modules = 
    doit_sample_cmd
install_requires = 
    doit

[options.entry_points]
doit.COMMAND =
    plug_sample = doit_sample_cmd:SampleCmd
  1. Use this pyproject.toml:
[build-system]
requires = ["setuptools>=30.3.0", "wheel"]
  1. pip install . inside a venv.

Inspecting venv/*/site-packages/doit_plugin_sample-0.0.0.dist-info/entry_points.txt:

[doit.command]
plug_sample = doit_sample_cmd:SampleCmd

This will not work, as the entry point is doit.COMMAND.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions