Skip to content

Improve version comparison in check_schema_version util function - #2230

Merged
sbadithe merged 8 commits into
mainfrom
check_schema_version
Aug 8, 2022
Merged

Improve version comparison in check_schema_version util function #2230
sbadithe merged 8 commits into
mainfrom
check_schema_version

Conversation

@sbadithe

@sbadithe sbadithe commented Aug 7, 2022

Copy link
Copy Markdown
Contributor

from enum import Enum
from itertools import zip_longest

from packaging.version import parse

@gsheni gsheni Aug 8, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

packaging needs to be added to setup.cfg in install_requires. It's not a part of Python standard

@gsheni gsheni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

once setup.cfg is updated, I'll approve

Comment thread setup.cfg
holidays >= 0.13
numpy >= 1.21.0
pandas >= 1.3.0
packaging >= 20.0

@sbadithe sbadithe Aug 8, 2022

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It looks like distributed has packaging >= 20.0 as a req so I put this as the minimal version. It's also the release of packaging that supports Python3.8

@sbadithe
sbadithe marked this pull request as ready for review August 8, 2022 19:19
@codecov

codecov Bot commented Aug 8, 2022

Copy link
Copy Markdown

Codecov Report

Merging #2230 (f6fe36f) into main (7f25720) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2230      +/-   ##
==========================================
- Coverage   99.29%   99.29%   -0.01%     
==========================================
  Files         146      146              
  Lines       17583    17577       -6     
==========================================
- Hits        17459    17453       -6     
  Misses        124      124              
Impacted Files Coverage Δ
featuretools/utils/gen_utils.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sbadithe
sbadithe merged commit f179300 into main Aug 8, 2022
@sbadithe
sbadithe deleted the check_schema_version branch August 8, 2022 19:41
@ozzieD ozzieD mentioned this pull request Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve version comparison in check_schema_version util function

2 participants