1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

7131 commits

Author SHA1 Message Date
Masaki
cf1bab093d Refactor local_version_is_older conditional
Exit conditional sooner if not local_version_is_older for faster execution

Delete whitespace
2019-05-06 16:34:50 -04:00
Masaki
8738ef401e Refactor outdated for readability
Moved local and remote pip version check conditional to a variable
2019-05-06 15:23:07 -04:00
Chris Jerdonek
7e109086b5 Remove unneeded expect_error=True in some vcs tests. 2019-05-06 14:55:16 -04:00
Chris Jerdonek
e0e07bf046 Remove unneeded expect_stderr=True in some vcs tests. 2019-05-06 14:55:16 -04:00
Chris Jerdonek
bef5b2e6f3 Improve PipTestEnvironment to check for logging errors. 2019-05-06 14:55:16 -04:00
Chris Jerdonek
dc1217713e Fix freeze log debug message. 2019-05-06 14:55:16 -04:00
Donald Stufft
58c93acd4f
Merge pull request #6465 from dstufft/release/19.1.1
Release/19.1.1
2019-05-06 10:51:34 -04:00
Donald Stufft
ae914c00ce Update NEWS.rst 2019-05-06 10:08:58 -04:00
Donald Stufft
bc1f9d92dd Bump version for release 2019-05-06 10:08:24 -04:00
Donald Stufft
808bb17964 Update AUTHORS.txt 2019-05-06 10:07:27 -04:00
Pradyun Gedam
cd403c6114
Merge pull request #6461 from ekristina/master
Improve code reuse in TestSafeFileCache
2019-05-05 06:25:47 -04:00
ekristina
2e5b4461f4 Improve code reuse in TestSafeFileCache
Use a fixture creating a temporary directory for cache.
2019-05-04 17:11:44 -04:00
Pradyun Gedam
f6e525aa87
Update test_vcs_mercurial.py 2019-05-04 16:17:09 -04:00
Chris Jerdonek
f8732ac06d
Merge pull request #6449 from cjerdonek/restore-pyproject-toml-19.0.3
Restore pyproject.toml handling to its version 19.0.3 state
2019-04-29 13:33:33 -07:00
Chris Jerdonek
44643b8e28 Restore pyproject.toml handling to its version 19.0.3 state. 2019-04-26 20:29:44 -07:00
Chris Jerdonek
285a23fb8f Revert "Refactor out read_pyproject_toml() and resolve_pyproject_toml()."
This reverts commit f66c1f7639.
2019-04-26 20:21:04 -07:00
Chris Jerdonek
fb2533a945 Revert "Error out if installing a pyproject.toml-style (PEP 517) project in editable mode."
This reverts commit cc2d299f76.
2019-04-26 20:19:24 -07:00
Chris Jerdonek
24688ee8e8 Revert "Require --no-use-pep517 if using editable mode with pyproject.toml."
This reverts commit 71f506e71e.
2019-04-26 20:19:05 -07:00
Chris Jerdonek
0453f79b9e Revert "Allow --no-use-pep517 to be used with editable mode in more cases."
This reverts commit f069769948.
2019-04-26 20:18:43 -07:00
Chris Jerdonek
1f27d9659e Revert "Fix "build_system value" to "build-system table" in pyproject.toml messages."
This reverts commit ee80bf98ff.
2019-04-26 20:18:27 -07:00
Chris Jerdonek
8d0b73fc5b
Merge pull request #6445 from cjerdonek/tweak-pyproject-messages
Fix "build_system value" to "build-system table" in pyproject.toml messages
2019-04-25 15:43:39 -07:00
Chris Jerdonek
60d3f11961
Merge pull request #6440 from nicolasbock/index_with_git
Protect `@` as safe character when cleaning URLs
2019-04-25 13:28:48 -07:00
Chris Jerdonek
ee80bf98ff Fix "build_system value" to "build-system table" in pyproject.toml messages. 2019-04-25 13:12:27 -07:00
Nicolas Bock
265b4e7e65
Protect @ as safe character when cleaning URLs
Remote URLs that contain a link to a git repository and a tag
reference will have the `@` character converted into `%40`. This is
incorrect.

