You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defpath_to_url(path: str) ->str:
""" Convert a path to a file: URL. The path will be made absolute and have quoted path parts. """fromurllib.requestimportpathname2urlpath=os.path.normpath(os.path.abspath(path))
url=parse.urljoin("file:", pathname2url(path))
returnurl
In the path_to_url function, parse.urljoin does not add '//", which causes an error
To reproduce
(socketio-3.14) ➜ socketio pdm update
0:00:01 🔒 Lock successful.
See /home/mastru/.local/state/pdm/log/pdm-install-cja6lb2y.log for detailed debug log.
[RequirementError]: file:/home/mastru/pg/ProjectNoname/socketio: Expected end or semicolon (after name and no valid version specifier)
file:/home/mastru/pg/ProjectNoname/socketio
Describe the bug
In the path_to_url function, parse.urljoin does not add '//", which causes an error
To reproduce
Expected Behavior
package updates
Environment Information
Verbose Command Output
No response
Additional Context
This is only on python 3.14, as it is on python 3.13. "//" is added automatically.
Are you willing to submit a PR to fix this bug?
The text was updated successfully, but these errors were encountered: