setup.cfg: entry_points keys are made lowercase
See original GitHub issueThis breaks when the entry point is actually case-sensitive.
git clone https://github.com/pydoit/doit-plugin-sample
- 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
- Use this pyproject.toml:
[build-system]
requires = ["setuptools>=30.3.0", "wheel"]
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
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Demystefying Setuptools Entry Points - YouTube
With just a few lines of code in your ` setup. py ` file, you can install command-line applications, inject features into other...
Read more >How are entrypoints of the Python standard library registered?
The entry points are listed in entry_points.txt files for each of the packages. For example: $ find /path/to/envs/py38/lib/python3.8/ -name ...
Read more >wheel Documentation - Read the Docs
The wheel will go to dist/yourproject-<tags>.whl. If you want to make universal (Python 2/3 compatible, pure Python) wheels, add the following ...
Read more >Entry Points - setuptools 65.6.3.post20221220 documentation
First consider an example without entry points. Imagine a package defined thus: project_root_directory ├── pyproject.toml # and/or setup.cfg, setup.py └ ...
Read more >Dockerfile reference - Docker Documentation
The instruction is not case-sensitive. However, convention is for them to be UPPERCASE to distinguish them from arguments more easily. Docker runs instructions ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I created the repro as jaraco/doit-plugin-sample@setuptools/1937.
With that, I’m able to demonstrate how the doit plugin works when running under the HEAD of the repo (7f56bc5):
And fails when running under the fork version:
I’ll take this on 😃