arviz-devs / arviz

Exploratory analysis of Bayesian models with Python
https://python.arviz.org
Apache License 2.0
1.56k stars 388 forks source link

Pkg resources replacement #2264

Closed michaelraczycki closed 1 year ago

michaelraczycki commented 1 year ago

Description

Replacement of deprecated pkg_resources, now arviz will use importlib.resources which will allow to use more strict testing policy in packages importing arviz ( previously because of pkg_resources failing test on warning was not possible, because each import of arviz was warning about deprecation of pkg_resources)


:books: Documentation preview :books:: https://arviz--2264.org.readthedocs.build/en/2264/

codecov[bot] commented 1 year ago

Codecov Report

Merging #2264 (8900657) into main (fe4af00) will increase coverage by 0.16%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2264      +/-   ##
==========================================
+ Coverage   87.90%   88.07%   +0.16%     
==========================================
  Files         120      121       +1     
  Lines       12417    13026     +609     
==========================================
+ Hits        10915    11472     +557     
- Misses       1502     1554      +52     
Impacted Files Coverage Δ
arviz/data/base.py 97.61% <100.00%> (ø)
arviz/utils.py 90.07% <100.00%> (+1.84%) :arrow_up:

... and 6 files with indirect coverage changes