Skip to content

RF: Replace distutils LooseVersion with looseversion - #6839

Merged
yarikoptic merged 1 commit into
datalad:masterfrom
effigies:mnt/looseversion
Jul 24, 2022
Merged

RF: Replace distutils LooseVersion with looseversion#6839
yarikoptic merged 1 commit into
datalad:masterfrom
effigies:mnt/looseversion

Conversation

@effigies

Copy link
Copy Markdown
Contributor

Fixes #6307

Followed the convention of stdlib -> dependency -> currentpackage imports, but since there weren't dependency imports in these two files, I'm not positive that you follow this convention. LMK if I should change anything.

Changelog

🏠 Internal

  • Use looseversion.LooseVersion as drop-in replacement for distutils.version.LooseVersion

@qlty-cloud-legacy

Copy link
Copy Markdown

Code Climate has analyzed commit 4e3004c and detected 0 issues on this pull request.

View more on Code Climate.

@codecov

codecov Bot commented Jul 14, 2022

Copy link
Copy Markdown

Codecov Report

Merging #6839 (4e3004c) into master (52e822a) will increase coverage by 0.95%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6839      +/-   ##
==========================================
+ Coverage   90.25%   91.20%   +0.95%     
==========================================
  Files         354      354              
  Lines       46058    46058              
==========================================
+ Hits        41568    42008     +440     
+ Misses       4490     4050     -440     
Impacted Files Coverage Δ
datalad/distribution/create_sibling.py 70.00% <100.00%> (ø)
datalad/support/external_versions.py 96.27% <100.00%> (ø)
datalad/support/tests/test_annexrepo.py 97.61% <0.00%> (-0.14%) ⬇️
datalad/tests/utils.py 66.94% <0.00%> (+9.73%) ⬆️
datalad/tests/test_tests_utils.py 92.34% <0.00%> (+92.34%) ⬆️

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 52e822a...4e3004c. Read the comment docs.

@yarikoptic yarikoptic added the semver-minor Increment the minor version when merged label Jul 15, 2022

@yarikoptic yarikoptic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unavoidable. Thank you @effigies

@yarikoptic

Copy link
Copy Markdown
Member

There is no rush but also no objections, so let's just proceed!

@yarikoptic
yarikoptic merged commit 7df6944 into datalad:master Jul 24, 2022
@yarikoptic-gitmate

Copy link
Copy Markdown
Collaborator

PR released in 0.18.0

adswa added a commit to adswa/datalad that referenced this pull request Mar 13, 2023
Originally, datalad#6839 replaced usage of distutils with Looseversion as a fix
for datalad#6307. Somehow, this one isolated import of distutils seems to have
made it back now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-minor Increment the minor version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop using distutils.version.LooseVersion

3 participants