Fixes: #6437

Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
2019-04-25 06:26:04 -06:00
Paul Moore
9861dc7f4b
Merge pull request #6442 from cjerdonek/issue-6434-pyproject-editable
Permit --no-use-pep517 with editable mode in more cases.
2019-04-25 11:42:21 +01:00
Chris Jerdonek
f069769948 Allow --no-use-pep517 to be used with editable mode in more cases. 2019-04-25 01:42:11 -07:00
Donald Stufft
9816d17cca
Merge pull request #6431 from dstufft/release
Release
2019-04-23 23:29:48 -04:00
Donald Stufft
21b759315f Don't use editable mode as it is not supported 2019-04-23 22:42:30 -04:00
Donald Stufft
dbf0feba8f Reopen for development 2019-04-23 22:35:01 -04:00
Donald Stufft
307410c24b Bump to 19.1 2019-04-23 22:28:44 -04:00
Donald Stufft
02d85d28e1
Merge pull request #6429 from dstufft/update
Upgrade vendored dependencies
2019-04-23 22:25:37 -04:00
Donald Stufft
5db1344c23 Upgrade vendored dependencies 2019-04-23 17:54:36 -04:00
Donald Stufft
627eeecd15
Merge pull request #6319 from pquentin/progress1.5
Update progress to 1.5
2019-04-23 17:06:42 -04:00
Chris Jerdonek
dddd28b8de
Add CandidateEvaluator class to encapsulate sorting. (#6424) 2019-04-22 03:40:35 -07:00
Albert Tugushev
7130b1d0e0 Fix option name for smart quotes in sphinxdoc conf (#6422)
Also configure the smartquotes_action to exclude dashes from transformation.
See https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-smartquotes
2019-04-21 09:51:42 -07:00
Tzu-ping Chung
1ef8857b4d Finder found candidates cleanup (#6415) 2019-04-20 01:22:46 -07:00
Andy Freeland
bb14ff42b0 Fix NameError when handling InvalidRequirement in install_req_from_req_string (#6419)
Previously, an InvalidRequirement would raise a NameError while trying
to raise an InstallationError because `req` was not defined.

Discovered while working on #6402.
2019-04-19 02:37:33 -07:00
johnthagen
c8e9caa8a7 Add Subversion.get_vcs_version method (#6390)
Add Subversion.get_vcs_version method to return the version of the currently installed Subversion client.
2019-04-17 00:34:19 -07:00
Tzu-ping Chung
14cb4f4fb6 Isolate, reuse PackageFinder best candidate logic (#5971)
Split out how PackageFinder finds the best candidate, and reuse it in the
self version check, to avoid the latter duplicating (and incorrectly
implementing) the same logic.
2019-04-16 16:46:25 -07:00
Chris Jerdonek
32c11ee2c3 Respect --global-option and --install-option for VCS installs. 2019-04-08 02:03:17 -07:00
Chris Jerdonek
54b6a91405
Merge pull request #6245 from nicolasbock/ipv6_uri
Fix the URL quoting in _clean_link() for IPv6 addresses
2019-04-08 00:09:56 -07:00
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
Chris Jerdonek
78744e8071
Merge pull request #6370 from cjerdonek/editable-and-pep-517-optional
Fix editable-mode logic when pyproject.toml present
2019-04-06 15:31:53 -07:00
Miro Hrončok
d4264dc3b2 Pytest: Use get_closest_marker
See https://github.com/pytest-dev/pytest/pull/4564
2019-04-04 13:07:49 +02:00
Pradyun Gedam
d35c547129
Merge pull request #6382 from cjerdonek/pin-pytest-xdist
Pin pytest-xdist to < 1.28.0
2019-04-04 12:29:51 +05:30
Chris Jerdonek
5bc80d6583 Pin pytest-xdist to < 1.28.0 in tests-requirements.txt. 2019-04-03 18:26:45 -07:00
Chris Jerdonek
20e42271f2
Merge pull request #6367 from cboylan/vendored-exceptions
Consistently catch exceptions in index.py
2019-04-03 14:39:29 -07:00
Chris Jerdonek
68bc0e0c53
Merge pull request #6339 from cjerdonek/vcs-subprocess-logging
Fix #1219: Prevent subprocess stdout and stderr from cluttering pip's stdout.
2019-04-03 14:36:44 -07:00
Clark Boylan
63ccc286a0 Consistently catch exceptions in index.py
In index.py we were catching requests.exceptions.RetryError and
requests.exceptions.SSLError but then also caught requests.HTTPError.
For consistency catch all of these requests exceptions using the
requests.exceptions path.
2019-04-03 11:49:07 -07:00
Chris Jerdonek
5af0bc31cf
Merge pull request #6373 from yan12125/fix-requests-exceptions-debundled
Fix handling of requests exceptions when dependencies are debundled
2019-04-02 20:21:37 -07:00