-
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
Use Dragonfly's new timers and update Sikuli code #577
Conversation
Made the whole thing a class in order to avoid globals
@Danesprite Thank you. I will remove the old timer class, thanks. As for the new release, whenever you want, I don't think this is pressing. |
No problem. I agree this isn't pressing, there are just enough unreleased changes now that there should be a new release version. |
is this considered complete? |
@LexiconCode Although I should be releasing dragonfly2 version 0.15.0 soon (took longer than expected), this PR doesn't really require it. @comodoro mentioned an error with the "terminate sick server" command. Perhaps that could also be fixed here? This PR makes significant changes to the Sikuli code, so I'll edit the name. |
@Danesprite @LexiconCode Can be merged then, the sikuli problem was just an exception on exiting, I don't think being a problem in itself, and does not happen ( was resolved ) in this branch/PR.I wanted to increase the version in requirements as well, but it can be done anytime after. |
@comodoro Ah, okay then 👍 |
Why freeze the requirements '=='? |
This is after reading some discussions, so that setup.py does contain only restrictions on packages that do not work and we know that and requirements.txt contains packages we know do work. I only know there was something in Dragonfly fairly recently that Caster uses. Feel free to adjust this. |
That makes a lot of sense. |
I'm running into a few issues and trying to tease out whether it's related to this pull request or upstream in Sikulix |
Once conflicts are resolved like to get this merged. |
I'm on it. I admit I am not convinced about the mass removal of rdescripts, even where spec is not clear about what the command does. As for star imports, I'm not a fan, but there are positive aspects. |
…into timer-1 # Conflicts: # castervoice/asynch/sikuli/sikuli.py
Thanks for your help with this! It's good to have feedback on these matters so thank you.
The main thread for both of these changes is #589 as a way to centralize discussion. |
Regarding star imports, I realise that they are frowned upon in Python and I understand why. In our case though, where we are basically importing the same things over and over again, and where easy experimentation is desirable, I think it's the right choice. Another thing to consider is that this makes it a lot easier to change the way objects are loaded. For example when Aenea support was added, dragonfly imports had to be manually changed in ~50 files, whereas now the same change would just need to be done in one place. |
In order to remove the ugly deprecation warning. @Danesprite could you please look at the usage in
stackitems.py
at the bottom and confirm that this is the intended usage?Sikuli code was made into a class to avoid globals. By the way "terminate sick server" without having Sikuli commands raises an exception for me on develop, which should be solved here.
Looking at Dragonfly git log, this change was not released yet, so this should wait until then and dependencies will have to be bumped.