File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 10
10
from pdm .backend ._vendor .pyproject_metadata import ConfigurationError , StandardMetadata
11
11
from pdm .backend .exceptions import ConfigError , ValidationError
12
12
from pdm .backend .structures import Table
13
- from pdm .backend .utils import find_packages_iter
13
+ from pdm .backend .utils import find_packages_iter , is_relative_path
14
14
15
15
if sys .version_info >= (3 , 11 ):
16
16
import tomllib
@@ -257,7 +257,7 @@ def _get_default_package_dir(self) -> str:
257
257
self .root .joinpath ("src" ).is_dir ()
258
258
and not self .includes
259
259
# the first path part must not be a wildcard
260
- or any (Path (p ). is_relative_to ("src" ) for p in self .includes )
260
+ or any (is_relative_path ( Path (p ), Path ("src" ) ) for p in self .includes )
261
261
and "src" not in self .excludes
262
262
and "src/" not in self .excludes
263
263
):
You can’t perform that action at this time.
0 commit comments