dictation-toolbox / dragonfly

Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS), Windows Speech Recognition (WSR), Kaldi and CMU Pocket Sphinx
GNU Lesser General Public License v3.0
383 stars 75 forks source link

Support (but not require) build, editable installs, and github actions. #380

Closed dougransom closed 11 months ago

dougransom commented 11 months ago

python build command and editable installs. Added the github action for building python packages. Updated the readme to provide instructions for the editable install and use of the build command.

Note that even though the github action is provided, it will not be activated unless dragonfly admin sets it up and adds the dragonfly repository to a trusted publisher on pypi. This would let you publish from github using the release feature, instead of a local build, if desired.

The advantages of running the python build command is that build knows how to build a project, whether it is built with flit, setuptools, poetry, etc. and it creates a virtual environment for the build, to help catch errors. However, it is not required to use build, the same commands that worked before python setup.py build.

drmfinlay commented 11 months ago

Hi Doug,

Thank you for these changes. I will merge them and consider using the GitHub releases feature in the future.