[WIP] Fix the most obvious python3 errors in data managers#2032
[WIP] Fix the most obvious python3 errors in data managers#2032mvdbeek wants to merge 2 commits intogalaxyproject:masterfrom
Conversation
5a7f5b0 to
c17db43
Compare
|
On the brightside I worked a bit on fixing data manager testing: |
|
Putting this into WIP, will set up actual testing soon |
c17db43 to
18d8e4b
Compare
18d8e4b to
7fcb3f1
Compare
|
@mvdbeek Would you be able to help me understand how this will roll out a bit more? I had problems with the Gemini DM on 5/1/2019, the latest version from the tool shed. Do the changes get applied per-DM? If so, has Gemini been updated or are there distinct tickets for different DMs? Should I make one for Gemini or is there some master ticket with a "to-do" list in it for the DMs that need an update (couldn't find one -- maybe missed it?) I don't see any recent changes in the repo about this and @natefoo thinks this is why our index runs for Gemini are failing: https://github.com/galaxyproject/tools-iuc/commits/master/data_managers/data_manager_gemini_database_downloader ping @bgruening getting Gemini data into CVMFS is likely dependent on this. am still doing another test run today, just to double check |
On python 3 ? This is are exclusively python 3 fixes here. We'll need a new planemo release with a new xsd to mark managers as python 3 compatible. |
|
@mvdbeek Yes, under Py3. We run the DMs on a special mirror of our Test server, which was updated early for, well, to test what is working and what isn't under version 3 :) So the fix is not DM specific if am understanding correctly. am cc-ing @jmchilton to keep him updated about the dependency. Thanks for the extra info! |
|
It's done, we've got a new planemo release, I'll try to find some time to go through the data managers. Some of them don't have tests, so it's a little more work. |
|
@mvdbeek Super, thank you!! Also, if there are part of the DM updates that others can help with, could distribute those tasks to more people. @jmchilton and I have a project going on in our lab where we have a few bugs or update fixes assigned per week so that everyone is involved in maintenance activities (not just a few). Is generally liked by the developers -- get to work on something short and clear endpoint with a bonus of learning something new in many cases (bio or technical). Feedback is often that it feels good to actually get something smaller completely done while also working on the longer-term infrastructure projects that don't have as many done moments. Win-win :) |
|
There are still some that need fixing, I just focused on the high profile ones for now. |
Also: - prefer json `load()`/`dump()` to `loads()`/`dumps()` - use `with` statement to open/close files Close galaxyproject#2032
Also: - prefer json `load()`/`dump()` to `loads()`/`dumps()` - use `with` statement to open/close files Close #2032
These should be fairly uncontroversial (but I haven't tested them all ...).
FOR CONTRIBUTOR:
FOR REVIEWER:
iuchas access to associated toolshed repo(s)<command/>'single quoted'<![CDATA[ ... ]]>tagstextor havingoptional="true"attribute are checked withif str($param)before being usedformatattribute containing datatypes recognised by Galaxy<![CDATA[ ... ]]>tags