Skip to content

Commit

Permalink
Remove dependency on pkg_resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Oct 4, 2023
1 parent 56ea881 commit 7f20ef2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
"""Logic for validating dependency files."""

import importlib
import json
import sys
import textwrap

import jsonschema
import pkg_resources
from jsonschema.exceptions import best_match

SCHEMA = json.loads(pkg_resources.resource_string(__name__, "schema.json"))
SCHEMA = json.loads(
importlib.resources.files(__name__).joinpath("schema.json").read_bytes()
)


def validate_dependencies(dependencies):
Expand Down

0 comments on commit 7f20ef2

Please sign in to comment.