File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 18
18
from subprocess import PIPE
19
19
20
20
import toml
21
+ from importlib_resources import files
21
22
from jsonschema import Draft4Validator as Validator
22
23
from pkg_resources import parse_version
23
24
24
25
from jupyter_releaser .tee import run as tee
25
26
26
- HERE = osp .dirname (osp .abspath (__file__ ))
27
27
PYPROJECT = Path ("pyproject.toml" )
28
28
SETUP_PY = Path ("setup.py" )
29
29
SETUP_CFG = Path ("setup.cfg" )
@@ -287,8 +287,8 @@ def read_config():
287
287
if "jupyter-releaser" in data :
288
288
config = data ["jupyter-releaser" ]
289
289
290
- with open ( osp . join ( HERE , "schema.json" )) as fid :
291
- schema = json .load ( fid )
290
+ schema = files ( "jupyter_releaser" ). joinpath ( "schema.json" ). read_text ()
291
+ schema = json .loads ( schema )
292
292
293
293
config = config or {}
294
294
validator = Validator (schema )
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ install_requires =
32
32
click
33
33
ghapi
34
34
github-activity~=0.1
35
+ importlib_resources
35
36
jsonschema>=3.0.1
36
37
pre-commit
37
38
pypiserver
You can’t perform that action at this time.
0 commit comments