python-intelhex / intelhex

Python IntelHex library
BSD 3-Clause "New" or "Revised" License
198 stars 106 forks source link

Use entrypoints for the scripts #50

Closed noahp closed 3 years ago

noahp commented 3 years ago

Swap out scripts for entrypoints to ensure executable flag is properly set when installing from wheel, and hashbang is correct for whatever virtualenv/pipenv/etc the user might be user (instead of hardcoded to /usr/bin/python and relying on script rewrite magic to fix it).

Fix a deprecation notice for setup.cfg.

Note: moving scripts to intelhex/scripts means that the scripts cannot be run as-is from their position in the file system. Recommended approach when developing a package is to pip install -e . install in editable mode and work from there.

The-42 commented 3 years ago

Look good to me, will have to look into side effects regarding our current test and release procedure though before merging this.