Skip to content
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 rudimentary duecredit support using zenodo's dandi-cli DOI #285

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

yarikoptic
Copy link
Member

I am using Zenodo unversioned DOI

$> DUECREDIT_ENABLE=1 python -m pytest dandi/tests/test_utils.py
====================================================== test session starts ======================================================
platform linux -- Python 3.8.6, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
rootdir: /home/yoh/proj/dandi/dandi-cli, inifile: tox.ini
plugins: mock-3.2.0, cov-2.10.0, pyfakefs-4.1.0, forked-1.3.0, timeout-1.4.1, xdist-1.32.0, hypothesis-5.32.1
collected 19 items                                                                                                              

dandi/tests/test_utils.py ...................                                                                             [100%]

=================================================== slowest 10 test durations ===================================================
0.01s call     dandi/tests/test_utils.py::test_find_files
0.01s setup    dandi/tests/test_utils.py::test_find_files_dotfiles

(0.00 durations hidden.  Use -vv to show these durations.)
=================================================== 19 passed in 0.07 seconds ===================================================

DueCredit Report:
- Client to interact with DANDI Archive / dandi-cli (v 0.7.2+6.g39c62bc.dirty) [1]
- Scientific tools library / numpy (v 1.19.4) [2]

2 packages cited
0 modules cited
0 functions cited

References
----------

[1] Halchenko, Y. et al., 2020. dandi/dandi-cli: 0.7.2.
[2] Van Der Walt, S., Colbert, S.C. & Varoquaux, G., 2011. The NumPy array: a structure for efficient numerical computation. Computing in Science & Engineering, 13(2), pp.22–30.

@yarikoptic yarikoptic added enhancement New feature or request minor Increment the minor version when merged labels Nov 25, 2020
@codecov
Copy link

codecov bot commented Nov 25, 2020

Codecov Report

Merging #285 (16ff607) into master (39c62bc) will decrease coverage by 0.16%.
The diff coverage is 68.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #285      +/-   ##
==========================================
- Coverage   82.42%   82.26%   -0.17%     
==========================================
  Files          54       55       +1     
  Lines        4598     4623      +25     
==========================================
+ Hits         3790     3803      +13     
- Misses        808      820      +12     
Flag Coverage Δ
unittests 82.26% <68.00%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
dandi/due.py 68.00% <68.00%> (ø)
dandi/cli/cmd_organize.py 77.30% <0.00%> (-2.46%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39c62bc...16ff607. Read the comment docs.

@yarikoptic yarikoptic changed the title ENH: basic duecredit support Add rudimentary duecredit support using zenodo's dandi-cli DOI Nov 25, 2020
@yarikoptic yarikoptic merged commit 194ce14 into master Nov 25, 2020
@yarikoptic yarikoptic deleted the enh-duecredit branch November 25, 2020 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant