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 1010from pdm .backend ._vendor .pyproject_metadata import ConfigurationError , StandardMetadata
1111from pdm .backend .exceptions import ConfigError , ValidationError
1212from 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
1414
1515if sys .version_info >= (3 , 11 ):
1616 import tomllib
@@ -257,7 +257,7 @@ def _get_default_package_dir(self) -> str:
257257 self .root .joinpath ("src" ).is_dir ()
258258 and not self .includes
259259 # 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 )
261261 and "src" not in self .excludes
262262 and "src/" not in self .excludes
263263 ):
You can’t perform that action at this time.
0 commit comments