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

987 commits

Author SHA1 Message Date
Albert Tugushev 8c66447bad Use python-version instead of deprecated version
It's deprecated since https://github.com/actions/setup-python/commit/6f6fcee.
2019-10-12 14:25:40 +02:00
Sebastian Jordan 483daaba43 Add trailing newline in news/6606.bugfix 2019-10-12 13:19:20 +02:00
Sebastian Jordan e3089c5bff Merge remote-tracking branch 'origin/master' into issue-6222 2019-10-11 19:23:45 +02:00
anatoly techtonik 4f7da85e2c Rename news item to .trivial per review 2019-10-11 18:11:05 +03:00
Christopher Hunt f3f396fd79
Merge pull request #7102 from mayeut/manylinux2014
Add manylinux2014 support
2019-10-10 18:07:51 -04:00
Christopher Hunt 209e571c93
Merge pull request #7171 from Pachwenko/update-global-install-test
update global install option test
2019-10-10 17:37:53 -04:00
Pachwenko f84d9c810b
update global install option test 2019-10-10 07:56:38 -05:00
Xavier Fernandez d9e27f0030 Bump vendored libraries 2019-10-10 12:33:38 +02:00
Xavier Fernandez 0cb85d5734 Bump contextlib2 to latest version 0.6.0 2019-10-10 00:06:55 +02:00
Pradyun Gedam af3062af41 Remove the deprecated pip config --venv option (#7163) 2019-10-09 23:28:00 +02:00
mayeut 62d84a5aae
Add manylinux2014 support
Per PEP 599:
https://www.python.org/dev/peps/pep-0599/
2019-10-09 22:09:28 +02:00
Thomas Kluyver f2b1882b6a Add news file 2019-10-09 08:46:33 +01:00
tbeswick 1028e30782 Fixed lint error in news. 2019-10-09 10:12:38 +13:00
tbeswick 5ad4291b06 Added newline to end of news file. 2019-10-09 09:40:59 +13:00
TonyBeswick bcbaee7aa5
Merge branch 'master' into master 2019-10-08 18:39:08 +13:00
Pradyun Gedam df624d05df
Delete 1234.trival 2019-10-07 21:55:05 +05:30
Pradyun Gedam d82874c417
Revert "Optimize upgrade of already-satisfied pinned requirement" 2019-10-07 21:29:40 +05:30
Pradyun Gedam f718a8f34c
Optimize upgrade of already-satisfied pinned requirement (#7132) 2019-10-07 11:17:31 +05:30
Pradyun Gedam 1b542bd6c9
Fix backticks in a NEWS fragment 2019-10-06 22:34:42 +05:30
Christopher Hunt 5a997b7509
Merge pull request #7065 from chrahunt/pr-5955
Explicit support for hg+file
2019-10-06 09:39:42 -04:00
Chris Hunt 0548d207b6 Add NEWS file for new contextlib2 dependency 2019-10-05 22:16:22 -04:00
Anders Kaseorg 0492e80816 Optimize upgrade of already-satisfied pinned requirement
Example: after installing six 1.12.0, `pip install -Uv six==1.12.0`
now returns immediately, instead of going to the index to check for a
version that can’t possibly be considered better.

This optimization is most significant when upgrading via a
requirements file with many pinned versions and some non-pinned
versions.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-10-04 20:14:56 -07:00
Sebastian Jordan 6a2d2dbb81 Merge branch 'master' of https://github.com/pypa/pip into issue-6222 2019-10-03 08:36:19 +02:00
Patrik Kopkan 211fd5575f add newline 2019-10-02 19:13:53 +02:00
Emil Burzo 004103c0f5 fix code quality issues 2019-10-02 08:33:41 +03:00
Emil Burzo be084e0fde add news entries 2019-10-01 09:28:58 +03:00
Pradyun Gedam ff041cc5b0
Merge branch 'master' into master 2019-09-30 21:33:34 +05:30
John Paton 648f377351 Remove repeated word 2019-09-30 09:56:44 +02:00
John Paton 616a9b4b4e Add news snippet 2019-09-30 09:56:44 +02:00
Christopher Hunt 530fa337a9
Merge pull request #7095 from Nta1e/b7090
Move PipXmlrpcTransport to network.xmlrpc
2019-09-28 19:57:01 -04:00
Christopher Hunt d27488d288
Merge pull request #7094 from Nta1e/b7091
Remove DependencyWarning warning from pip._internal
2019-09-28 09:16:24 -04:00
NtaleGrey 88e9ce6e27 implement feedback 2019-09-28 15:51:52 +03:00
Pradyun Gedam efd1843af2
Merge pull request #7098 from atugushev/remove-unused-assignment
Remove unused assignment
2019-09-28 08:04:38 +05:30
Albert Tugushev c6e9a9eab4 Remove unused assignment 2019-09-28 01:46:04 +03:00
Albert Tugushev 1a3b84060d Add functional tests for 'yanked' files 2019-09-28 01:07:48 +03:00
NtaleGrey eb93a21b8b rename news file 2019-09-27 20:18:08 +03:00
NtaleGrey cf5ce5f16f Move PipXmlrpcTransport from pip._internal.download to pip._internal.network.xmlrpc 2019-09-27 18:14:35 +03:00
NtaleGrey c9bc36bdae format code 2019-09-27 14:46:53 +03:00
NtaleGrey 76d4cce5a5 add news file 2019-09-27 14:40:46 +03:00
Christopher Hunt ea923d96a9
Merge pull request #6313 from wilsonfv/master
Fix #3907 tar file placed outside of target location
2019-09-26 19:30:53 -04:00
Patrik Kopkan 9a2181a087 Add new option: pip wheel --save-wheel-names 2019-09-25 13:39:34 +02:00
Sebastian Jordan dd842fd71e Add news entry 2019-09-25 06:54:00 +02:00
Chris Hunt 8c94b70354 Address review comments 2019-09-24 22:43:06 -04:00
Wilson Mo 08a0eeb90c Fix #3907 tar file placed outside of target location 2019-09-24 22:25:18 -04:00
Pradyun Gedam c47e1b6e5d
Enable rst-backticks for ReST files and NEWS fragments 2019-09-24 18:03:22 +05:30
Pradyun Gedam 6f8c29aa77
Enable end-of-file-fixer 2019-09-24 18:03:22 +05:30
tbeswick b95a16e310 Added news 2019-09-24 16:50:05 +12:00
Chris Hunt ea91012bee Update auto-svn+ removal wording 2019-09-22 17:37:48 -04:00
atse 30df34de98 Update 4358.bugfix 2019-09-22 11:04:23 -04:00
Adam Tse 3f98ee4250 Explicit support and tests for hg+file scheme for pip install. 2019-09-22 11:04:23 -04:00
Christopher Hunt 67856e3d44
Merge pull request #7027 from chrahunt/maint/validate-news
Validate NEWS files with rstcheck.
2019-09-20 12:14:50 -04:00
Pradyun Gedam 8d6e3204de
Ignore "require_virtualenv" in pip config (#6991) 2019-09-19 18:22:27 +05:30
Christopher Hunt 79ec3def25
Merge pull request #7037 from chrahunt/refactor/clean-up-unpack
Remove svn handling in unpacking.unpack_file
2019-09-19 08:35:12 -04:00
Chris Hunt b6f7470185 Add news 2019-09-19 01:47:29 -04:00
Christopher Hunt b0a6428d3b
Merge pull request #7023 from chrahunt/maint/remove-lockfile-dependency
Remove Lockfile
2019-09-19 00:23:57 -04:00
Christopher Hunt 47293435bb
Merge pull request #6976 from atugushev/fix-issue-4910
Fix rmtree_errorhandler to skip nonexistent dirs
2019-09-17 22:40:46 -04:00
Christopher Hunt b1bc41b2c3
Merge pull request #6914 from sbidoul/pip6892-sbi
uninstall: remove symlinks created by flit install --symlink
2019-09-17 21:14:28 -04:00
Chris Hunt 459c1c7e40 Validate NEWS files with rstcheck. 2019-09-16 20:52:46 -04:00
Christopher Hunt 82c2dd40eb
Merge pull request #6203 from vinicyusmacedo/fix-pep-508
Fix is_url from splitting the scheme incorrectly when using PEP 440's direct references
2019-09-16 09:52:40 -04:00
Albert Tugushev e3a6ba6396 Use normal fixture instead of yield_fixture
It's been deprecated since pytest>=2.10.
See https://docs.pytest.org/en/latest/historical-notes.html#pytest-yield-fixture-decorator
2019-09-16 02:55:47 +03:00
Chris Hunt 51d7a97385 Remove Lockfile. 2019-09-15 17:09:44 -04:00
Pradyun Gedam ab250e3e09
Merge pull request #6879 from chrahunt/bugfix/dont-lock-selfcheck
Don't use lockfile to protect updates to selfcheck file.
2019-09-15 19:02:46 +05:30
Pradyun Gedam 5fa906bdb5
Merge pull request #6952 from webknjaz/features/integrate-github-actions-ci-cd--linters
Add initial GH actions linter workflow
2019-09-15 11:51:29 +05:30
Pradyun Gedam e0239735a3
Refactor wheel.move_wheel_files to use updated distlib (#6763) 2019-09-09 00:18:15 +05:30
Chris Hunt fc45975c84 Add news files. 2019-09-08 09:29:48 -04:00
Chris Hunt af33759cb5 Add NEWS file. 2019-09-08 09:24:20 -04:00
Pradyun Gedam 03117a415d
📰 2019-09-07 17:05:30 +05:30
Pradyun Gedam a39e881479
Fix pip.exe upgrade pip fails on Windows
Merge pull request #6928 from atugushev/fix-issue-6924
2019-09-07 14:14:29 +05:30
Albert Tugushev a5840a9b8a Address review comments
Update news entry.
2019-09-06 11:00:17 +03:00
Albert Tugushev a8427d5553 Run parametrized command in test_pep518_forkbombs
Fixes copy-paste issue in `test_pep518_forkbombs`.
2019-09-06 09:55:49 +02:00
Pradyun Gedam 0f3a1c0b6b
Abort when --no-binary/--only-binary receives bad arg (#5847)
Merge pull request #5847 from keanemind/master
2019-09-05 13:42:46 +05:30
Pradyun Gedam c23c52da4f
Merge pull request #6325 from hugovk/pip-wheel-metadata-in-tempdir
Use a temp dir for pip-wheel-metadata
2019-09-05 13:28:46 +05:30
Pradyun Gedam 33b404dfdc
Reword a NEWS entry 2019-09-05 09:15:51 +05:30
Albert Tugushev 85a5ae12d2 Fix rmtree_errorhandler to skip non-existing dirs 2019-09-05 00:25:35 +03:00
Albert Tugushev 7e9f81244c Remove contradictory debug log 2019-09-04 10:27:15 +02:00
abs51295 ea2a889ce3 Canonicalize FrozenRequirement name for correct comparison
- Fixes #5716
2019-09-02 13:45:47 +05:30
Sviatoslav Sydorenko 9f2ef615be
Add a news fragment 2019-09-01 21:17:09 +02:00
ofrinevo fa4fc6a6d4 Add news file 2019-08-31 21:52:04 +03:00
Albert Tugushev a9d23fadbb Use pytest.param to skip certain parametrizations (#6944) 2019-08-31 17:13:44 +02:00
Albert Tugushev 3c9770d9b2 Redact single-part login credentials from URLs (#6921) 2019-08-26 15:50:07 -07:00
Albert Tugushev d8b6296227 Fix pip.exe upgrade pip fails on Windows
It fails if it already satisfies the requirement, when
pip has been modifying via `pip.exe install ...` command.
2019-08-26 16:05:48 +03:00
Frost Ming 8ac22141c2 Support including port part in trusted-host (#6909) 2019-08-25 16:26:01 -07:00
Pradyun Gedam d2b7082932
Fix bypassed pip upgrade warning on Windows
Merge pull request #6864 from atugushev/fix-issue-6841
2019-08-25 19:08:28 +05:30
Stéphane Bidoul (ACSONE) 885fdc3754 Correctly uninstall symlinks 2019-08-24 23:04:47 +02:00
Pradyun Gedam 9b9d7b7d5d
Rename 6637.feature to 6637.doc (#6907) 2019-08-23 08:33:44 +05:30
A_Rog 70027b2f50 Address #6876: Make command output go through a single function (#6881) 2019-08-22 17:29:22 -07:00
Pradyun Gedam 2b572d5e85
Rename 6637.feature to 6637.doc 2019-08-22 23:02:13 +05:30
Pradyun Gedam 9b82fcc9d8
Merge branch 'master' into architecture 2019-08-22 21:07:58 +05:30
Chris Jerdonek 7783c47131
Hide security-sensitive strings in VCS command log messages (#6890) 2019-08-21 03:22:57 -07:00
Christopher Hunt 5e97de4773 Ignore errors copying socket files for source installs (in Python 3). (#6844) 2019-08-21 02:19:02 -07:00
Pradyun Gedam 58a66066cc
Merge pull request #6882 from pradyunsg/update-test-to-py36
Update marker test to use Python 3.6 instead of 2.6
2019-08-21 06:53:47 +05:30
Chris Jerdonek 97d9c6d156
Merge pull request #6880 from GadgetSteve/master
#6858: Changes to report any missing packages in pip show
2019-08-18 12:24:38 -07:00
Steve Barnes 3198ba6185 Change pip show to report missing packages. 2019-08-18 01:27:14 -07:00
Paul Moore 54eedbd7b4
Merge pull request #6874 from rdb/patch-1
Don't append "m" ABI flag in Python 3.8
2019-08-17 09:47:46 +01:00
rdb 48109b1bb5 Don't append 'm' ABI flag in Python 3.8 2019-08-16 08:53:20 +02:00
Stéphane Bidoul (ACSONE) 2e1dfbef76 consolidate vcs link detection 2019-08-16 08:14:33 +02:00
Pradyun Gedam 5d7cc475d4
📰 2019-08-15 23:03:35 +09:00
Chris Jerdonek bbae384d5b Make some final tweaks to the PR. 2019-08-14 22:13:26 -07:00
Frost Ming 3f9136f885 Make trusted host w/o port work for HTTPS 2019-08-14 22:13:18 -07:00
Stéphane Bidoul (ACSONE) ea517a2bb9 clarify WheelBuilder.build() a bit 2019-08-14 11:24:26 +02:00
Albert Tugushev 9a317d3b20 Fix bypassed pip upgrade warning on Windows 2019-08-14 10:11:16 +03:00
Sumana Harihareswara 4b8ecd6f2d Add architecture overview. 2019-08-13 19:21:01 -04:00
Vinicyus Macedo 5b93c09199 Added test to fail pep508 2019-08-12 14:32:03 -03:00
Paul Moore d44938c56f
Merge pull request #6517 from blurstudio/uninstall-support-unc
Add unit tests for easy-install.pth uninstall
2019-08-07 08:46:22 +01:00
Chris Hunt df36ddfb0d Merge branch 'master' into maint/merge-5924 2019-08-06 23:42:04 -04:00
Paul Moore e4c32b9917
Merge pull request #6770 from omry/master
exclude '.tox', '.nox' from being copied during 'pip install .'
2019-08-05 23:29:02 +01:00
Pradyun Gedam 7d29841ced
Fix handling of tokens (single part credentials) in URLs (#6818) 2019-08-04 19:56:41 +05:30
Chris Jerdonek 56324a3f38 Fix "~" expansion in --find-links paths. 2019-08-03 11:55:38 -07:00
Pradyun Gedam 69706e8b2b
Merge branch 'master' into tox-docs-update 2019-07-31 12:27:12 +05:30
Omry Yadan d4171f28d1 minor updates 2019-07-30 17:52:12 -07:00
Mike Hendricks 4e339f537d
Merge branch 'master' into uninstall-support-unc 2019-07-30 11:36:15 -07:00
Sumana Harihareswara 365d602e3a Update tox docs-building Python version to 3.7. 2019-07-28 16:39:28 -04:00
Ivan Pozdeev 125aae08ef add a NEWS entry 2019-07-27 03:08:21 +03:00
Omry Yadan 6b1aa6f6c0 simplifies new language 2019-07-23 18:26:06 -07:00
Omry Yadan 459b4dc238 renamed news file to match PR 2019-07-23 18:23:59 -07:00
Pradyun Gedam cb00488ca6
Generate NEWS 2019-07-24 00:11:33 +05:30
Omry Yadan 29a8b6ed38 updated news 2019-07-23 11:35:41 -07:00
Chris Jerdonek 0a1571ba03 Fix a NoneType AttributeError when evaluating hashes. 2019-07-23 05:22:59 -04:00
Omry Yadan 82e89a94c6 news 2019-07-22 19:24:34 -07:00
Pradyun Gedam 0e642958ad
Generate NEWS
Includes some re-ordering by @pradyunsg
2019-07-22 22:59:24 +05:30
Brandt Bucher 8582f7e40f Reduce dependency on ctypes when discovering glibc version. (#6678) 2019-07-21 18:18:37 +05:30
Pradyun Gedam 4ffa62d2e4
Change NEWS fragment section 2019-07-20 12:38:40 +05:30
Pradyun Gedam adc41ea652
Vendoring Updates (#6749) 2019-07-20 12:10:32 +05:30
Pradyun Gedam 3f85093d6d
Upgrade distlib to 0.2.9.post0 2019-07-20 09:44:55 +05:30
Pradyun Gedam 0d45b3cc4c
Upgrade msgpack to 0.6.1
This also allows us to drop our compatibility patch Python <2.7.6.
2019-07-20 09:44:51 +05:30
Pradyun Gedam 8e8d28dd8e
Upgrade requests to 2.22.0 2019-07-20 09:44:48 +05:30
Pradyun Gedam 22f9dcba59
Upgrade certifi to 2019.6.16 2019-07-20 09:44:44 +05:30
Pradyun Gedam 0d620c4a03
Upgrade urllib3 to 1.25.3 2019-07-20 09:44:39 +05:30
Pradyun Gedam 3b3bd76be3
📰 2019-07-20 09:37:48 +05:30
Pradyun Gedam c5560f18fd
Merge pull request #6728 from yan12125/html5lib-py39
Add an html5lib patch for Python 3.9 compatibility
2019-07-20 09:00:54 +05:30
Chih-Hsuan Yen ef7ca1472c
Add an html5lib patch for Python 3.9 compatibility
The patch is adapted from 4f9235752c

Closes https://github.com/pypa/pip/issues/6407
Closes https://github.com/pypa/pip/issues/6237
2019-07-18 14:11:42 +08:00
Eli Schwartz 179902986b
Add news fragment 2019-07-17 23:53:53 -04:00
Pradyun Gedam a53e571b87
Drop support for EOL Python 3.4 (#6685) 2019-07-17 19:03:26 +05:30
Chris Jerdonek 2c36f4d8eb
Merge pull request #6699 from cjerdonek/issue-5874-hash-checking
Address #5874: Prefer candidates with allowed hashes
2019-07-14 09:10:43 -07:00
Chris Jerdonek 74504fff6c Prefer candidates with allowed hashes when sorting. 2019-07-14 02:50:51 -07:00
Savio Jomton 1b331851f1 Improve error message for invalid editable requirement. (#6679) 2019-07-11 20:07:54 +05:30
Chris Jerdonek ca017ca8a6
Merge pull request #5936 from bertilhatt/subprocess_invocation_out_setuptools_args
Fix #1890: set sys.argv[0] to the setup.py path in the setuptools shim
2019-07-07 19:34:20 -07:00
Bertil Hatt b47da272aa Set sys.argv[0] to the underlying setup.py in the setuptools shim. 2019-07-07 18:40:31 -07:00
Hugo 2c1010ee96 Drop support for EOL Python 3.4 2019-07-07 11:45:16 +03:00
Pradyun Gedam a8c66dc5d7
Merge pull request #6007 from smartsammler/fix-iss4733
Fix #4733 by deleting the failing example
2019-07-06 09:18:58 +05:30
Pradyun Gedam d4f0f4e3d4
Merge pull request #5671 from segevfiner/ascii-progress-bar-fix
Make the ascii progress bar really be ascii, not Unicode
2019-07-06 09:13:43 +05:30
A_Rog 8e26b833d0 Parameterize test_looks_like_hash() (#6650) 2019-07-05 22:31:28 +05:30
Pradyun Gedam d641b54436
Merge pull request #6670 from chrahunt/pathlib-refactor-2
Rename compatible functions in tests.lib.path.Path.
2019-07-03 14:38:03 +05:30
Chris Hunt 39ac9ca351 Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
Chris Jerdonek a8510bc5e6
Merge pull request #6638 from cjerdonek/debug-command
Add a "pip debug" command
2019-07-02 02:00:02 -07:00
Chris Hunt ec73d72fd3 Remove unused incompatible functions from tests.lib.Path. 2019-07-01 10:23:03 +02:00
Chris Hunt 66e68273c8 Add assert in assert_paths_equal. 2019-06-29 21:07:50 -04:00
Chris Jerdonek d67acca760 Add "pip debug" command. 2019-06-27 03:18:42 -07:00
Chris Jerdonek 9eab3526a8 Improve error message formatting when a subprocess command errors out. 2019-06-27 03:05:06 -07:00
Chris Jerdonek fc46a18563
Merge pull request #6647 from cjerdonek/issue-6633-yanked-releases
Add support for "yanked" files (PEP 592)
2019-06-27 00:52:11 -07:00
Ian Wienand 0dbab23df9 Add SHA256 hash of .whl as info output (#5908)
* Add SHA256 hash of .whl as info output

Currently I'm trying to debug some issues with what appear to be
corrupt wheels.  It would be very useful to see what pip thought the
state of things was as it wrote the wheel output; if a final corrupt
distributed file is then different to what pip has saved in its build
logs, you know the problem is somewhere after pip but before
distribution.

Currently we get a log of the initial creation, then the stamp when it
gets moved in the final output location, e.g.:

 creating '/tmp/pip-wheel-71CpBe/foo-1.2.3-py2.py3-none-any.whl
 ...
 Stored in directory: /opt/wheel/workspace

A lot happens in between this, so my suggestion is we add the final
output file and it's hash before the "Stored in directory:", e.g. you
now see:

 Building wheels for collected packages: simple
   Running setup.py bdist_wheel for simple: started
   Running setup.py bdist_wheel for simple: finished with status 'done'
   Finished: simple-3.0-py3-none-any.whl sha256=39005a57a6327972575072af82e11d0817439fe6a069381f6f2a123a8c0bf1cf
   Stored in directory: /tmp/pytest-of-iwienand/pytest-18/test_pip_wheel_success0/workspace/scratch
 Successfully built simple

Despite the hash being fairly important for things like
--require-hashes, AFAICS the final hash is not put in the logs at all
currently, so I think this is generically helpful.

* Reword wheel hash details output

This rewords the output to be more like the form of the preceding
messages.  Additionally the size is added, since we have calculated it
anyway.  The output will now look like:

 Collecting simple==3.0
 Building wheels for collected packages: simple
   Building wheel for simple (setup.py): started
   Building wheel for simple (setup.py): finished with status 'done'
   Created wheel for simple: filename=simple-3.0-py3-none-any.whl size=1138 sha256=2a980a802c9d38a24d29aded2dc2df2b080e58370902e5fdf950090ff67aec10
   Stored in directory: /tmp/pytest-of-iwienand/pytest-0/test_pip_wheel_success0/workspace/scratch
 Successfully built simple
2019-06-26 02:44:43 -07:00
Chris Jerdonek a447be4785 Update PackageFinder to support "yanked" files (PEP 592). 2019-06-26 02:32:40 -07:00
Tim Gates abfe7c004d Bugfix/typo comparision (#6644)
* Fix type `comparision` with `comparison`.
2019-06-25 07:47:06 +02:00
Chris Jerdonek 36430e2a43
Merge pull request #6639 from sbidoul/imp_looks_like_hash-sbi
Be stricter in identiying git commit hashes
2019-06-23 08:49:11 -07:00
Stéphane Bidoul (ACSONE) 28fa08688c Be stricter in identiying git commit hashes 2019-06-23 12:00:57 +02:00
Christopher Hunt 26cdedd618 Add milliseconds to --log entry timestamps. (#6621)
Resolves #6587.
2019-06-17 14:50:41 -07:00
Chris Jerdonek 6ac468e4fd
Merge pull request #6613 from cjerdonek/requirements-file-error
Improve the error message for invalid requirements files in certain situations
2019-06-16 20:09:24 -07:00
DiegoCaraballo 3fbbcb8b6f The was_installed_by_pip function is modified 2019-06-15 15:36:21 -03:00
Chris Jerdonek e5a730a89f Improve the error message when reading a bad requirements file. 2019-06-15 10:47:24 -07:00
Diego Caraballo c0bdc8aad5 Add link to Development Documentation in CONTRIBUTING.md (#6610) 2019-06-15 14:42:16 +05:30
Chris Jerdonek d72758394d Fully support --trusted-host inside requirements files. 2019-06-13 01:21:05 -07:00
Laszlo Kiss-Kollar a240a98701 Add --path option to pip list
This makes `pip list` consistent with `pip freeze` which also supports
listing packages in arbitrary file paths.
2019-06-12 16:10:06 +02:00
Chris Jerdonek 5776ddd058
Merge pull request #6418 from gzpan123/master
FIX #6413 pip install <url> allow directory traversal
2019-06-11 01:11:42 -07:00
gzpan123 a4c735b14a FIX #6413 pip install <url> allow directory traversal 2019-06-11 00:22:29 -07:00
Chris Jerdonek 4bb225d486 Allow dotted version strings for --python-version. 2019-06-08 19:59:09 -07:00
Chris Jerdonek 8dbf88dff7 Update pip-download to respect --python-version. 2019-06-06 13:20:29 -07:00
Pradyun Gedam 83d813c01e
Updated comment-matching regex to be Jython-compatible (#5959) 2019-05-29 23:03:27 -04:00
László Kiss Kollár 929fefdbae Add --path to pip freeze to support --target installations (#6450)
* Add support for --path in pip freeze
2019-05-28 02:28:18 -07:00
Pradyun Gedam 6599f99096
Rename 3662.bugfix to 3662.trivial 2019-05-27 16:47:06 -04:00
Pradyun Gedam 24e9e4aa37
Display install instructions for pre-releases (#5921) 2019-05-27 16:38:17 -04:00
Pradyun Gedam a1ad4b7c41
Improve deprecation warnings (#6549) 2019-05-27 16:33:45 -04:00
Pradyun Gedam 5802a63799
📰 2019-05-27 13:59:48 -04:00
Chris Jerdonek 30855ff9b7
Merge pull request #6542 from cjerdonek/issue-5082-missing-metadata-error
Improve error message if METADATA or PKG-INFO metadata is None
2019-05-26 16:17:22 -07:00
Chris Jerdonek 6178f9681b
Merge pull request #6540 from cjerdonek/issue-6121-incompatible-wheel-message
Improve the debug log message when installing an incompatible wheel
2019-05-26 14:10:09 -07:00
Chris Jerdonek cd5bd2cd52 Improve error message if METADATA or PKG-INFO metadata is None. 2019-05-26 12:35:07 -07:00
Chris Jerdonek a9a9cfd98c Improve the debug log message when installing an incompatible wheel. 2019-05-25 23:59:32 -07:00
Chris Jerdonek f44344f122
Merge pull request #6515 from johnthagen/svn-interactive-final
Properly support interactive Subversion client
2019-05-25 14:47:51 -07:00
Chris Jerdonek 98a77a9317
Merge pull request #6538 from cjerdonek/issue-6513-freeze-requirement-error
Include more details in a pip freeze warning message
2019-05-25 11:17:23 -07:00
Pradyun Gedam 287aa4b7bf
Merge pull request #6008 from jaraco/bugfix/4106-distutils-option-error-target-prefix-conflict
Prevent distutils option error target prefix conflict
2019-05-25 13:29:49 -04:00
Chris Jerdonek 7c42f0ed8e Include more details in a pip freeze warning message. 2019-05-25 00:31:44 -07:00
Chris Jerdonek ba53909375
Merge pull request #6522 from theacodes/add-pip-ci
Check for explicit PIP_IS_CI environment variable to report automated installs to Warehouse.
2019-05-24 13:57:09 -07:00
Thea Flowers 03ad0421ee Check for explicit `PIP_IS_CI` environment variable to report automated installs to Warehouse. 2019-05-24 13:01:04 -07:00
johnthagen 5100f81e47 Improve news file 2019-05-23 07:20:25 -04:00
Chris Jerdonek eeb74aeb29
Merge pull request #6518 from cjerdonek/issue-6371-ignore-requires-python
Fix #6371: make pip install respect --ignore-requires-python
2019-05-22 22:38:20 -07:00
Chris Jerdonek ad2b07898d Fix pip-install to respect --ignore-requires-python. 2019-05-22 21:34:41 -07:00
Andreas Lutro 9eccfae10d redact passwords in output when using --find-links (#6489) 2019-05-22 23:33:41 +02:00
Mike d62bef4362 Document caveats for UNC paths in uninstall and add .pth unit tests 2019-05-21 11:14:11 -07:00
johnthagen 60019aec51 Add news entry 2019-05-20 07:41:25 -04:00
Stéphane Bidoul (ACSONE) 99b64ba80f docs: mention installing from git refs 2019-05-18 12:02:28 +02:00
Xavier Fernandez 6387867288
Merge pull request #6491 from DavidBord/fix-5963-fail-elegantly-incorrect-config
fix-5963: fail elegantly
2019-05-13 22:04:01 +02:00
Xavier Fernandez a8c7295934
Update news file to match usual style 2019-05-13 21:20:04 +02:00
David Bordeynik 3165c5690d Fix 6486 mac gitignore (#6487)
add .DS_Store to .gitignore for contributers working on mac
2019-05-11 23:05:51 +02:00
Donald Stufft 3596ad5cd8
Merge pull request #5952 from zooba/issue-5948
Fixes #5948 Adds keyring support
2019-05-10 08:13:55 -04:00
David Bordeynik 91e106af58 fix-5963: Add news file 2019-05-09 20:35:16 +03:00
Chris Jerdonek 9ab91a19ff
Merge pull request #6389 from cjerdonek/issue-5518-global-option-vcs-install
Respect --global-option and --install-option for VCS installs.
2019-05-08 19:22:07 -04:00
SeongSoo Cho 17be5bfe81 Upgrade Sphinx version for Read the Docs (#6477) 2019-05-08 11:26:34 -04:00
Pradyun Gedam 422d989056
Merge pull request #5931 from xrmx/fix5059
Remove last use of SafeConfigParser
2019-05-07 11:37:37 -04:00
Steve Dower c63ee61027 Issue #5948: Enable keyring support
This requires keyring and any backends to be installed separately.
Once discovered, it will be used to retrieve credentials by index URL
and netloc before prompting. If the user is prompted and the
credentials work, they will (optionally) be saved to keyring against
the netloc of the requested URL.
2019-05-07 09:55:02 -04:00
Pradyun Gedam 2386806ab4
Cleanup outdated warning check code (#6467) 2019-05-07 08:17:51 -04:00
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
Chris Jerdonek dc1217713e Fix freeze log debug message. 2019-05-06 14:55:16 -04:00
Donald Stufft ae914c00ce Update NEWS.rst 2019-05-06 10:08:58 -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
Chris Jerdonek 44643b8e28 Restore pyproject.toml handling to its version 19.0.3 state. 2019-04-26 20:29:44 -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
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 307410c24b Bump to 19.1 2019-04-23 22:28:44 -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
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
Hugo 7ee1a554d0 pip-wheel-metadata doesn't need to persist between pip invocations 2019-03-10 23:37:41 +02: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