File: 0002_fix_import.patch

package info (click to toggle)
pdm 2.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,664 kB
  • sloc: python: 26,438; sh: 314; javascript: 34; makefile: 26
file content (23 lines) | stat: -rw-r--r-- 737 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
From: Andreas Tille <tille@debian.org>
Date: Sat, 29 Jun 2024 18:48:41 -0700
Subject: Fix import of BaseProvider

Last-Update: 2023-08-14
---
 src/pdm/cli/commands/venv/utils.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/pdm/cli/commands/venv/utils.py b/src/pdm/cli/commands/venv/utils.py
index f631797..aaee0f8 100644
--- a/src/pdm/cli/commands/venv/utils.py
+++ b/src/pdm/cli/commands/venv/utils.py
@@ -5,7 +5,8 @@ import hashlib
 import typing as t
 from pathlib import Path
 
-from findpython import BaseProvider, PythonVersion
+from findpython import PythonVersion
+from findpython.providers.base import BaseProvider
 
 from pdm.exceptions import PdmUsageError
 from pdm.models.venv import VirtualEnv