Commit Graph

5944 Commits

Author SHA1 Message Date
Hugo 61b011293b Run functional tests for install in separate jobs (#5436)
Speeds up the end-to-end running time for Travis tests.

* Adds a new jobs to test_install* separately (using -k "[not] test_install")
* More generic cache ignore
* Move slower Python 3.5 tests before 3.4
* Factor tox envs
2018-05-26 16:46:12 +05:30
Pradyun Gedam 8619e3edea
Merge pull request #5368 from hroncok/pip-nowarn-upgrade
When pip was not installed by pip, don't show the upgrade warning
2018-05-22 11:27:16 +05:30
Pradyun Gedam 144b42d799
Remove username/password from log message
Merge pull request #5339 from jzafran/remove-password-from-stdout
2018-05-22 11:03:10 +05:30
Pradyun Gedam 6fdcf23931
Improve handling of PEP 518 build requirements
Merge pull request #5286 from benoit-pierre/improve_pep518_build_requirements_handling
2018-05-19 15:33:41 +05:30
Miro Hrončok d0b77089a7 When pip was not installed by pip, don't show the upgrade warning
Fixes https://github.com/pypa/pip/issues/5346
2018-05-19 08:32:27 +02:00
Benoit Pierre 92e6e19e7a minor cleanup 2018-05-18 23:45:55 +02:00
Benoit Pierre 77f6ac676a forward verbose flag to build dependencies installs 2018-05-18 23:45:55 +02:00
Benoit Pierre 1ac5f09911 tweak output when installing PEP 518 build dependencies
Suppress warnings about out-of-PATH script installs.
2018-05-18 23:45:55 +02:00
Benoit Pierre 7b4790d0ca cleanup PEP 518 implementation
- remove unused `BuildEnvironment` parameter: `no_clean`
- move helper to install build requirement to the `BuildEnvironment` class
- simplify a little the 2 different code paths (with and without build isolation)
2018-05-18 23:45:55 +02:00
Benoit Pierre ca4e2ad6ad improve handling of PEP 518 build requirements
Offload more work to the underlying pip command used to install the
build requirements, so there's no need to duplicate code to handle
environment markers/extras. This is done by setting the correct options
from the finder passed in argument to `_install_build_reqs`.
2018-05-18 23:45:55 +02:00
Benoit Pierre 04874e24fd tests: improve PEP 518 tests
- avoid hitting the index: use `common_wheels`/`script.pip_install_local`
- use `script.pip(..., use_module=True)` to simplify some tests
- improve `test_pep518_uses_build_env` parametrization
- simplify `test_pep518_with_user_pip`: we only need to check build
  requirements can be installed, so no need for testing with both
  `install` and `wheel` command
- fix `test_pip_wheel_with_pep518_build_reqs_no_isolation`: building
  pep518-3.0 without isolation should fail if the build requirements
  are not installed.
2018-05-18 23:45:55 +02:00
Benoit Pierre 3de9bdb7f2 tests: tweak `simplewheel` test distribution
- change module name to prevent conflicts with other distributions
- add a `__version__` field for version checks
2018-05-18 23:40:15 +02:00
Pradyun Gedam 21b97e49ab
Merge pull request #5419 from tomfbiz/3905_Pip_version_check_cache_dir
Keep only one selfcheck.json file
2018-05-18 15:29:14 +05:30
Tom Freudenheim daae935450 Merge branch 'master' into 3905_Pip_version_check_cache_dir 2018-05-17 21:59:25 -04:00
Donald Stufft 6020855208
Merge pull request #5423 from dstufft/drop-3.3
Drop support for Python 3.3
2018-05-17 14:24:57 -04:00
Tom Freudenheim 56418c0451 removed py 3.3 (copied from PR #5423) 2018-05-17 13:42:31 -04:00
Donald Stufft 90b3db476f Drop support for Python 3.3 2018-05-17 13:34:48 -04:00
Tom Freudenheim 60a2841f0b flake8 fix 2018-05-17 11:30:10 -04:00
Tom Freudenheim 32c3b56ebe fix lint issues 2018-05-17 11:03:21 -04:00
Tom Freudenheim 1056580303 fix test failure 2018-05-17 10:36:42 -04:00
Jeremy Zafran 96dd6de889 made test_remove_auth_from_url a parameterized test 2018-05-17 10:21:34 -04:00
Tom Freudenheim 16528ed5f1 Cleanup per PR comments 2018-05-17 09:39:26 -04:00
Tom Freudenheim cfa65e68a4 fix lint errors 2018-05-16 22:03:33 -04:00
Tom Freudenheim 724989baa7 add news 2018-05-16 18:15:22 -04:00
Tom Freudenheim 631c080cc8 use options to get cache path 2018-05-16 17:55:34 -04:00
Tom Freudenheim cd7c25dece removed VirtualenvSelfCheckState per stufft 2018-05-16 15:44:24 -04:00
Pradyun Gedam 70253c21a6
Merge pull request #5392 from pradyunsg/dev-ops/issue-templates
Start using new GitHub support for issue templates
2018-05-16 23:51:38 +05:30
Donald Stufft 018f03aab4
Merge pull request #5405 from reaperhulk/segfault-no-more
Fix a rare segfault
2018-05-16 13:13:22 -04:00
Jeremy Zafran d2853be974 add news fragment file 2018-05-15 13:03:53 -04:00
Paul Kehrer ba80574225 Fix a rare segfault
If pip10 is installed and pyopenssl+cryptography are present in the
environment pip's vendored urllib3 will automatically activate its
pyopenssl adapter. This is by design so users can potentially opt-in to
more up-to-date TLS versions than what are provided by their copy of
Python. However, if a user has these packages & subsequently runs
pip install --ignore-installed cryptography then a segfault will occur
due to overwriting an mmap'd shared object.
2018-05-14 13:34:33 -04:00
Pradyun Gedam c9a6fa6ec1
Start using new GitHub support for issue templates
This commit introduces 2 issue "types", feature request and bug report.

Ref: https://blog.github.com/2018-05-02-issue-template-improvements/
2018-05-12 11:47:03 +05:30
Daniel Shaulov d67d98dd91 Add a --prefer-binary flag. (#5370)
The flag makes pip prefer an older but valid binary distributions over a newer source distributions.

Fixes #3785.
2018-05-11 11:17:32 +05:30
Donald Stufft df45aafd15
Merge pull request #5389 from shlomif/fix-GitHub-cap-2
Fix the capitalization of "GitHub".
2018-05-10 12:39:36 -04:00
Shlomi Fish 508517f0d7 Fix the capitalization of "GitHub". 2018-05-10 18:18:30 +03:00
Daniel Shaulov ff578b8d23 disable strict_optional mypy option (#5371) 2018-05-05 15:28:33 +05:30
Pradyun Gedam 80b95249eb
Merge pull request #5036 from thijstriemstra/patch-1
enable pip cache in appveyor and travis builds
2018-04-30 19:49:45 +05:30
Thijs Triemstra 361dcecbbd Merge branch 'master' of https://github.com/pypa/pip into patch-1 2018-04-29 00:57:08 +02:00
Paul Moore 70122751a8
Merge pull request #5338 from pfmoore/doc_cosmetic_pr
Add a note to the docs about cosmetic changes in PRs
2018-04-28 14:49:34 +01:00
Pradyun Gedam b4aa62a490
Merge pull request #5348 from hroncok/binimport
Revendoring script not to rewrite binascii import
2018-04-28 16:46:01 +05:30
Miro Hrončok 04e98d9718 Vendoring: Drop the bin directory
It contains the executables: easy_install, distro, chardetect etc.

It should not be picked as vendored library.

Related to https://github.com/pypa/pip/issues/5347
2018-04-28 11:38:58 +02:00
Miro Hrončok 461d94698e Vendoring: Make sure to only rewrite relevant imports
If there is an import from hamster, while we vendor ham, we should
not rewrite it.

Fixes https://github.com/pypa/pip/issues/5347
2018-04-28 11:38:58 +02:00
Paul Moore 762ae031d2 Merge with master 2018-04-28 10:23:01 +01:00
Pradyun Gedam daaa0fd200
Merge pull request #5281 from pradyunsg/ci/short-circuiting
Add the ability to short circuit Travis CI builds for docs-only changes
2018-04-28 11:54:24 +05:30
Pradyun Gedam ad65c7c760
Merge pull request #5307 from pradyunsg/docs/improve-dev-docs
Improve Development docs
2018-04-28 11:46:03 +05:30
Pradyun Gedam 538de06838
📰 2018-04-27 19:23:35 +05:30
Jeremy Zafran 7655893601 remove usernames and passwords for index URLs using basic auth from "Looking in indexes" log messages 2018-04-27 00:41:54 -04:00
Jeremy Zafran 5bc94f3348 Move remove_auth_from_url and test from Subversion class to pip._internal.utils.misc 2018-04-27 00:41:54 -04:00
Paul Moore f78888b5c1 Add a note to the docs about cosmetic changes in PRs 2018-04-26 19:09:06 +01:00
Pradyun Gedam 47a4eda9d7
Refer to dev-requirements.txt in Testing references 2018-04-26 19:44:10 +05:30
Pradyun Gedam 3738959fb1
Update Automated Testing section 2018-04-26 19:41:43 +05:30