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

Remove usage of distutils #1306

Merged
merged 6 commits into from
Oct 14, 2021
Merged

Remove usage of distutils #1306

merged 6 commits into from
Oct 14, 2021

Conversation

namurphy
Copy link
Member

distutils has just been deprecated, so this PR is to remove usage of distutils in one file. In particular, I replaced distutils.version.StrictVersion with packaging.version.Version. I don't know yet if I need to add packaging as a dependency.

Closes #1293.

@github-actions github-actions bot added the plasmapy.plasma Related to the plasmapy.plasma subpackage label Oct 14, 2021
@codecov
Copy link

codecov bot commented Oct 14, 2021

Codecov Report

Merging #1306 (431d9d9) into main (7b4e4aa) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1306   +/-   ##
=======================================
  Coverage   97.09%   97.09%           
=======================================
  Files          73       73           
  Lines        7169     7169           
=======================================
  Hits         6961     6961           
  Misses        208      208           
Impacted Files Coverage Δ
plasmapy/plasma/sources/openpmd_hdf5.py 80.00% <100.00%> (ø)

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 7b4e4aa...431d9d9. Read the comment docs.

Copy link
Member

@rocco8773 rocco8773 left a comment

Choose a reason for hiding this comment

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

Add packaging to the dependencies. My take on dependencies is that if it's imported by one of our modules then we should add it as a dependency.

setup.cfg Outdated
@@ -50,6 +50,7 @@ install_requires =
setuptools >= 41.2
tqdm >= 4.41.0
xarray >= 0.14.0
packaging
Copy link
Member

Choose a reason for hiding this comment

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

I'm surprised black and/or pre-commit are not complaining that this is not alphabetized.

@namurphy namurphy enabled auto-merge (squash) October 14, 2021 20:46
@namurphy namurphy merged commit 4b11dff into PlasmaPy:main Oct 14, 2021
@namurphy namurphy deleted the goodbye-distuils branch March 16, 2022 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plasmapy.plasma Related to the plasmapy.plasma subpackage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove usage of distutils which has been deprecated
2 participants