diff --git a/f5_cccl/api.py b/f5_cccl/api.py index 2311987..69f0129 100644 --- a/f5_cccl/api.py +++ b/f5_cccl/api.py @@ -17,7 +17,7 @@ """F5 Common Controller Core Library to read, diff and apply BIG-IP config.""" import logging -import pkg_resources +import importlib.resources from f5_cccl.bigip import BigIPProxy from f5_cccl.service.manager import ServiceManager @@ -67,8 +67,8 @@ def __init__(self, bigip, partition, user_agent=None, prefix=None, prefix=prefix) if schema_path is None: - schema_path = pkg_resources.resource_filename(resource_package, - ltm_api_schema) + schema_path = str( + importlib.resources.files(resource_package).joinpath(ltm_api_schema)) self._service_manager = ServiceManager(self._bigip_proxy, partition, schema_path) @@ -132,4 +132,4 @@ def get_statistics(self): """ statistics = {} - return statistics + return statistics \ No newline at end of file diff --git a/setup_requirements.txt b/setup_requirements.txt index f69d1f2..1d3817c 100644 --- a/setup_requirements.txt +++ b/setup_requirements.txt @@ -21,4 +21,4 @@ six==1.12.0 attrs==18.2.0 cffi==1.15.0 pyrsistent==0.14.11 -setuptools==78.1.1 +setuptools==82.0.1