Skip to content

HACK FIX - Removed dependency on 'packaging.versions'#272

Merged
johnbaldwin merged 1 commit into
masterfrom
john/remove-packaging-dependency
Oct 23, 2020
Merged

HACK FIX - Removed dependency on 'packaging.versions'#272
johnbaldwin merged 1 commit into
masterfrom
john/remove-packaging-dependency

Conversation

@johnbaldwin

Copy link
Copy Markdown
Contributor

packagine.versions is a very convenient way to compare package versions
for compatibility support. However, we cannot expect that the Open edX
deployment will have packaging installed.

This commit undos the dependency on packaging which was introduced
through backporting django_filters version checking to handle breaking
changes between the versions. Instead we added a crude version parsing
function into figures.filters and currently only use it for
django_filters which has the major, minor, and point versions in the
usual 'x.y.z' dot delimited numeric format. So this will work for Django
Filter but no guarantee for all packages.

packagine.versions is a very convenient way to compare package versions
for compatibility support. However, we cannot expect that the Open edX
deployment will have `packaging` installed.

This commit undos the dependency on `packaging` which was introduced
through backporting `django_filters` version checking to handle breaking
changes between the versions. Instead we added a crude version parsing
function into `figures.filters` and currently only use it for
`django_filters` which has the major, minor, and point versions in the
usual 'x.y.z' dot delimited numeric format. So this will work for Django
Filter but no guarantee for all packages.
@codecov-io

codecov-io commented Oct 23, 2020

Copy link
Copy Markdown

Codecov Report

Merging #272 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #272   +/-   ##
=======================================
  Coverage   91.71%   91.71%           
=======================================
  Files          41       41           
  Lines        2161     2161           
=======================================
  Hits         1982     1982           
  Misses        179      179           
Impacted Files Coverage Δ
figures/filters.py 88.61% <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 3f3133d...6b0f6c9. Read the comment docs.

@johnbaldwin
johnbaldwin merged commit a38a5c8 into master Oct 23, 2020
@johnbaldwin
johnbaldwin deleted the john/remove-packaging-dependency branch October 23, 2020 16:28
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.

3 participants