-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add singularity inspect metalad extractor #200
Conversation
Code Climate has analyzed commit 2340c1c and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
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.
Also will need a rudimentary unittest on extracting metadata from a sample container. There is already some which use singularity etc, so should be similar I guess. Test should skip if no metadata or singularity available. But metalad should be installed in CI to actually do run that test.
re appveyor -- I did that fix in #190 already which I merged today. Just rebase your branch on current master and it should be gone. |
1d8fc67
to
ee00701
Compare
re test
|
re external_versions -- just "patch" it to provide function to load version for singularity and apptainer. Here is how
so replace lambda with yours. For that probably just do in |
2fea20f
to
f8b61bf
Compare
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #200 +/- ##
==========================================
+ Coverage 93.82% 93.84% +0.01%
==========================================
Files 19 25 +6
Lines 956 1072 +116
==========================================
+ Hits 897 1006 +109
- Misses 59 66 +7
... and 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
2340c1c
to
441825d
Compare
Fixes: datalad#198 - Adds "singularity inspect path/to/file.sing" to metadata - Adds "apptainer --version || singularity version" to metadata find_executable will be removed in 3.12 Code that imports distutils will no longer work from Python 3.12. Necessary for me to run locally. Update file docstring to not lie Handle both singularity and apptainer
abe8613
to
8be0812
Compare
CI is read on docs and travis ... from a single travis run
|
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.
The main point is to make tests "execute" (not just skip) and pass on CI
b2da0ee
to
6e81213
Compare
|
||
@pytest.fixture(scope="session") | ||
def container_command(): | ||
"""Not a very useful function other than to add session scope.""" |
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.
could have just made that function "lazy" via using e.g. @functools.cache
but ok for now
Fixes: #198
This PR is the result of Datalad Metalad hackathon last week!
TODOs