flit_core: refactor path handling to use pathlib#516
flit_core: refactor path handling to use pathlib#516jameshilliard wants to merge 1 commit intopypa:mainfrom
Conversation
c932b0b to
aa616bf
Compare
| ) | ||
|
|
||
| normp = osp.normpath(p) | ||
| normp = posix_normpath(PurePosixPath(p)) |
There was a problem hiding this comment.
This looks like a behaviour change on Windows -- since it's switching from Windows paths to POSIX paths.
There was a problem hiding this comment.
The path handling seemed buggy/inconsistent here since os.path.normpath is filesystem/os specific and these validations I think need to be consistent across platforms.
There was a problem hiding this comment.
The tests already expect these paths to always be posix style at the moment, as this path is not an absolute path on windows:
flit/flit_core/flit_core/tests/test_config.py
Line 109 in 6982fae
|
I'm not sure that it is particularly useful to make such a migration, but I'll leave the merits of thinking about those to others. |
77ce6ab to
6b44347
Compare
6b44347 to
c0372ae
Compare
This should make path handling easier/cleaner compared with using
os.path.