Skip to content

file url is always as posix#145

Merged
ryanking13 merged 3 commits intopyodide:mainfrom
JulianKimmig:patch-1
Mar 16, 2025
Merged

file url is always as posix#145
ryanking13 merged 3 commits intopyodide:mainfrom
JulianKimmig:patch-1

Conversation

@JulianKimmig
Copy link
Contributor

Under windows str(Path) formats the relative path as a windows path, resulting in a path that is incompatible as an url:

e.g. dist/apackage.whl becomes dist\x07package.whl.

formating the Path in posix format solves this.

Under windows str(Path) formats the relative path as a windows path, resulting in a path that is incompatible as an url:

e.g. dist/apackage.whl becomes dist\x07package.whl.

formating the Path in posix format solves this.
@JulianKimmig
Copy link
Contributor Author

I forgot to remove the str caster, which can be removed as well

@ryanking13
Copy link
Member

Thanks! Codewise looks good to me. But I guess I'll need to fix our CI first 😅 . Meanwhile, could you update the changelog?

@agriyakhetarpal
Copy link
Member

Thanks! I opened #146 to fix the CI failure.

@ryanking13 ryanking13 merged commit 1670627 into pyodide:main Mar 16, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants