bots-edi / bots

Bots EDI Translator
GNU General Public License v3.0
138 stars 83 forks source link

move to setuptools-entrypoints instead of old-style rapper-scripts #27

Closed woutervh closed 7 years ago

woutervh commented 7 years ago

in setup.py, they can co-exist scripts=[ 'scripts/bots-webserver.py', 'scripts/bots-engine.py', 'scripts/bots-grammarcheck.py', 'scripts/bots-xml2botsgrammar.py', 'scripts/bots-updatedb.py', 'scripts/bots-dirmonitor.py', 'scripts/bots-jobqueueserver.py', 'scripts/bots-plugoutindex.py', 'scripts/bots-job2queue.py', ],

entry_points={
    'console_scripts': [
        'bots-dirmonitor = bots.dirmonitor:start',
        'bots-engine = bots.engine:start',
        'bots-engine2 = bots.engine:start',
        'bots-grammarcheck = bots.grammarcheck:start',
        'bots-job2queue = bots.job2queue:start',
        'bots-jobqueueserver = bots.jobqueueserver:start',
        'bots-plugoutindex = bots.plugoutindex:start',
        'bots-updatedb = bots.updatedb:start',
        'bots-webserver = bots.webserver:start',
        'bots-xml2botsgrammar = bots.xml2botsgrammar:start',
        ]
    },

2 different commands

bots-dirmonitor.py (script) bots-dirmonitor (entrypoint, no .py-extenstion)

woutervh commented 7 years ago

done in https://github.com/bots-edi/bots/commit/e092c6374738c6f12198eea03b73f92c505967a4