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
Within a repository, the root URL (/) MUST be a valid HTML5 page with a
single anchor element per project in the repository.
"HTML5 page" is used in a few other places to refer to the expected return value of the PEP 503 repository.
HTML5 specifies two syntaxes/document formats: HTML and XML. Currently pip only supports HTML documents.
I would propose the following:
Add a note to PEP 503 to the effect of:
Below, "HTML page" can be taken to mean an HTML document confirming to [[HTML5]].
and then replace each instance of "HTML5 page" with "HTML page".
Add a constraint to the existing list
When served via HTTP, repositories SHOULD include a Content-Type header with a media-type value of text/html when returning an HTML page. Clients MAY choose to parse an HTTP response body as an HTML page in the absence of a Content-Type header.
I'm trying to use the auto-indexed web version of an SVN repository as a repository for pip. Unfortunately, the pages are served with Content-Type: text/xml and therefore pip currently skips the repository. I thought I'd add this here as a real-world example why this could be useful.
Currently PEP 503 states
"HTML5 page" is used in a few other places to refer to the expected return value of the PEP 503 repository.
HTML5 specifies two syntaxes/document formats: HTML and XML. Currently pip only supports HTML documents.
I would propose the following:
Add a note to PEP 503 to the effect of:
and then replace each instance of "HTML5 page" with "HTML page".
Add a constraint to the existing list
References
The text was updated successfully, but these errors were encountered: