-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implements tomlkit in place of toml dependency #676
Conversation
One would expect However since |
@comodoro one thought would be to add some unit tests to writing/reading to toml files. |
Well, you can maybe read requirements (isn't setup.py better as more lenient?) without settings, using |
Thanks for the feedback!
That's a thought and should be possible.
good catch
This is intentional |
Yes the versions are out of sync. You have to bump the package version each to update pypi. There were few gotchas running the PIP install next to the Classic install. Imports will always come from the PIP install even when you're running the classic install. Except for testing purposes I recommend uninstalling PIP if you have the classic install. The versions will be put back in sync once we have a method for the automating the changelog. |
It seems that I thought there was some Context thing later, was it 0.14.1? Anyway, maintaining yet another dependency setting makes things harder. As for the pip package, I suppose you can just increase the version in the file for each release, or I suppose that's the way they usually do it. Otherwise it seemed to work, are there more problems? Edit: Accidentally edited when I meant to quote a reply. :/ |
Will do
True enough. However how should we handle the case would've had dependency is changed to something version specific between releases? The crux of the issue is for the classic install setup.py isn't used to manage dependencies beyond the initial install. The alternative is to simply state that there's been a version dependency change within chat however that's cumbersome and gets buried quickly. This not only handles notifying users by giving them instructions automatically. Although dragonfly minimum version is a rare case and should of been updated to 0.14.1. I might just comment out that line for an example. If you have other thoughts on how to handle this without the function altogether by all means let me know.
That's the plan I just want to be able to show the changes between each release. For now I could do a version bump without explanation and a change log. Otherwise everything else seems to check out. |
@comodoro what you think? def internet_check(host="1.1.1.1", port=53, timeout=3):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.settimeout(timeout)
s.connect((host, port))
return True
except Exception:
return False |
I would consider it cleaner with a more specific exception, not sure which, but it is probably fine. No idea about the dependency issue, what I would probably do is limit dependency checking in non-pip install to what can be reasonably simply coded, in this context the line does not look so bad, else OTOH another file with this kind of more relaxed dependencies could be parsed by both setup.py and dependency checking |
Done f3781bb
That's already implemented in Caster/castervoice/lib/ctrl/dependencies.py Line 140 in f3781bb
|
@comodoro The last tricky bit. Thoughts on how to handle this? Caster/castervoice/lib/ctrl/dependencies.py Line 143 in f3781bb
I suppose I could try except importing settings. On Import error set to true? |
That's tricky. If you want requirements checking at the very beginning and use this setting for update checking, I suppose you have to separate the two and use the requirements checking before loading settings. Sorry, I did not understand the last line. |
All right have get something worked out for that.
Unfortunately this assumption is wrong. 'settings', |
Description
Implements tomlkit place of uiri/toml dependency.
A lot of credit goes to @comodoro for testing and breathing some life into the old issue.
Contains temporary a patch in place of dictation-toolbox/dragonfly#125.
Related Issue
Original Pull Request #372
Fixes non-ASCII characters in clipboard
#357
Implements sorting keys
#323
Motivation and Context
uiri/toml is not being maintained enough for the purposes of our project.
String dump with correct escaping #244
pull request by comodoro has been open for 111 days without comment from the author. Thus the motivation to move to an alternative toml parsing library. Along with the related issues mentioned above.How Has This Been Tested
Types of changes
Checklist
Maintainer/Reviewer Checklist