Description: workaround to remove python3-pkg-resources. This patch works around the use of pkg_resources.resource_filename by hardwiring the expected file name, since it is going to land at a known location. Such workaround is not suitable for forwarding upstream. Author: Étienne Mollier Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1125838 Forwarded: not-needed Last-Update: 2026-02-05 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- pycoqc.orig/pycoQC/__main__.py +++ pycoqc/pycoQC/__main__.py @@ -6,7 +6,6 @@ import argparse import sys import textwrap -from pkg_resources import resource_filename # Third party imports from jinja2 import Environment, PackageLoader, Template @@ -96,7 +95,7 @@ # Print the default config parameters and exit if args.default_config: - config_file = resource_filename("pycoQC", "templates/pycoQC_config.json") + config_file = "/usr/lib/python3/dist-packages/pycoQC/templates/pycoQC_config.json" with open (config_file) as fp: sys.stdout.write(fp.read()) sys.exit() --- pycoqc.orig/pycoQC/pycoQC_report.py +++ pycoqc/pycoQC/pycoQC_report.py @@ -4,7 +4,6 @@ #~~~~~~~~~~~~~~IMPORTS~~~~~~~~~~~~~~# # Standard library imports import json -from pkg_resources import resource_filename import datetime import os @@ -170,7 +169,7 @@ # Last use the default harcoded config_dict self.logger.debug ("\tRead default configuration file") - config_file = resource_filename("pycoQC", "templates/pycoQC_config.json") + config_file = "/usr/lib/python3/dist-packages/pycoQC/templates/pycoQC_config.json" with open(config_file, 'r') as cf: return json.load(cf)