File: remove_undeclared_pkg_resources.patch

package info (click to toggle)
mirtop 0.4.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,828 kB
  • sloc: python: 6,649; sh: 47; makefile: 22
file content (9 lines) | stat: -rw-r--r-- 259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
--- a/mirtop/libs/config.py
+++ b/mirtop/libs/config.py
@@ -1,3 +1,3 @@
-import pkg_resources
+import importlib.metadata
 
-version = pkg_resources.get_distribution("mirtop").version
\ No newline at end of file
+version = importlib.metadata.version('mirtop')