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

Replace version numbering interface #2485

Closed
wants to merge 3 commits into from
Closed

Replace version numbering interface #2485

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 19, 2021

As the distutils.version is deprecating, it was replaced
with the packaging.version. In order to give support for all
version numbering, according to PEP 440, parse was used.

Fixes #2466

As the distutils.version is depecrating, it was replaced
with the packaging.version. In order to give support for all
version numbering, according to PEP 440, parse was used.
@codecov
Copy link

codecov bot commented Feb 19, 2021

Codecov Report

Merging #2485 (63b3fd1) into master (b528ba2) will decrease coverage by 0.23%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2485      +/-   ##
==========================================
- Coverage   97.45%   97.21%   -0.24%     
==========================================
  Files          17       17              
  Lines        6317     6317              
==========================================
- Hits         6156     6141      -15     
- Misses        161      176      +15     
Impacted Files Coverage Δ
seaborn/_core.py 98.61% <100.00%> (ø)
seaborn/utils.py 94.55% <100.00%> (ø)
seaborn/_docstrings.py 97.50% <0.00%> (-2.50%) ⬇️
seaborn/_statistics.py 98.43% <0.00%> (-1.57%) ⬇️
seaborn/matrix.py 94.96% <0.00%> (-0.90%) ⬇️
seaborn/regression.py 97.16% <0.00%> (-0.63%) ⬇️
seaborn/categorical.py 98.32% <0.00%> (-0.22%) ⬇️

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 b528ba2...63b3fd1. Read the comment docs.

@mwaskom
Copy link
Owner

mwaskom commented Feb 19, 2021

Thanks!

I guess packaging should go in the install_requires field in setup.py. It's a dependency of pip and it would be weird if someone installed seaborn without having pip installed, but probably not impossible? I haven't found any guidance on this.

Added the packaging dependency to install_requires field in setup.py.
setup.py Outdated
@@ -33,6 +33,7 @@
'numpy>=1.16',
'pandas>=0.24',
'matplotlib>=3.0',
'packaging>=29.0',
Copy link
Owner

Choose a reason for hiding this comment

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

Why this version floor?

Copy link
Owner

Choose a reason for hiding this comment

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

(I am mostly asking if you have a link/reference to support the choice ... I don't know the right answer here).

Copy link
Author

Choose a reason for hiding this comment

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

I was testing with the most recent packaging version. I am going to make some tests to evaluate if it can be used with previous versions.

Copy link
Owner

Choose a reason for hiding this comment

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

I would expect the parse behavior to be highly stable across versions of packaging; I'm not sure it will be necessary to specify a minimum version.

Correcting the wrong version number of the packaging dependency.
@mwaskom
Copy link
Owner

mwaskom commented May 5, 2021

Note that pandas decided to vendor the Version class rather than include packaging as a dependency, which I would be inclined towards as well: pandas-dev/pandas#41207

@mwaskom
Copy link
Owner

mwaskom commented Sep 13, 2021

Superseded and closed by #2659

@mwaskom mwaskom closed this Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move away from distutils for version checks
1 participant