ideasman42 / nerd-dictation

Simple, hackable offline speech to text - using the VOSK-API.
GNU General Public License v3.0
1.27k stars 106 forks source link

Simplify pip packaging and remove cruft files #79

Open Boruch-Baum opened 1 year ago

Boruch-Baum commented 1 year ago

Hi! I'm writing this pull request using nerd dictation. Last week, I had surgery and have not been able to type with both hands so I looked for an application like this and installed it. In the course of installing I observed a few things that I could contribute and hence this pull request. Thanks very much for putting this together; I hope this contribution will be helpful; I have a few other ideas that I can also potentially contribute.

My operating environment is Debian, using python 3.10. The following is the default boilerplate that magit produced for me:

ideasman42 commented 1 year ago

Hi thanks for the PR. Changes/improvements to setup.py are welcome, but please leave it in it's current location.

Boruch-Baum commented 1 year ago

The changes won't work unless the file is moved. That's a central point of the PR: the file is placed counter to the design, instruction, and expectations of python 'setuptools'. It's also inconsistent with the pyrproject.toml file, which IS in the correct location per 'setuptools'.

On2023-01-23 16:34, Campbell Barton wrote:

Hi thanks for the PR. Changes/improvements to setup.py are welcome, but please leave it in it's current location.

— Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe. You are receiving this because you authored the thread. Message ID: @.***>

References

  1. https://github.com/ideasman42/nerd-dictation/pull/79#issuecomment-1401205567
  2. https://github.com/notifications/unsubscribe-auth/AAOE3KBGUF62ITGTORRTKMDWT4PQBANCNFSM6AAAAAAT74ALIM

-- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0

ideasman42 commented 1 year ago

In this case I rather leave it as is. If there are mistakes or problems with setup.py not working, that should be addressed, last I tested it seemed to work OK. But it should not be necessary to have this in the projects root directory.