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

Fix Numba deprecation warnings with Numba 0.49+ #5033

Merged
merged 4 commits into from
Apr 28, 2020

Conversation

gmarkall
Copy link
Contributor

Many "internal" parts of Numba were moved with the release of 0.49. The old module locations can still be imported with a shim for the 0.49 release, but its use results in the emission of NumbaDeprecationWarning messages. The shims will be removed in Numba 0.50.

This PR avoids the deprecation warnings and enables import from the new module paths where available, so that cuDF can be used with Numba 0.48, 0.49, or (a future release of) 0.50.

Once Numba 0.49 or above is a cuDF requirement, the try .. except ImportError blocks can be replaced with imports exclusively from the new locations.

Many "internal" parts of Numba were moved with the release of 0.49.
The old module locations can still be imported with a shim for the 0.49
release, but its use results in the emission of NumbaDeprecationWarning
messages. The shims will be removed in Numba 0.50.

This PR avoids the deprecation warnings and enables import from the new
module paths where available, so that cuDF can be used with Numba 0.48,
0.49, or (a future release of) 0.50.

Once Numba 0.49 or above is a cuDF requirement, the `try .. except
ImportError` blocks can be replaced with imports exclusively from the
new locations.
@gmarkall gmarkall requested a review from a team as a code owner April 28, 2020 10:10
@codecov
Copy link

codecov bot commented Apr 28, 2020

Codecov Report

Merging #5033 into branch-0.14 will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           branch-0.14    #5033   +/-   ##
============================================
  Coverage        88.50%   88.51%           
============================================
  Files               54       54           
  Lines            10264    10271    +7     
============================================
+ Hits              9084     9091    +7     
  Misses            1180     1180           
Impacted Files Coverage Δ
python/cudf/cudf/utils/applyutils.py 100.00% <100.00%> (ø)
python/cudf/cudf/utils/cudautils.py 48.27% <100.00%> (+1.46%) ⬆️

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 8416538...d52fbe3. Read the comment docs.

@kkraus14 kkraus14 added 5 - Ready to Merge Testing and reviews complete, ready to merge Python Affects Python cuDF API. numba Numba issue labels Apr 28, 2020
@kkraus14
Copy link
Collaborator

Thanks @gmarkall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge numba Numba issue Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants