1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/news
Nicolas Bock 913757cb53
Do not clean base_url
When the `base_url` is a `[]` protected IPv6 address, the
`_clean_link()` function converts `[` to `%5B` and `]` to `%5D`, which
renders the `base_url` invalid. For example:

```
	Starting new HTTP connection (1): fd00:0:0:236:💯8181
	http://fd00:0:0:236:💯8181 "GET /os-releases/19.0.0.0b1/opensuse_leap-42.3-x86_64/requirements_absolute_requirements.txt HTTP/1.1" 200 None
	Setting setuptools==40.6.3 (from -c http://[fd00:0:0:236::100]:8181/os-releases/19.0.0.0b1/opensuse_leap-42.3-x86_64/requirements_absolute_requirements.txt (line 204)) extras to: ()
	Looking in indexes: http://[fd00:0:0:236::100]:8181/simple
	Collecting setuptools==40.6.3 (from -c http://[fd00:0:0:236::100]:8181/os-releases/19.0.0.0b1/opensuse_leap-42.3-x86_64/requirements_absolute_requirements.txt (line 204))
	  1 location(s) to search for versions of setuptools:
	  * http://[fd00:0:0:236::100]:8181/simple/setuptools/
	  Getting page http://[fd00:0:0:236::100]:8181/simple/setuptools/
	  http://fd00:0:0:236:💯8181 "GET /simple/setuptools/ HTTP/1.1" 200 376
	  Analyzing links from page http://[fd00:0:0:236::100]:8181/simple/setuptools/
	    _package_versions: link = http://%5bfd00:0:0:236::100%5d:8181/packages/opensuse_leap-42.3-x86_64/setuptools/setuptools-40.6.3-py2.py3-none-any.whl#md5=389d3cd088d7afec3a1133b1d8e15df0 (from http://[fd00:0:0:
	236::100]:8181/simple/setuptools/)
	    _link_package_versions: link = http://%5bfd00:0:0:236::100%5d:8181/packages/opensuse_leap-42.3-x86_64/setuptools/setuptools-40.6.3-py2.py3-none-any.whl#md5=389d3cd088d7afec3a1133b1d8e15df0 (from http://[fd00
	:0:0:236::100]:8181/simple/setuptools/)
	    Found link http://%5bfd00:0:0:236::100%5d:8181/packages/opensuse_leap-42.3-x86_64/setuptools/setuptools-40.6.3-py2.py3-none-any.whl#md5=389d3cd088d7afec3a1133b1d8e15df0 (from http://[fd00:0:0:236::100]:8181/
	simple/setuptools/), version: 40.6.3
	  Using version 40.6.3 (newest of versions: 40.6.3)
        Could not install packages due to an EnvironmentError.
        InvalidURL: Failed to parse: %5bfd00:0:0:236::100%5d:8181
```

This change uses the vendored `urllib` library to split the host part
off of the url before URL quoting only the path part.

Fixes: #6285
Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
2019-04-07 05:57:03 -06:00
..
.gitignore Generate our NEWS.rst with towncrier 2017-03-19 12:00:31 -04:00
65a44975-f650-4a38-a7d9-5cfceaebf10d.trivial Replace six.next() with builtin next() 2019-02-24 22:04:16 +01:00
529a7aae-8f0b-4342-b8ef-7f9a85de2a90.trivial Mark 3 tests as network tests 2019-02-13 13:01:04 +01:00
1219.bugfix Prevent subprocess stdout and stderr from cluttering pip's stdout. 2019-03-25 00:21:20 -07:00
4195.bugfix Fix handling of requests exceptions when dependencies are debundled 2019-04-01 14:56:08 +08:00
5060.feature Configuration files may now also be stored under sys.prefix (#6268) 2019-03-07 11:14:56 +05:30
5443.feature Bazaar: Export directly from the remote branch. 2019-01-20 17:46:31 +00:00
5499.feature Include in pip's User-Agent whether it looks like pip is in CI. 2019-02-17 07:16:01 -08:00
5549.feature Allow adding a custom string to pip's User-Agent via an environment variable (#5550) 2019-03-31 02:37:02 -07:00
5749.feature Whether to build wheels is no longer affected by --no-cache-dir. 2019-02-27 20:38:09 -08:00
5889.bugfix Fix #5889: AttributeError: 'NoneType' object has no attribute 'netloc' (#6336) 2019-03-20 16:59:24 +01:00
5892.bugfix improve handling of file URIs 2019-02-24 21:40:25 +01:00
6054.bugfix Fix utils.encoding.auto_decode() LookupError with invalid encodings 2019-03-01 20:16:18 +01:00
6285.bugfix Do not clean base_url 2019-04-07 05:57:03 -06:00
6290.feature Change format_command() to use shlex.quote(). 2019-02-22 02:52:06 -08:00
6295.bugfix Redact the password from the extra index URL in log messages (#6295) 2019-03-01 04:21:45 -08:00
6298.feature Prefix warning and error log messages. 2019-02-27 03:22:26 -08:00
6305.feature Add a news fragment 2019-02-27 17:53:23 +00:00
6312.bugfix Fix a couple spinner edge cases. 2019-03-03 11:05:39 -08:00
6314.feature Error out if installing a pyproject.toml-style (PEP 517) project in editable mode. 2019-03-14 05:49:39 -07:00
6370.bugfix Require --no-use-pep517 if using editable mode with pyproject.toml. 2019-03-31 05:40:08 -07:00
85016e72-3c01-455a-ad4e-e25f676c7381.trivial Consistently catch exceptions in index.py 2019-04-03 11:49:07 -07:00
_template.rst Switch to CalVer and set a release cadence 2018-04-22 14:21:50 -04:00
a1440b03-c0c6-4176-8e00-732517bed87b.trivial Ensure all pip._vendor.* modules are mapped to debundled correspondences (#6113) 2019-03-15 10:26:35 +05:30
b310bc35-7843-42b1-a766-72112705c629.trivial Fix typo (extra parenthesis). (#6316) 2019-03-06 03:43:20 -08:00
e1f5fdfc-64e5-468a-a688-c4a5915aaa35.trivial delete some dead code 2019-02-20 11:50:59 -08:00