File: 0002-Replace-pkg_resources-with-importlib_metadata-Closes.patch

package info (click to toggle)
pgzero 1.2.post6%2Breally1.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,004 kB
  • sloc: python: 4,279; makefile: 162
file content (26 lines) | stat: -rw-r--r-- 790 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?b?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
Date: Sun, 9 Mar 2025 15:16:26 +0100
Subject: Replace pkg_resources with importlib_metadata (Closes: #1083542)

---
 doc/conf.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/conf.py b/doc/conf.py
index 768a4b8..32f6e58 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -111,10 +111,10 @@ todo_include_todos = False
 
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
-import pkg_resources
+import importlib_metadata
 try:
-    pkg_resources.get_distribution('Sphinx>=1.3')
-except pkg_resources.VersionConflict:
+    importlib_metadata.get_distribution('Sphinx>=1.3')
+except:
     html_theme = 'default'
 else:
     html_theme = 'alabaster'