File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 6
6
# The full license is in the file LICENSE, distributed with this software.
7
7
# ----------------------------------------------------------------------------
8
8
import tempfile
9
- import pkg_resources
9
+ import importlib
10
10
11
11
from qiime2 .plugin .testing import TestPluginBase
12
12
@@ -23,5 +23,4 @@ def tearDown(self):
23
23
self .temp_dir .cleanup ()
24
24
25
25
def get_data_path (self , filename ):
26
- return pkg_resources .resource_filename (self .package ,
27
- 'data/%s' % filename )
26
+ return importlib .resources .files (self .package ) / 'data' / filename
Original file line number Diff line number Diff line change 32
32
import pandas as pd
33
33
import numpy as np
34
34
import matplotlib .pyplot as plt
35
- import pkg_resources
35
+ import importlib
36
36
from scipy .sparse import issparse
37
37
from scipy .stats import randint
38
38
import biom
63
63
}
64
64
65
65
66
- TEMPLATES = pkg_resources . resource_filename ('q2_sample_classifier' , 'assets' )
66
+ TEMPLATES = importlib . resources . files ('q2_sample_classifier' ) / 'assets'
67
67
68
68
69
69
def _extract_features (feature_data ):
You can’t perform that action at this time.
0 commit comments