Commit Graph

667 Commits

Author SHA1 Message Date
Donald Stufft 627eeecd15
Merge pull request #6319 from pquentin/progress1.5
Update progress to 1.5
2019-04-23 17:06:42 -04: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
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
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
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
Quentin Pradet dbce8216e7
Add news entry for progress 1.5 update 2019-04-01 17:50:49 +04:00
Quentin Pradet c86460d1a4
Update progress to 1.5 2019-04-01 17:50:49 +04:00
Chih-Hsuan Yen e4936da2e1
Fix handling of requests exceptions when dependencies are debundled 2019-04-01 14:56:08 +08:00
Chris Jerdonek 71f506e71e Require --no-use-pep517 if using editable mode with pyproject.toml. 2019-03-31 05:40:08 -07:00
Caleb Martinez ac9010e87c Allow adding a custom string to pip's User-Agent via an environment variable (#5550) 2019-03-31 02:37:02 -07:00
Chris Jerdonek e0505bb152 Prevent subprocess stdout and stderr from cluttering pip's stdout. 2019-03-25 00:21:20 -07:00
Chris Jerdonek 55f7a712aa
Merge pull request #6331 from cjerdonek/issue-6314-editable-with-pep517
Show a nice error if editable mode is attempted with a pyproject.toml source tree
2019-03-23 17:32:22 -07:00
Alex Loosley d245434c02 Fix #5889: AttributeError: 'NoneType' object has no attribute 'netloc' (#6336) 2019-03-20 16:59:24 +01:00
Chih-Hsuan Yen 8ef3283fcf Ensure all pip._vendor.* modules are mapped to debundled correspondences (#6113)
With the original `vendored()` implementation and such an initialization sequence:

```
vendored("packaging")
vendored("packaging.version")
```

In `sys.modules`, `pip._vendor.packaging` is correctly connected to the debundled `packaging`, while `pip._vendor.packaging.version` is not, as the latter is `__import__`ed from the existing `pip._vendor.packaging` module. That results in the same issue as https://github.com/pypa/pip/issues/5429 - `pip._vendor.packaging.version.Version` and `packaging.version.Version` cannot be compared.

This patch attempts to fix this issue by skipping `__import__` from the vendored name. This is safe because `vendored()` is called only when `DEBUNDLED = True`, and vendored libraries are already deleted as per [debundling instructions](https://github.com/pypa/pip/blob/master/src/pip/_vendor/README.rst#debundling).
2019-03-15 10:26:35 +05:30
Chris Jerdonek cc2d299f76 Error out if installing a pyproject.toml-style (PEP 517) project in editable mode. 2019-03-14 05:49:39 -07:00
Chris Jerdonek 1599d65d36
Merge pull request #6312 from cjerdonek/subprocess-tests-and-spinner-fixes
Test call_subprocess more thoroughly; fix spinner edge cases
2019-03-11 23:19:58 -07:00
Steve Dower 293c91ee8a Configuration files may now also be stored under `sys.prefix` (#6268)
* Rename kinds.VENV to kinds.SITE and site_config_files to global_config_files
* Add tests for config file options
* Deprecate --venv in pip config
2019-03-07 11:14:56 +05:30
Juanjo Bazán 61e5970fa4 Fix typo (extra parenthesis). (#6316) 2019-03-06 03:43:20 -08:00
Chris Jerdonek fe793722b1 Fix a couple spinner edge cases. 2019-03-03 11:05:39 -08:00
Miro Hrončok d48475d008 Fix utils.encoding.auto_decode() LookupError with invalid encodings
utils.encoding.auto_decode() was broken when decoding Big Endian BOM
byte-strings on Little Endian or vice versa.

The TestEncoding.test_auto_decode_utf_16_le test was failing on Big Endian
systems, such as Fedora's s390x builders. A similar test, but with BE BOM
test_auto_decode_utf_16_be was added in order to reproduce this on a Little
Endian system (which is much easier to come by).

A regression test was added to check that all listed encodings in
utils.encoding.BOMS are valid.

Fixes https://github.com/pypa/pip/issues/6054
2019-03-01 20:16:18 +01:00
Daniele Esposti 729404d4c5 Redact the password from the extra index URL in log messages (#6295) 2019-03-01 04:21:45 -08:00
Chris Jerdonek 1fdd7e26c5
Merge pull request #6139 from jelmer/bazaar-export-perf
Bazaar: Export directly from the remote branch.
2019-03-01 01:36:02 -08:00
Chris Jerdonek a2ed253788 Whether to build wheels is no longer affected by --no-cache-dir. 2019-02-27 20:38:09 -08:00
Paul Moore 91ab257aa2 Add a news fragment 2019-02-27 17:53:23 +00:00
Chris Jerdonek 8d78ff0fce Prefix warning and error log messages. 2019-02-27 03:22:26 -08:00
Chris Jerdonek 821247dc36
Merge pull request #6273 from cjerdonek/issue-5499-detect-ci-for-user-agent
Fix #5499: Include in pip's User-Agent whether it looks like pip is in CI
2019-02-24 14:24:55 -08:00
Chris Jerdonek b88239918b
Merge pull request #6290 from cjerdonek/add-format-command
Add format_command_args().
2019-02-24 13:23:51 -08:00
Jon Dufresne 5779f55bd4 Replace six.next() with builtin next()
The builtin has been available since Python 2.6. Makes the code slightly
more forward compatible by removing an unnecessary use of six.
2019-02-24 22:04:16 +01:00
Benoit Pierre 61baf5fe80 improve handling of file URIs 2019-02-24 21:40:25 +01:00
Pradyun Gedam d4217f0cc3
Merge pull request #6129 from asottile/dead
delete some dead code
2019-02-24 22:08:16 +05:30
Pradyun Gedam 94a06ead43
Merge pull request #6263 from hroncok/mark_network
Mark 3 tests as network tests
2019-02-24 22:07:49 +05:30
Chris Jerdonek 0f6776388c Change format_command() to use shlex.quote(). 2019-02-22 02:52:06 -08:00
Anthony Sottile cbbc5f44ca delete some dead code
dead code detected via [dead](https://github.com/asottile/dead)
2019-02-20 11:50:59 -08:00
Pradyun Gedam a8de4eb49a
Generate NEWS 2019-02-20 22:44:01 +05:30
Chris Jerdonek 14a6aaabff Include in pip's User-Agent whether it looks like pip is in CI. 2019-02-17 07:16:01 -08:00
Chris Jerdonek ebe2417110 Fix the RECORD filename of installed files appearing in the old RECORD. 2019-02-15 02:33:02 -08:00
Miro Hrončok 75c2201d5a Mark 3 tests as network tests
________________ test_constraints_local_editable_install_pep518 ________________
    ...
    ----------------------------- Captured stdout call -----------------------------
    Script result: python -m pip download setuptools wheel -d /tmp/pytest-of-mockbuild/pytest-0/test_constraints_local_editabl0/data/packages
      return code: 1
    -- stderr: --------------------
      Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb160>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb0b8>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb4e0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb6d8>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb860>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Could not find a version that satisfies the requirement setuptools (from versions: )
    No matching distribution found for setuptools

    _____________ test_pep517_wheels_are_not_confused_with_other_files _____________
    ...
    -- stdout: --------------------
    Processing /tmp/pytest-of-mockbuild/pytest-0/test_pep517_wheels_are_not_con0/data/src/withpyproject
      Installing build dependencies: started
      Installing build dependencies: finished with status 'error'
      Complete output from command /tmp/pytest-of-mockbuild/pytest-0/test_pep517_wheels_are_not_con0/workspace/venv/bin/python /builddir/build/BUILDROOT/python-pip-19.0.2-1.fc30.x86_64/usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pytest-of-mockbuild/pytest-0/test_pep517_wheels_are_not_con0/workspace/tmp/pip-build-env-3un7dqu3/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel:
      Collecting setuptools
        Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5a8898>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9588>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9470>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9278>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9208>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Could not find a version that satisfies the requirement setuptools (from versions: )
      No matching distribution found for setuptools

    ________________________ test_upgrade_argparse_shadowed ________________________
    ...
    ----------------------------- Captured stdout call -----------------------------
    Script result: python -m pip install argparse==1.3
      return code: 1
    -- stderr: --------------------
      Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db240>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db358>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db400>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db518>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6c7710>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Could not find a version that satisfies the requirement argparse==1.3 (from versions: )
    No matching distribution found for argparse==1.3
2019-02-13 13:01:04 +01:00
Chris Jerdonek f048eb7a76
Merge pull request #6253 from cjerdonek/issue-6252
Fix an IndexError crash when a legacy build of a wheel fails.
2019-02-11 07:25:07 -08:00
Chris Jerdonek 6cdecce71d Fix an IndexError crash when a legacy build of a wheel fails. 2019-02-10 13:10:39 -08:00
Pradyun Gedam 43d3121531
Generate NEWS 2019-02-09 06:58:27 +05:30
Pradyun Gedam 7eb79b13d0
AdjacentTempDirectory should fail on unwritable directory (#6215)
Based on #6225
2019-02-08 14:08:27 +05:30
Nick Coghlan 682cff7230 Fix #6163: Default to setuptools.build_meta:__legacy__
The main setuptools PEP 517 backend is intended for
explicit usage in `pyproject.toml`, when the project
authors can ensure that their `setup.py` runs without
that directory being implicitly on `sys.path`.

For implicit usage, setuptools now offers a separate
legacy backend that more closely mimics direct
execution of the `setup.py` script.
2019-02-06 20:57:57 +10:00
Pradyun Gedam 9e0a4d655c
📰 2019-02-05 08:35:01 +05:30
Steve Dower c31f19fcae Fixes #6169: AdjacentTempDirectory should fail on unwritable directory 2019-02-04 11:11:53 -08:00
Steve Dower b5dd2791b7 Make failed uninstalls roll back more reliably and better at avoiding naming conflicts (#6225) 2019-02-03 04:39:06 -08:00
Pradyun Gedam d95b5f2d82
Merge pull request #6219 from cjerdonek/wheel-build-assertion-error
Use the ephemeral cache if we need to when autobuilding
2019-02-02 14:01:37 +05:30
Pradyun Gedam fbc92b305a
Merge pull request #6208 from Julian/python27-warning
Only show Python 2.7 EOL date on CPython.
2019-02-02 13:59:23 +05:30
Chris Jerdonek 6b0892eace Use the ephemeral cache if autobuilding and no cache directory is available. 2019-02-01 02:25:56 -08:00
Julian Berman 77c989f377 Only show Python 2.7 EOL date on CPython.
Other Python implementations, notably PyPy, are not EOL'ing on January
1, 2020.
2019-01-31 08:27:47 -05:00
Chris Jerdonek 351dee9635
Merge pull request #6206 from cjerdonek/better-no-setup-py-error-message
Provide better error message for editable installs attempted with pyproject.toml
2019-01-30 20:19:31 -08:00
Chris Jerdonek d619aba150 Provide a better error message for a pyproject.toml editable install.
The message looks like this:

  File "setup.py" not found. Directory cannot be installed in editable
  mode: <absolute-dir-path>
  (A "pyproject.toml" file was found, but editable mode currently
  requires a setup.py based build.)
2019-01-26 07:00:22 -08:00
Thea Flowers e19686315b Add news 2019-01-25 11:29:57 -08:00
Chris Jerdonek e5f4bbb7dd
Merge pull request #6191 from cjerdonek/long-record-lines
Allow and warn on RECORD lines with more than three elements
2019-01-24 12:22:45 -08:00
Chris Jerdonek 7f25059bf7 Allow and warn on RECORD lines with more than three elements. 2019-01-23 19:24:38 -08:00
Pradyun Gedam a006602b8c
Generate NEWS 2019-01-23 19:26:01 +05:30
Pradyun Gedam ab796656f0
Merge pull request #6171 from pradyunsg/fix/pep-517-building-assertion
Fix build directory assertion for a PEP 517/518 world
2019-01-23 17:46:07 +05:30
Pradyun Gedam 80976e0fcf
Remove NEWS fragments that didn't get deleted 2019-01-23 10:02:04 +05:30
Pradyun Gedam a1cd49abeb
📰 2019-01-23 10:00:50 +05:30
Pradyun Gedam 71945093f7
Generate NEWS for 19.0 2019-01-22 23:52:21 +05:30
Chris Jerdonek 7a9e1f344b Handle BrokenPipeError gracefully. 2019-01-20 15:49:49 -08:00
Jelmer Vernooij eb7d4b2178
Bazaar: Export directly from the remote branch.
This significantly improves performance, since it allows the remote
server to directly stream a tarball that just contains the requested
revision rather than the full repository contents.
2019-01-20 17:46:31 +00:00
Pradyun Gedam c90a3ff003
Update packaging to 19.0 2019-01-20 16:52:52 +05:30
Ami Fischman 2a90808387 Prefix user_log (--log) entries with timestamp (#6142)
Why? Eases post-facto analysis of time spent in different phases of pip operation.

Historical note:
767d11e49c (diff-b670e3b192038c9ffe810c1a12c0c51fL219)
made it so that pip invocations emit zero timestamp information to the log
file. Prior to that each pip invocation's start time was written out (search
that commit's diff for [strftime]).

Result: https://gist.github.com/fischman/f570886219de5c64a3b695300195c70a

Resolves https://github.com/pypa/pip/issues/6141
2019-01-20 03:02:22 -08:00
Donald Stufft 5074327bcb
Merge pull request #6147 from dstufft/warn-on-27
Warn on Python 2.7
2019-01-19 21:53:09 -05:00
Donald Stufft 71dbc9c3d5 Warn on Python 2.7 2019-01-19 14:54:07 -05:00
Pradyun Gedam 785ecf476a
Update requests to 2.21.0 2019-01-18 12:33:32 +05:30
Pradyun Gedam 45e356b1fa
Update pkg_resources to 40.6.3 (via setuptools) 2019-01-18 12:33:22 +05:30
Pradyun Gedam e772c0c9b4
Update pytoml to 0.1.20 2019-01-18 12:32:10 +05:30
Pradyun Gedam 5f2a936859
Update pep517 to 0.5.0 2019-01-18 12:31:14 +05:30
Pradyun Gedam f0de122e3d
Update idna to 2.8 2019-01-18 12:30:36 +05:30
Pradyun Gedam c42f16d707
Update distlib to 0.2.8 2019-01-18 12:29:43 +05:30
Pradyun Gedam 0071af5c8e
Update six to 1.12.0 2019-01-18 12:29:17 +05:30
Pradyun Gedam 7591a54b89
Update pyparsing to 2.3.1 2019-01-18 12:28:19 +05:30
Pradyun Gedam a90c04eee8
Update certifi to 2018.11.29 2019-01-18 12:27:32 +05:30
Pradyun Gedam 606c0edd63
Update urllib3 to 1.24.1 2019-01-18 12:26:27 +05:30
Pradyun Gedam e35524ae5d
Update colorama to 0.4.1 2019-01-18 12:24:18 +05:30
Xavier Fernandez b268c67f84 Deprecate Python 3.4 2019-01-12 22:08:24 +01:00
Xavier Fernandez a09913673f Redact index password from logs
Closes #6124
2019-01-10 10:47:19 +01:00
Xavier Fernandez 477147091e
Merge pull request #6116 from peterlisak/bug-fix-outdated-not-required
pip list --not-required --outdated should list only outdated packages…
2019-01-09 22:15:53 +01:00
Pradyun Gedam 8ff8e1fa9e
Merge pull request #6060 from pradyunsg/remove/dependency-links
Remove dependency links support
2019-01-07 08:49:13 +05:30
Chris Jerdonek e155b4778a
Merge pull request #6095 from cjerdonek/freeze-repo-with-no-remote
Address #4759: change freeze to support editable Git repos with no remote
2019-01-06 14:20:22 -08:00
Peter Lisák 4f35981085 pip list --not-required --outdated should list only outdated packages that are not dependencies of installed packages 2019-01-06 10:05:44 +01:00
Chih-Hsuan Yen 65270e53f8
Add a note in Vendoring Policies to remind of `vendored()` entries
To avoid future breakages like #4660, #5418 or #6056
2019-01-05 22:14:48 +08:00
Pradyun Gedam f6f4eb7808
📰 2019-01-02 17:27:34 +05:30
Chris Jerdonek 526ac40e63 Fix freeze to handle Git repos with no remote. 2018-12-21 01:10:06 -08:00
Paul Moore c5dc6aa784
Merge pull request #6029 from zooba/issue-3055
Fixes #3055 Uninstall causes paths to exceed MAX_PATH limit
2018-12-06 09:23:29 +00:00
Albert-Guan 465261a828 Document that empty environment variables are not treated as false (#5953) 2018-11-24 19:30:41 +05:30
Paul Moore 087d8254a7
Merge pull request #5410 from wtolson/manylinux2010
Manylinux2010
2018-11-22 11:07:49 +00:00
Steve Dower 508f9b11e4 Adds NEWS file 2018-11-21 13:17:47 -08:00
Donald Stufft 51eb885e78 Add a release task to upgrade CPython's bundled pip 2018-11-19 07:39:10 -05:00
Paul Moore 3a77bd667c
Merge pull request #5743 from pfmoore/pep517
PEP 517 implementation
2018-11-15 09:32:17 +00:00
Pradyun Gedam 507b90e117
Merge pull request #5949 from kynan/extend-docs
Add instructions for running pip from source to docs
2018-11-13 21:21:43 +05:30
Jason R. Coombs a66c696b99 Add news entry. Ref #6008. 2018-11-12 11:14:36 -05:00
Julian Gethmann f92ac73ccd Fix pypa#4733 by changing the failing example
This example did not make sense unless it was possible to install specify a
version of a package one installs referencing by the path (here: `.`).
A new example for the local installation with an extra has been added
instead.
2018-11-12 17:08:45 +01:00
Paul Moore 4ca38e0c38 Merge with master 2018-11-11 13:49:35 +00:00
Pradyun Gedam 4c04e2275a
Update 3662.bugfix 2018-11-09 12:23:51 +05:30
Chris Jerdonek fc1b1e4cf0
Merge pull request #5884 from cjerdonek/pip-no-cache-dir-var
Make PIP_NO_CACHE_DIR behave as it reads, and not crash pip
2018-11-08 14:19:48 -08:00
Chris Jerdonek b94d719f39 Make PIP_NO_CACHE_DIR disable the cache also if given a "true" value. 2018-11-08 03:43:56 -08:00
Pradyun Gedam 28cfd7d0b7
Merge pull request #5923 from psinghsodhi/stopPrintSt
Don't print stacktrace due to invalid req
2018-11-08 13:01:56 +05:30
Xavier Fernandez 38298779a1
Merge pull request #5986 from Albert-Guan/ISSUE5984
Issue5984
2018-11-07 10:50:51 +01:00
Adam Tse aa42f14ee3 Adding type annotations to pip._internal.utils.glibc (#5956)
* Added type annotations

* to satsify flake8 E402

* Update src/pip/_internal/utils/glibc.py

Co-Authored-By: atse <atse@users.noreply.github.com>
2018-11-06 15:07:18 +05:30
Pradyun Gedam 63f92ea5b9
Merge pull request #5945 from cytolentino/compat-typing
Add mypy annotations to pip._internal.compat
2018-11-06 15:03:49 +05:30
Pradyun Gedam b72a5daaa4
Merge pull request #5981 from theacodes/fix-my-name
Fix @theacodes' name in AUTHORS.txt
2018-11-06 13:55:21 +05:30
Chris Jerdonek 3803ce3cb0
Merge pull request #5905 from cjerdonek/issue-5031-freeze-non-vcs-editable
Address #5031: freeze non-vcs editable installs as editable
2018-11-05 14:21:42 -08:00
Pradyun Gedam 8882f420ad
Delete 5984.bugfix 2018-11-06 00:21:52 +05:30
cytolentino ecf90d4792 Add typing to compat.py 2018-11-05 12:12:03 +00:00
albertg e5756c823e add news fragment content 2018-11-04 16:22:34 -05:00
albertg f5d79471c3 add news fragment 2018-11-04 16:14:28 -05:00
Thea Flowers 31453e3c1b Fix @theacode's name in AUTHORS.txt 2018-11-02 10:58:14 -07:00
Pradyun Gedam 35701ea3cd
Merge pull request #5930 from cytolentino/basecommand-typing
Add mypy annotations to base_command.py
2018-10-31 01:57:46 +05:30
Pradyun Gedam afe98f3901
Merge pull request #5939 from cytolentino/internal-cache-typing
Add mypy annotations to pip._internal.cache
2018-10-31 01:51:42 +05:30
Pradyun Gedam d95bc267fd
Merge pull request #5960 from cytolentino/cmdoptions-typing
Add mypy annotations to pip._internal.cli.cmdoptions
2018-10-31 01:38:35 +05:30
Pradyun Gedam 5005769b99
Merge pull request #5932 from petr-tik/no4748-add-type-hints-to-internals
Added type hints to internals/utils
2018-10-31 01:30:50 +05:30
Pradyun Gedam 2ed581c79f
Merge pull request #5968 from cjerdonek/dry-up-parse-credentials
Use split_auth_from_netloc() inside MultiDomainBasicAuth
2018-10-30 18:45:35 +00:00
cytolentino f08b34887b Add typing to cache.py 2018-10-30 12:23:13 +00:00
Riccardo Magliocchetti 376abc0655 remove last user of SafeConfigParser
Fixes #5059
2018-10-30 12:11:04 +01:00
Pradyun Gedam 169cd10b3f
Merge pull request #5962 from elainechan/master
Adds hyperlinks to User IRC and Dev IRC in README.
2018-10-30 10:47:03 +00:00
Pradyun Gedam ca848a5068
Merge pull request #5958 from pradyunsg/docs/vendoring-info-from-docs
Include the Vendoring policy in the docs
2018-10-30 10:45:45 +00:00
Xavier Fernandez 7a3cbeed11
Merge pull request #5213 from hroncok/licenses
Add licenses for 3rd party libraries
2018-10-30 09:50:39 +01:00
Chris Jerdonek 5c93250fa9
Merge pull request #5875 from uranusjr/egg-info-canonical
Rewrite egg_info_matches with canonicalize_name
2018-10-30 01:30:40 -07:00
Chris Jerdonek 8166eb6c32 Percent-decode special characters in SVN URL credentials. 2018-10-29 22:12:51 -07:00
Paul Moore ab3e21635a Add a news file 2018-10-29 23:32:13 +01:00
Yuan Jing Vincent Yan 4ccea7e67a Improve documentation in misc.py 2018-10-29 22:40:16 +01:00
Miro Hrončok eb8ddba8d6 Add automation for fetching licenses of 3rd party libraries
See https://github.com/pypa/pipenv/issues/1961
2018-10-29 22:02:07 +01:00
Xavier Fernandez bc5ac33a4d
Merge pull request #5933 from AceGentile/fix_issue_5888
remove egg version from pip install command reference
2018-10-29 15:55:49 +01:00
elainechan 138059e01e Changes news item to .trivial. 2018-10-28 15:50:57 -04:00
elainechan a9bd143ab1 Adds news entry for issue #5961 pull request. 2018-10-28 15:22:50 -04:00
cytolentino 0dbdb6250b Add typing to cmdoptions.py 2018-10-28 16:44:00 +00:00
Adam Tse 9874c46d38 Replaced comment-matching regex with an equivalent to works in Jython too. 2018-10-28 14:59:54 +00:00
Pradyun Gedam cf9785708b
📰 2018-10-28 14:55:58 +00:00
Florian Rathgeber 6e9b0047b3 Add news entry 2018-10-28 14:20:02 +00:00
Pradyun Gedam b47b2fa8e6
Merge pull request #5841 from benoit-pierre/fix_python_src/pip
fix support for invoking pip using `python src/pip ...`
2018-10-28 12:35:53 +00:00
petr-tik 55f6787c04 Added type hints
Found a potential bug i.e. missing return statement in check_path_owner. If
while loop falls through without returning,
return a defensive False

Added a trivial file as per the contributor guidelines

Make linter happy - ignore "unused" import
2018-10-27 15:37:29 +01:00
Pradyun Gedam 2d2350696a
Update and rename 5888.bugfix to 5888.doc
Changed to mention that it removes the reference to the removed reference.
2018-10-27 15:33:09 +01:00
Chris Jerdonek afdfb7b210 Include package name in a freeze warning if package is not installed. 2018-10-27 06:50:15 -07:00
cytolentino 12a2334429 Add mypy annotations to base_command.py 2018-10-27 13:28:06 +01:00
AceGentile 69037caa0c remove egg version from pip install command reference
fix #5888
2018-10-27 12:51:57 +02:00
Prabhjyotsing Surjit Singh Sodhi e34b19b02a Don't print stacktrace due to invalid req 2018-10-26 12:03:31 -04:00
lakshmanaram c5331dac51 adding trivial file 2018-10-26 16:31:14 +01:00
László Kiss Kollár 6bb09a11ad Add news entry 2018-10-26 13:33:22 +01:00
Chris Jerdonek 951e0cba51
Fix #5868: TypeError in move_wheel_files(). (#5883) 2018-10-24 09:19:58 -07:00
Chris Jerdonek ece4866086 DRY up the test code to create a module with a main() function. 2018-10-23 00:06:06 -07:00
Xavier Fernandez 3b8c076c1f
Merge pull request #5842 from takluyver/i5839
Don't crash on invalid requirements in installed packages
2018-10-22 17:22:04 +02:00
Chris Jerdonek 20ab0b8b75 Address #5031: freeze editable, non-VCS installs as editable. 2018-10-22 02:03:42 -07:00