Chris Jerdonek
8a771d027d
Make get_remote_url() a class method.
2019-01-09 01:24:16 -08:00
Chris Jerdonek
41f058b4f5
Make _get_subdirectory(), _get_svn_url_rev(), and _is_local_repository() class methods.
2019-01-09 01:24:16 -08:00
Chris Jerdonek
00ae3f594d
Make VersionControl.run_command() a class method.
2019-01-09 01:24:16 -08:00
Peter Lisák
1a87e577d0
Add comments
2019-01-07 17:10:08 +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
b7a4d70b25
Don't instantiate NotImplementedError
2019-01-02 17:27:34 +05:30
Pradyun Gedam
f9b66cacb3
Stop passing finder to DistAbstraction.dist
2019-01-02 17:27:34 +05:30
Pradyun Gedam
71b6e95322
Remove an unused Subversion method that expects dependency links
2019-01-02 17:27:06 +05:30
Pradyun Gedam
7222cb8fdb
Remove --process-dependency-links and related support code
2019-01-02 17:27:06 +05:30
Chris Jerdonek
526ac40e63
Fix freeze to handle Git repos with no remote.
2018-12-21 01:10:06 -08:00
Chris Jerdonek
1764fbbdab
Add failing tests.
2018-12-21 00:21:04 -08:00
Chris Jerdonek
2a902dd464
Merge pull request #5912 from cjerdonek/improve-get-branch
...
Fix get_branch() to work if the current branch shares a name with a tag
2018-12-20 20:20:12 -08:00
Chris Jerdonek
929c95833d
Address review comments.
2018-12-20 17:39:08 -08:00
Pradyun Gedam
89ef777c18
Cleanup for issues fixed with mypy upgrade
2018-12-18 15:10:40 +05:30
Pradyun Gedam
22fe45d462
Fix new issues found in mypy 0.620 -> 0.650
2018-12-18 11:20:14 +05:30
Pradyun Gedam
be5f4afcfc
Fix inconsistencies in mypy annotations
2018-12-17 23:56:00 +05:30
Maxim Kurnikov
8fc393a2d1
Add type annotations for pip._internal.pyproject, pip._internal.build_env, pip._internal.index, pip._internal.resolve ( #6072 )
2018-12-17 16:43:23 +05:30
Maxim Kurnikov
05eb7d8e92
Add type annotations for pip._internal.req ( #6063 )
2018-12-17 16:43:00 +05:30
Maxim Kurnikov
410072bc8b
add type annotations for pip._internal.models ( #6065 )
2018-12-17 16:42:36 +05:30
Maxim Kurnikov
7ee388178a
Add type annotations for pip._internal.operations ( #6066 )
...
References https://github.com/pypa/pip/issues/4748 , https://github.com/pypa/pip/pull/6038 .
2018-12-17 16:41:47 +05:30
Chris Jerdonek
1e903eab5a
Improve branch detection to work if a tag exists with the same name.
2018-12-16 12:00:42 -08:00
Chris Jerdonek
cc9f03dea9
Rename get_branch() to get_current_branch().
2018-12-16 02:08:27 -08:00
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
5d2d16e575
Merge pull request #6062 from mkurnikov/cli-types
...
Add type annotations for pip._internal.cli
2018-12-14 12:31:58 +05:30
Maxim Kurnikov
5e5904e61c
Add type annotations for pip._internal.utils and pip._internal.vcs.__init__ ( #6061 )
2018-12-08 08:47:24 +05:30
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
Maxim Kurnikov
028848574a
add type annotations for pip/_internal/cli/
2018-12-03 15:47:11 +03:00
Eli Schwartz
7371a75595
fix un-vendored support; add missing entry for pep517
2018-11-30 14:08:54 -05:00
Pradyun Gedam
fc62b5b677
Move wheel extension information to remove cycle imports
2018-11-30 12:46:08 +05:30
Pradyun Gedam
41f87fba35
Add notes for future cleanups
2018-11-30 11:43:35 +05:30
Pradyun Gedam
9781e1381e
Move an import to top of wheel.py
2018-11-30 11:43:15 +05:30
Pradyun Gedam
eb602418a4
Use msgpack instead of msgpack-python
2018-11-27 18:30:03 +05:30
Paul Moore
087d8254a7
Merge pull request #5410 from wtolson/manylinux2010
...
Manylinux2010
2018-11-22 11:07:49 +00:00
Steve Dower
2538a07a8b
Fix linting issue
2018-11-21 14:44:14 -08:00
Steve Dower
1948a7c378
Add compress_for_rename() test and preserve casing
2018-11-21 14:33:15 -08:00
Steve Dower
f4bdd28e25
Fix linting issues
2018-11-21 14:13:45 -08:00
Steve Dower
60a08c838d
Merge remote-tracking branch 'upstream/master' into issue-3055
2018-11-21 13:55:25 -08:00
Steve Dower
1bf93a78cb
Adds test for AdjacentTempDirectory._generate_names
2018-11-21 13:53:49 -08:00
Steve Dower
85f9cdf866
Remove makedirs call
2018-11-21 13:25:49 -08:00
Steve Dower
c7ae06c798
Fixes #3055 Uninstall causes paths to exceed MAX_PATH limit
2018-11-21 13:14:36 -08:00
Pradyun Gedam
ad70174bfc
Minor cleanups to format_control.py
2018-11-21 14:23:48 +05:30
Paul Moore
f06a0cb560
Move setup.py egg_info logging into run_egg_info
2018-11-14 19:24:27 +00:00
Paul Moore
85e4f8ec41
Fix some remaining TODO comments
2018-11-14 18:24:55 +00:00
Paul Moore
6b7473d664
Pass --use-pep517 option to the resolver in the pip wheel command
2018-11-14 18:18:48 +00:00
Paul Moore
3a0f9b1c71
Remove unneeded TODO
2018-11-14 14:31:24 +00:00
Paul Moore
e8f7aa1446
Pass use_pep517 option to resolver
2018-11-14 14:06:35 +00:00
Paul Moore
4ca38e0c38
Merge with master
2018-11-11 13:49:35 +00:00
Chris Jerdonek
7e8e706791
Rename VersionControl.get_url() to get_remote_url().
2018-11-09 22:55:59 -08:00
Chris Jerdonek
8a4e2851d2
Merge pull request #5996 from cjerdonek/simplify-get-src-requirement
...
Change VersionControl.get_src_requirement() to accept the project name
2018-11-09 12:33:25 -08:00
Benjamin Peterson
5f5415756d
Add missing spaces to log message about skipping a link due python version incompatibility. ( #5992 )
2018-11-09 12:21:13 +05:30
Pradyun Gedam
a2d7150b9b
Merge pull request #5995 from pradyunsg/misc/cleanup-vcs
...
Minor fixes in pip._internal.vcs directory
2018-11-09 11:12:39 +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
07900ed732
Change VersionControl.get_src_requirement() to accept the project name.
2018-11-08 04:24:05 -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
f60c57df4f
Fix an incorrect type annotation
2018-11-08 16:47:07 +05:30
Pradyun Gedam
238df6f4f6
Remove no-longer-existing variable from __all__
2018-11-08 16:47:02 +05:30
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
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
523a3d0f1f
Merge pull request #5941 from erdincmutlu/erdinc
...
added mypy annotation to pip._internal.locations
2018-11-06 15:05:36 +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
4ec7b38f8c
Merge pull request #5925 from mbaluna/mypy-annotations-for-utils-appdirs
...
Add mypy annotations for utils/appdirs
2018-11-06 14:58:42 +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
cytolentino
ecf90d4792
Add typing to compat.py
2018-11-05 12:12:03 +00:00
mbaluna
eed9489a31
Remove win_path_to_bytes annotation
2018-10-31 10:05:52 +00: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
bfc54bc84d
Satisfy the linter
2018-10-31 01:47:12 +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
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
0aa301c60e
Percent-encode the username in redact_netloc().
2018-10-29 22:13:55 -07:00
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
Chris Jerdonek
8166eb6c32
Percent-decode special characters in SVN URL credentials.
2018-10-29 22:12:51 -07:00
Paul Moore
f805ac15a7
Properly wrap all hook calls in our subprocess runner
2018-10-29 23:33:21 +01:00
Paul Moore
3c94d81f68
Support --python-tag for PEP 517 builds
2018-10-29 23:33:21 +01:00
Paul Moore
83979fedaa
Actually use the new --[no-]use-pep517 option
2018-10-29 23:33:21 +01:00
Paul Moore
f40491b811
Vendor the new version of pep517
2018-10-29 23:33:21 +01:00
Paul Moore
9d2b17854d
Add --[no-]use-pep517 command line flag
2018-10-29 23:33:21 +01:00
Paul Moore
41b07c9fb5
Include backend-provided requirements in build environment
2018-10-29 23:33:19 +01:00
Paul Moore
c8d8e37ea4
Fix copy and paste error
2018-10-29 23:32:13 +01:00
Paul Moore
4281bf8e61
Correct an out of date comment
2018-10-29 23:32:13 +01:00
Paul Moore
ab3e21635a
Add a news file
2018-10-29 23:32:13 +01:00
Paul Moore
48e9cb693f
Address test failures
2018-10-29 23:32:13 +01:00
Paul Moore
b62284a81b
Build PEP 517 and legacy wheels separately
2018-10-29 23:32:13 +01:00
Paul Moore
b9e92a70fd
With build isolation, we shouldn't check if wheel is installed to decide if we build wheels
2018-10-29 23:32:13 +01:00
Paul Moore
4de2915113
Update required setuptools version for PEP 517
2018-10-29 23:32:03 +01:00
Paul Moore
8fbf78d407
Phase 2 - generate metadata using PEP 517 hook
2018-10-29 23:28:23 +01:00
Paul Moore
14f35f91f5
Experimental fix to pep517 to use pip's subprocess caller
2018-10-29 23:28:23 +01:00
Paul Moore
de4d5038f8
Phase 1 - build wheels using PEP 517 hook
2018-10-29 23:28:23 +01:00
Benoit Pierre
744b8cf96e
improve build environment
...
- check build requirements for conflicts
- better isolation (ignore system site packages)
- support 2 prefixes: a "normal" one, and an "overlay" one
(with higher priority over "normal")
2018-10-29 23:17:51 +01:00
Yuan Jing Vincent Yan
4ccea7e67a
Improve documentation in misc.py
2018-10-29 22:40:16 +01:00
Miro Hrončok
7b0fc6ad6e
Add licenses for 3rd party libraries
2018-10-29 22:02:07 +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
Tzu-ping Chung
033a47cbf2
More test cases
2018-10-29 15:48:43 +08:00
cytolentino
0dbdb6250b
Add typing to cmdoptions.py
2018-10-28 16:44:00 +00:00
Erdinc Mutlu
11f7fba714
flake8 issue fixed
2018-10-28 16:42:24 +00:00
Erdinc Mutlu
ee38a8f028
Fixed Travis issues with my commit
2018-10-28 15:08:21 +00:00
Erdinc Mutlu
1429f14184
Minor change according to review and comment for typeshed issue reported
2018-10-28 14:12:45 +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
Erdinc Mutlu
613dc33656
added remaining mypy annotation to pip._internal.locations
2018-10-28 12:16:20 +00:00
Pradyun Gedam
bc9c51292a
Include the Vendoring policy in the docs
2018-10-28 11:27:28 +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
Chris Jerdonek
afdfb7b210
Include package name in a freeze warning if package is not installed.
2018-10-27 06:50:15 -07:00
Erdinc Mutlu
25cb31ab10
added mypy annotation to pip._internal.locations
2018-10-27 14:34:20 +01:00
cytolentino
12a2334429
Add mypy annotations to base_command.py
2018-10-27 13:28:06 +01:00
Monica Baluna
49737605d7
Add mypy annotations for utils/appdirs
2018-10-26 19:24:33 +03:00
Prabhjyotsing Surjit Singh Sodhi
e34b19b02a
Don't print stacktrace due to invalid req
2018-10-26 12:03:31 -04:00
Chris Jerdonek
951e0cba51
Fix #5868 : TypeError in move_wheel_files(). ( #5883 )
2018-10-24 09:19:58 -07:00
Pavithra Eswaramoorthy
fe0393d1db
Corrected a tiny typo
2018-10-23 22:10:11 +05:30
Chris Jerdonek
f828dff5ca
Switch log message from info to debug.
2018-10-23 00:29:42 -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
Tzu-ping Chung
ad9cbf50ca
More robust egg-info/name match
...
The idea is to use regex to scan for character sequences that would
be canonicalized into a dash, and skip the equal amount of sequences
to the given canonical name.
2018-10-22 16:48:24 +08:00
Tzu-ping Chung
3368819156
Split, simplify, and fix egg_info_matches
2018-10-22 16:46:42 +08:00
Chris Jerdonek
4e6bdf6adc
Merge pull request #5881 from cjerdonek/remove-vcs-get-src-requirement
...
Remove the module-level get_src_requirement().
2018-10-22 01:43:04 -07:00
wim glenn
3a6a1c06a9
Remove dead code: import_or_raise
utility function ( #5876 )
...
* Remove dead code import_or_raise utility function
* add news marker
2018-10-21 22:15:27 +02:00
Dave Jones
62c27dee45
Use ZipFile.open instead of ZipFile.read ( #5848 )
...
To avoid huge memory usage in unusual situations (e.g. a TensorFlow
wheel on a Raspberry Pi), use ZipFile.open and shutil.copyfileobj
instead of reading all the decompressed data into a byte-string.
2018-10-19 10:32:30 -07:00
Tom Forbes
78371cc950
Redact basic authentication passwords from log messages ( #5773 )
...
Redact basic authentication passwords from URLs.
2018-10-19 02:06:10 -07:00
Xavier Fernandez
7f3b2c1f92
Merge pull request #5659 from patter001/master
...
fix for: Incorrect username/password gives misleading error
2018-10-16 14:39:02 +02:00
Chris Jerdonek
46ffb13f13
Remove unused dependency_links variables in freeze.py.
2018-10-16 02:42:20 -07:00
Chris Jerdonek
ddfe130b31
Make get_requirement_info() a function rather than a class method.
2018-10-16 02:27:12 -07:00
Benoit Pierre
83b879b1ec
Improve PEP 518 build isolation ( #5824 )
...
Handle .pth files, so namespace packages are correctly supported under Python 3.2 and earlier, and more.
2018-10-16 12:04:28 +05:30
Chris Jerdonek
c976f2c1e9
Flatten the try-except.
2018-10-13 02:15:37 -07:00
Chris Jerdonek
5ad0379e8d
Remove the module-level function get_src_requirement().
2018-10-13 02:15:33 -07:00
Chris Jerdonek
1228f64ec0
Merge pull request #5873 from cjerdonek/remove-get-backend-from-location
...
Simplify vcs.get_src_requirement().
2018-10-13 00:57:17 -07:00
Chris Jerdonek
8dbbe165f8
Merge pull request #5838 from uranusjr/htmlpage-extract-breakdown-get-page
...
Refactor _get_html_page() to use exceptions for flow control
2018-10-11 12:27:17 -07:00
Tzu-ping Chung
fc53f711b9
More tests on successful scenarios, fix docstrings
2018-10-11 17:47:08 +08:00
Tzu-ping Chung
65260d0449
Fix behavior if archive-like URL is not HTTP(S)
...
The original implementation erros out when this happens, and the new one
follows. The debug logging message is however changed to be clearer about
what happened.
Also fixed some minor typos.
2018-10-11 17:45:22 +08:00
Tzu-ping Chung
68cf77ac0b
Only store what we need in _NotHTML
2018-10-11 17:45:22 +08:00
Tzu-ping Chung
a9ebb795ed
More detailed information on Content-Type error, fix typos
2018-10-11 17:45:11 +08:00
Tzu-ping Chung
d4da76ceaa
Move directory check out of _get_html_response()
...
This also "fixes" an edge case where a directory is dropped if it is
named like an archive.
2018-10-11 17:45:11 +08:00
Tzu-ping Chung
231e6165dd
Group HEAD optimization logic into HTML getter, add docs
2018-10-11 17:44:59 +08:00
Tzu-ping Chung
bad04d8549
Extract content type detection logic
2018-10-11 17:44:59 +08:00
Tzu-ping Chung
44713cafe5
Move VCS scheme check back out
2018-10-11 17:44:59 +08:00
Chris Jerdonek
00a2ff198e
Remove unneeded if block in vcs.get_src_requirement().
2018-10-10 02:34:40 -07:00
Chris Jerdonek
2f16b88fb3
Refactor away VcsSupport.get_backend_from_location().
2018-10-10 02:16:00 -07:00
Chris Jerdonek
47b94f19bb
Merge pull request #5869 from cjerdonek/remove-svn-freeze-code
...
Address #5866 : remove deprecated SVN-specific freeze code.
2018-10-09 02:19:08 -07:00
Pradyun Gedam
35f0983639
Merge pull request #5863 from benoit-pierre/drop_py25_workaround
...
drop workaround for Python<=2.5
2018-10-09 14:34:49 +05:30
Chris Jerdonek
faff436100
Add guard clause.
2018-10-08 22:57:32 -07:00
Chris Jerdonek
500598287d
Remove deprecated SVN-specific freeze code.
2018-10-08 22:27:04 -07:00
Xavier Fernandez
3832020a1f
Merge pull request #5483 from popravich/retry_fix
...
Handle RetryError in HTMLPage (fixes #5270 )
2018-10-08 23:12:34 +02:00
Chris Jerdonek
b3ac98eff4
Only define comments when needed.
2018-10-08 11:31:27 -07:00