How to setup entry_points in setup.cfg How to setup entry_points in setup.cfg python-3.x python-3.x

How to setup entry_points in setup.cfg


The section must be [options.entry_points]. See an example at https://github.com/github/octodns/blob/4b44ab14b1f0a52f1051c67656d6e3dd6f0ba903/setup.cfg#L34

[options.entry_points]console_scripts =    octodns-compare = octodns.cmds.compare:main    octodns-dump = octodns.cmds.dump:main    octodns-report = octodns.cmds.report:main    octodns-sync = octodns.cmds.sync:main    octodns-validate = octodns.cmds.validate:main


With python 3.6 and setuptools 39.0.1, i had like you to move entry points from .py to .cfg.

My setup.py, focused on the entry points declaration:

from setuptools import setupsetup(    entry_points={        'pytest11': [            'mytest = mytest.plugin',        ],    },)

I ended up with this working setup.cfg:

... # other standard declarations[options.entry_points]pytest11 =    mytest = mytest.plugin