[med-svn] [Git][med-team/kleborate][master] try again

Alexandre Detiste (@detiste-guest) gitlab at salsa.debian.org
Sat Feb 14 22:28:05 GMT 2026



Alexandre Detiste pushed to branch master at Debian Med / kleborate


Commits:
ce01bcf4 by Alexandre Detiste at 2026-02-14T23:27:51+01:00
try again

- - - - -


1 changed file:

- debian/patches/python3-pkg-resources.patch


Changes:

=====================================
debian/patches/python3-pkg-resources.patch
=====================================
@@ -1,19 +1,23 @@
 --- a/kleborate/__main__.py
 +++ b/kleborate/__main__.py
-@@ -21,7 +21,6 @@
+@@ -21,7 +21,7 @@
  import sys
  import tempfile
  
 -from pkg_resources import resource_filename
++from importlib import resources
  from .contig_stats import get_contig_stat_results
  from .help_formatter import MyParser, MyHelpFormatter
  from .kaptive import get_kaptive_paths, get_kaptive_results
-@@ -365,7 +364,7 @@
+@@ -365,8 +365,9 @@
  
  
  def get_data_path():
 -    return resource_filename(__name__, 'data')
-+    return '/usr/lib/python3/dist-packages/kleborate/data'
- 
+-
++    # bad bad patch
++    with resources.as_file(resources.files('kleborate') / 'data') as fd:
++        return str(fd)
  
  def get_chromosome_mlst_header():
+     return ['gapA', 'infB', 'mdh', 'pgi', 'phoE', 'rpoB', 'tonB']



View it on GitLab: https://salsa.debian.org/med-team/kleborate/-/commit/ce01bcf4ba8b4b9ea55fd4ec4e8b2491c715c4e0

-- 
View it on GitLab: https://salsa.debian.org/med-team/kleborate/-/commit/ce01bcf4ba8b4b9ea55fd4ec4e8b2491c715c4e0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260214/510f5723/attachment-0001.htm>


More information about the debian-med-commit mailing list