-
Notifications
You must be signed in to change notification settings - Fork 53
Boutiques on Windows #561
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
Boutiques on Windows #561
Conversation
…meaning in windows paths)
Release 0.5.23
Updated schema doc
Hi @arthursw, thank you so much for working on this! I noticed that you added several JSON or txt files that aren't part of the code, probably because they were generated by the tests: do you mind removing them? It might be the reason why the tests are failing. |
@glatard ok, I removed the test files ; sorry about that! |
The tests are now passing and the code makes a lot of sense to me. I'm just surprised that we don't have more Linux-specific things (like '\n' or manual path concatenations) elsewhere in the code! I have started looking at Appveyor config to test the code on Windows (see #445) but didn't manage to have it working yet. As these modifications don't seem to break anything on Linux, I'd suggest we merge them and then work on Windows testing through Appveyor. I'd like to have approval from @gkiar or @ramou first though. @arthurmasson, if you have any experience with Appveyor, your help would be greatly appreciated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take tomorrow to bludgeon this. If it survives, or I don't, thumbs up.
…On Wed, Jan 15, 2020, 12:12 Tristan Glatard ***@***.***> wrote:
***@***.**** approved this pull request.
Looks very good to me! Given that the work on paths and mounts has created
issues in the past, I'd like to have approval from @gkiar
<https://github.com/gkiar> or @ramou <https://github.com/ramou> before we
merge this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#561?email_source=notifications&email_token=AAN2OQHSEOU5FL7TVME5YRDQ547WHA5CNFSM4JUYMQLKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCR3ZTMQ#pullrequestreview-343382450>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN2OQEEHDKJHJI7BCS5SATQ547WHANCNFSM4JUYMQLA>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, thanks @arthursw ! 👍
Actually, I didn't check that every features work on windows... I just focused on what is required for the medInria plugin. I don't have any experience with Appveyor but I can have a try if you need it. |
name: Fix windows issues (paths and file names)
about: Remove colon in file names (invalid characters in windows), and make path homogeneous among platforms.
title: 'Windows bug fix'
labels: windows support
assignees: ''
Checklist
For now unit tests do not pass because of the error:
DescriptorValidationError: [ ERROR ] Additional properties are not allowed ('deprecated' was unexpected)
(some descriptors seem out of date?)Purpose
This PR makes paths homogeneous among platforms (tested on windows and linux only but should work on mac as well).
When used in file names,
datetime.datetime.now().isoformat()
is replaced bydatetime.datetime.now().strftime("%Y-%m-%d_%Hh%Mm%Ss%fms")
to avoid the colon (:
) character which causes problem on Windows.The command
type
seems to have a different purpose on Windows so to check if Singularity or Docker is installed the commanddocker --version
orsingularity --version
is called instead.I had to remove "&>/dev/null" from the command line 542 of localExec.py.
Current behaviour
Works on Linux and Windows.
New behaviour
Now also works on windows.
Does this introduce a major change?