Omry Yadan
e8330528bf
lint take 2 (not sure how to test locally)
2019-07-22 20:22:13 -07:00
Omry Yadan
f285407d7a
lint
2019-07-22 19:53:43 -07:00
Omry Yadan
3626530b4a
exclude '.tox', '.nox', '.git', '.hg', '.bzr', '.svn' from pip install . to speed installation up
2019-07-22 19:17:12 -07:00
Pradyun Gedam
537b0fca12
Change isort multi_line_output to 3
2019-07-22 10:15:27 +05:30
Xavier Fernandez
34092d3234
Move pip marker related constant & function in their own module
...
It didn't seem related with the rest of the locations module
2019-07-18 22:53:05 +02:00
Chris Jerdonek
2b58bcde31
Remove strict_optional=False for download.py.
2019-07-14 23:07:48 -07:00
Chris Jerdonek
761b2064f4
Remove models/search_scope.py's dependency on download.py.
2019-06-21 14:41:45 -07:00
Chris Jerdonek
d72758394d
Fully support --trusted-host inside requirements files.
2019-06-13 01:21:05 -07:00
gzpan123
a4c735b14a
FIX #6413 pip install <url> allow directory traversal
2019-06-11 00:22:29 -07:00
Chris Jerdonek
5c89643d3d
Remove importing from vcs in pip/_internal/__init__.py.
...
This also renames the current vcs/__init__.py to vcs/versioncontrol.py.
2019-06-03 01:18:36 -07:00
Chris Jerdonek
2d450936c6
Move path_to_url() from download.py to misc.py.
2019-05-26 22:51:00 -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
Chris Jerdonek
b4e1e48372
Merge pull request #6492 from cjerdonek/vcs-registry
...
Store VersionControl objects instead of classes in the VCS registry
2019-05-12 12:03:16 -04: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
Chris Jerdonek
3cfa8a76c7
Store instances in the VcsSupport registry instead of classes.
2019-05-09 22:35:26 -04:00
Steve Dower
49b9298a44
Improve import error handling
...
Fix --no-index usage
Fix missing type annotation type
2019-05-07 17:01:41 -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
Chris Jerdonek
0ea639d644
Remove url as an instance attribute of the VersionControl class.
2019-05-06 22:59:18 -04: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
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
Xavier Fernandez
c286c55d51
Tweak tests & url_to_path after review
2019-02-24 21:40:25 +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
Maxim Kurnikov
f77b8ca051
remove #noqa: F401
2019-02-22 14:17:07 +03:00
Anthony Sottile
1ea2140f32
Remove _copy_dist_from_dir
...
introduced in 4c405a0ad3
but not referenced
2019-02-20 11:51:23 -08:00
Chris Jerdonek
a229f114e6
Address review comments.
2019-02-18 19:29:07 -08:00
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
d2051f14bb
Change the default of call_subprocess()'s show_stdout from True to False.
2019-02-12 05:11:51 -08:00
Pradyun Gedam
89ef777c18
Cleanup for issues fixed with mypy upgrade
2018-12-18 15:10:40 +05:30
Maxim Kurnikov
7696e7e530
Add type annotations for pip._internal.download, pip._internal.wheel and pip._internal.pep425tags ( #6067 )
...
References https://github.com/pypa/pip/issues/4748 , https://github.com/pypa/pip/pull/6038 .
2018-12-16 14:46:39 +05:30
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
Chris Jerdonek
f54b68fea7
DRY up MultiDomainBasicAuth some more.
2018-10-29 22:13:55 -07:00
Chris Jerdonek
a434431431
Use split_auth_from_netloc() inside MultiDomainBasicAuth().
2018-10-29 22:13:51 -07:00
cytolentino
12a2334429
Add mypy annotations to base_command.py
2018-10-27 13:28:06 +01:00
Kevin R Patterson
e3c869fa60
rename to warn_on_401, remove extra return
2018-08-17 11:07:45 -05:00
Kevin R Patterson
b7222f3d26
handle_401_warn for when invalid credentials are given
2018-08-17 08:25:53 -05:00
Kevin R Patterson
4e0c433c37
fix extra line after handle_401_again function
2018-07-26 17:17:40 -05:00
Kevin R Patterson
aef521ee61
give 401 warning if username/password do not work for URL
2018-07-26 17:14:16 -05:00
Pradyun Gedam
54722aa7ec
Remove unused imports
2018-06-13 13:17:30 +05:30
Pradyun Gedam
88e17b4aed
Update the import for PyPI Index model
2018-05-30 01:44:51 +05:30
Pradyun Gedam
bd31672508
Stop bothering about the PyOpenSSL version
2018-03-30 20:56:45 +05:30
Pradyun Gedam
aaa9310a39
Reuse logic from urllib3 for use of OpenSSL
2018-03-30 13:27:42 +05:30
Pradyun Gedam
6ec5bc56fd
Merge branch 'master' into vendoring/enable-c-libs
2018-03-30 12:38:13 +05:30
Pradyun Gedam
46267a285a
Sigh. mypy.
2017-12-27 17:21:00 +05:30
Pradyun Gedam
729990c986
Round 1 of Cleanups ( #4844 )
...
* misc: fix typo
* misc: 🎨 cleanup parenthesis
* misc: 🎨 minor simplifications
* tests: fix test_console_to_str_warning
2017-12-25 15:23:27 +05:30
Pradyun Gedam
ad27fd3afb
🎨 Make linters happy
2017-12-23 17:33:52 +05:30
Pradyun Gedam
10af4ed9cb
Import OpenSSL only if not on Windows
2017-12-16 18:12:25 +05:30
Pradyun Gedam
9b4af01a29
Merge branch 'master' into vendoring/enable-c-libs
2017-12-16 18:05:37 +05:30
Anthony Sottile
9762eb02e3
Upgrade syntax in src/pip/_internal
...
Changes were automated via https://github.com/asottile/pyupgrade
See #4921
2017-12-14 21:59:22 -08:00
Pradyun Gedam
353a13ddff
isort: Include trailing commas
2017-11-21 13:23:59 +05:30
Pradyun Gedam
0c684a3b0d
User-Agent reflects the version of openssl used to connect
2017-11-05 16:25:05 +05:30
Bartek Ogryczak
62a695c4b9
More HTTP status codes to retry on ( #4473 )
...
* Add `--retry-status <HTTP code>` to allow specifying custom HTTP staus codes to retry on.
This is useful for AWS S3 or Cloudflare, which at times return codes other than 503 for
itermitent failures.
* stripping option related code, hardcoding the statuses
* Reword the news file
* changing ndash to regular ascii dash
2017-10-24 10:55:42 +02:00
Donald Stufft
13a3f1d52a
Upgrade requests
2017-09-07 15:54:22 -04:00
Pradyun S. Gedam
11451c54ec
Merge branch 'master' into mypy/infrastructure
2017-09-02 16:06:48 +05:30
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00