From c7de32f5156e0852c543e51b321053a6a89dd98f Mon Sep 17 00:00:00 2001 From: Miro <200482516+Mirochill@users.noreply.github.com> Date: Sat, 23 May 2026 20:52:12 +0200 Subject: [PATCH] Remove pkg_resources runtime dependency --- mavisp/modules.py | 6 +++--- pyproject.toml | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mavisp/modules.py b/mavisp/modules.py index c2c8c9c..ffc905c 100644 --- a/mavisp/modules.py +++ b/mavisp/modules.py @@ -21,13 +21,13 @@ # along with this program. If not, see . import os +from importlib.resources import as_file, files import pandas as pd from mavisp.methods import * from mavisp.utils import three_to_one, three_to_one_hgvsp from collections import defaultdict import logging as log import re -import pkg_resources import numbers import yaml @@ -1444,8 +1444,8 @@ def ingest(self, mutations): critical=[MAVISpCriticalError(this_error)]) # load phospho-SLiM data file - fname = pkg_resources.resource_filename(__name__, 'data/phosphoSLiMs_15062023.csv') - phospho_slims = pd.read_csv(fname) + with as_file(files(__package__).joinpath('data/phosphoSLiMs_15062023.csv')) as fname: + phospho_slims = pd.read_csv(fname) # create final table final_table = pd.DataFrame({'mutation' : mutations}) diff --git a/pyproject.toml b/pyproject.toml index 819bf5f..ff1b501 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ dependencies = [ "pyyaml", "requests", "termcolor", - "setuptools", ] dynamic = ["version"]