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
IMO the class should not perform any validation, since PEP 508 does not in any restrict what qualifies as a URL, and any decision on what URLs to support falls entirely on the caller. At the very least, it should allow the caller to provide a custom validator.
The text was updated successfully, but these errors were encountered:
Say I have a Git repoitory locally on
/path/to/repo
, it is currently not possible to specify a package in it:This is because the
Requirement
class currently ensures the URL containsnetloc
:packaging/packaging/requirements.py
Lines 114 to 117 in 456f94f
IMO the class should not perform any validation, since PEP 508 does not in any restrict what qualifies as a URL, and any decision on what URLs to support falls entirely on the caller. At the very least, it should allow the caller to provide a custom validator.
The text was updated successfully, but these errors were encountered: