-
Notifications
You must be signed in to change notification settings - Fork 191
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
First attempt to make download work with new DSL2 syntax. #1385
Conversation
Hopefully closes nf-core#1379. Needs testing.
Opening this a little early as I'm still technically ill and not working, but want to get this moving ASAP. Any help with testing much appreciated. Apologies in advance for dumb errors. I'm going to go and take a nap now. 🤒 😴 |
Ok I lied, I didn't go to bed yet and did some very quick testing to make sure that it runs (it didn't). Speed test looks good at my end now: ✅ Finds 28 containers for nf-core/rnaseq version 3.2 (old DSL2 syntax) More testing by others would be much appreciated 👍🏻 |
This comment has been minimized.
This comment has been minimized.
if matches: | ||
for match in matches: | ||
# Look for a http download URL. | ||
# Thanks Stack Overflow for the regex: https://stackoverflow.com/a/3809435/713980 |
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.
🙇🏽
for match in matches: | ||
# Look for a http download URL. | ||
# Thanks Stack Overflow for the regex: https://stackoverflow.com/a/3809435/713980 | ||
url_regex = r"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)" |
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.
🤯
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 haven't had time to test it I'm afraid but if you think it's good to go then let's get it in. I will test when I get a moment.
Update the code-scraping-code that discovers container URLs in DSL2 module code. Hopefully now works with both old and new DSL2 styles. Should close #1379.
PR checklist
CHANGELOG.md
is updateddocs
is updated