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

801 commits

Author SHA1 Message Date
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
Chris Jerdonek e80a90e96c Add try-else clause. 2018-10-08 11:31:27 -07:00
Chris Jerdonek 39b413352d Combine some lines. 2018-10-08 11:31:27 -07:00
Chris Jerdonek f5026e7db9 Remove unneeded boolean flag variables. 2018-10-08 11:31:27 -07:00
Chris Jerdonek 7aa7bf0295 Add fourth guard clause. 2018-10-08 11:31:27 -07:00
Chris Jerdonek 6d84b4747a Add third guard clause. 2018-10-08 11:30:50 -07:00
Chris Jerdonek e4ce62a5de Add second guard clause. 2018-10-08 11:30:50 -07:00
Chris Jerdonek 16333ef1da Add first guard clause. 2018-10-08 11:29:39 -07:00
Chris Jerdonek 69b5917bc1
Merge pull request #5836 from uranusjr/bugfix-warn-directory-path-drop-index-url
Warn when dropping index URL value to directory
2018-10-08 11:20:35 -07:00
Pradyun Gedam 9e26002fcd
Bump deprecation version to unlock workflow 2018-10-08 20:46:17 +05:30
Benoit Pierre 0a58159571 drop workaround for Python<=2.5 2018-10-07 14:26:34 +02:00
Pradyun Gedam c86b74279a
Bump version to reopen for development 2018-10-05 17:16:33 +05:30
Pradyun Gedam 40d1fe382c
Bump version to 18.1 2018-10-05 01:53:28 +05:30
Pradyun Gedam c759504217
Merge pull request #5798 from pradyunsg/improve-configuration-handling
Improve configuration handling
2018-10-04 14:27:42 +05:30
Thomas Kluyver 32b8a797cb Remove unused variable 2018-10-02 14:29:58 +02:00
Thomas Kluyver 4286f49d6d Arrange imports as required by linter 2018-10-02 14:25:42 +02:00
Thomas Kluyver 9a1194e4be Exit 'pip check' with code 1 on problems parsing requirements 2018-10-02 12:38:16 +02:00
Benoit Pierre 464b2f30a8 fix support for invoking pip using python src/pip ...
Ensure the subprocess call to pip for installing the PEP 518
build dependencies is using the same version of pip.
2018-10-02 12:15:03 +02:00
Thomas Kluyver 3ec6775e1f Catch errors checking for conflicts, don't crash install 2018-10-02 12:07:48 +02:00
Thomas Kluyver 172a71b0cf Log warning when there's a problem parsing requirements 2018-10-02 12:03:26 +02:00
Thomas Kluyver cfac80f374 Catch errors parsing requirements to check packages 2018-10-02 12:00:53 +02:00
Alexey Popravka a853ca02b8 fix lint issues 2018-10-02 12:53:06 +03:00
Alexey Popravka 41a9d5e003 handle RetryError in HTMLPage/PackageFinder 2018-10-02 12:53:06 +03:00
Tzu-ping Chung 025dc45ad1 Don't need to unpack prematurely 2018-10-01 16:49:57 +08:00
Tzu-ping Chung bb6dae6e71 Inline PackageFinder._get_page() 2018-10-01 16:07:41 +08:00
Tzu-ping Chung 72779c674e Extract request part of get_page into helper
Also switch to use exceptions as flow control for VCS and Content-Type
detection. Hopefully this makes the flow much clearer.
2018-10-01 16:07:00 +08:00
Tzu-ping Chung 7a17a1f7dd Extract VCS scheme check into helper function 2018-10-01 15:54:04 +08:00
Tzu-ping Chung 8dcae5ba48 Warn when dropping index URL value to directory 2018-10-01 14:50:09 +08:00
Chris Jerdonek b6bbabe3e7
Merge pull request #5833 from uranusjr/htmlpage-extract-trimming
Move static methods out of HTMLPage
2018-09-30 23:12:06 -07:00
Pradyun Gedam 4a07894b21
Merge pull request #5831 from pradyunsg/vendoring/18.1-updates
Vendoring updates for 18.1
2018-09-30 23:51:50 +05:30
Pradyun Gedam 34d5af662f
Merge branch 'master' into improve-configuration-handling 2018-09-30 23:04:55 +05:30
Pradyun Gedam caabd1f8b2
Fix the vendoring script to cover relative imports 2018-09-30 22:55:51 +05:30
Tzu-ping Chung bd6a7ea6c6 Pass the URL instead of the page itself into Link
This argument (comes_from) is only used for reporting, and it is enough
to pass in only the URL since that's what is actually used.
2018-09-30 17:46:21 +08:00
Tzu-ping Chung d275360745 Move static methods out of HTMLPage
Because the class is going away, but these functions will still be
needed by the thing replacing it.
2018-09-30 17:46:21 +08:00
Chris Jerdonek 356dc432f7
Merge pull request #5818 from cjerdonek/simplify-from-dist
Add FrozenRequirement._init_args_from_dist() helper method
2018-09-30 02:28:53 -07:00
Pradyun Gedam 50ab3bf51e
Upgrade pytoml to 0.1.19 2018-09-29 18:15:46 +05:30
Pradyun Gedam 04c6e5b27e
Upgrade packaging to 18.0 2018-09-29 18:15:29 +05:30
Pradyun Gedam 619b91e334
Upgrade certifi to 2018.8.24 2018-09-29 18:15:29 +05:30
Pradyun Gedam 9cec269d19
Upgrade pkg_resources to 40.4.3 (via setuptools) 2018-09-29 18:15:29 +05:30
Pradyun Gedam 773f16111f
Merge pull request #5796 from hugovk/upgrade-pyparsing
Upgrade pyparsing from 2.2.0 to 2.2.1
2018-09-29 18:14:34 +05:30
Tzu-ping Chung 6f85fcdd7d Move clean_link out of HTMLPage 2018-09-28 23:58:24 +08:00
Tzu-ping Chung 47ba191d3a Rename HTMLPage.links to clarify its purpose 2018-09-28 16:53:02 +08:00
Tzu-ping Chung aa83222bf0 Rename base URL detection function 2018-09-28 16:52:57 +08:00
Tzu-ping Chung dc7e6b5950 Refactor _parse_base_url to use early return 2018-09-28 15:52:00 +08:00
Tzu-ping Chung 28ef0c2014 Convert HTMLPage.parsed into a local variable
This attribute is only used by HTMLPage.links, which is only used once
per instance in PackageFinder.find_all_candidates(), so this change does
not affect performance or behavior, but improves data locality.
2018-09-28 15:02:51 +08:00
Tzu-ping Chung 94d0428924 Extract encoding detection into helper function 2018-09-28 15:00:58 +08:00
Tzu-ping Chung 40bf3688b4 Convert base_url property into local variable
This property is only used in HTMLPage.links, which is only called once
per instance in PackageFinder.find_all_candidates(). This would not
affect performance or behavior, but improves data locality.

The unit test of this property is and modified to test the underlying
function instead.
2018-09-28 14:56:52 +08:00
Tzu-ping Chung 96a3254a1f Extract base URL parsing logic 2018-09-28 14:49:40 +08:00
Donald Stufft f4a41a2048
Merge pull request #5819 from uranusjr/htmlpage-clean
HTMLPage cleanup and egg_info_matches fix
2018-09-27 10:21:22 -04:00
Tzu-ping Chung d71f3311dc Fix egg_info_matches version split logic 2018-09-27 15:41:07 +08:00
Tzu-ping Chung 894f6558f1 Remove skip_archives argument 2018-09-27 15:41:02 +08:00
Chris Jerdonek 309cb37091 Add FrozenRequirement._init_args_from_dist() helper method. 2018-09-26 22:11:27 -07:00
Chris Jerdonek 520df5356f Add misc.make_vcs_requirement_url(). 2018-09-25 01:31:34 -07:00
Chris Jerdonek 59b8a80c9b Remove two unreachable returns in VersionControl.get_src_requirement(). 2018-09-20 00:34:05 -07:00
Pradyun Gedam 6a18c24803
Show error messages when configuration-related errors occur 2018-09-20 11:18:22 +05:30
Pradyun Gedam e938d439a2
Switch to a global variable for exit status codes 2018-09-20 11:18:17 +05:30
hugovk d90532f8dd Upgrade pyparsing to 2.2.1 2018-09-19 09:15:47 +03:00
Pradyun Gedam d5b363be5b
Revert "Limit progress updates to avoid swamping the TTY" 2018-09-19 09:19:08 +05:30
Hugo c14c28f758 Upgrade pyparsing to 2.2.1
From https://github.com/pyparsing/pyparsing/blob/pyparsing_2.2.1/pyparsing.py
2018-09-18 21:27:03 +03:00
Pradyun Gedam 52cf26e5cb
Merge pull request #5709 from BoboTiG/fix-warnings
Fix several warnings
2018-09-18 22:25:00 +05:30
Pradyun Gedam 392cb09b50
Merge pull request #5723 from cjerdonek/vcs-add-git-get-branch
Fix the "new install" case of issue #2037
2018-09-18 19:59:59 +05:30
Donald Stufft dcc3c16b54 Only revalidate /simple/ pages instead of caching for 10 minutes 2018-09-18 06:54:51 -04:00
Laurie Opperman 10911fe881 Fix error when autocompleting after flag
When running autocomplete after any command-line option with unspecified
'metavar' attribute, a traceback for an 'AttributeError' would be
displayed. This is fixed for first checking if 'metavar' was defined.
Fixes #5751
2018-09-17 21:56:46 +10:00
Bernhard M. Wiedemann f4bda78815 Sort list of RECORD entries
Without sorting, the 'installed' hash had entries in random order
that caused output to differ for every run.

See https://reproducible-builds.org/ for why this matters.

Sorting all entries to make testing easier.
2018-09-11 13:51:33 +02:00
Pradyun Gedam 1e0247f078
Allow passing cache_dir as False to SelfCheckState 2018-09-06 00:43:59 +05:30
Pradyun Gedam 885a000775
Disable pip's version check for commands that do not touch the index 2018-09-06 00:23:52 +05:30
Pradyun Gedam 0d9c05ec32
Merge pull request #5693 from sinscary/format_control_refactor
Refactoring: Move FormatControl to separate class
2018-09-04 19:03:24 +05:30
Nitesh Sharma 98966b91c7 update parametrize test and comment 2018-09-04 14:36:09 +05:30
Nitesh Sharma 82b25ffe6c sort imports properly 2018-09-02 23:25:14 +05:30
Nitesh Sharma fd692f32ba move format control to models and write parametrized test 2018-09-02 23:08:07 +05:30
Jonathan Herbert bc41c03058 Remove unmatched bracket in --no-clean help string 2018-09-02 10:43:14 -04:00
Nitesh Sharma 6a6c2f2226 remove mutable default argument and implement not equal also 2018-08-28 22:51:12 +05:30
Nitesh Sharma c6bf7acc97 fix linting errors 2018-08-28 22:05:18 +05:30
Nitesh Sharma b818b8324d refactor format control and rename test functions 2018-08-28 21:45:40 +05:30
Nitesh Sharma e10a613212 Refactoring: Move FormatControl to separate class
This moves FormatControl named tuple and it's all related
methods to separate class.

Closes https://github.com/pypa/pip/issues/5592
2018-08-28 21:12:42 +05:30
Pradyun Gedam afd3945089
Mention PEP 508 URL dependencies as a replacement for dependency links 2018-08-23 12:29:58 +05:30
Pradyun Gedam 2b3609a37d
Merge pull request #5664 from cjerdonek/issue-5375-svn-ssh-auth
Fix #5375: add editable install support for svn+ssh URLs with a username
2018-08-22 08:33:08 +05:30
Pradyun Gedam 688bc1ee6f
Move InstallRequirement.from_req to constructors module 2018-08-21 20:41:36 +05:30
Pradyun Gedam a5a07fe61c
Move InstallRequirement.from_line to constructors module 2018-08-21 20:37:40 +05:30
Pradyun Gedam 69b494aa29
Move InstallRequirement.from_editable to a constructors module 2018-08-21 20:27:22 +05:30
Chris Jerdonek 06f329059d Update fetch_new() to checkout the correct branch. 2018-08-21 04:00:35 -07:00
Chris Jerdonek b11bf9e978 Change get_revision_sha() to return is_branch. 2018-08-21 04:00:35 -07:00
Chris Jerdonek 8d6f7b56fa Add Git.get_branch(). 2018-08-21 04:00:35 -07: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
Pradyun Gedam 74721bcc8b
Merge pull request #5708 from pradyunsg/fix/vendoring-first-line-imports
Fix vendoring import rewriting, when imports are on first line
2018-08-17 10:59:22 +05:30
Pradyun Gedam 7ab40252e6
Merge pull request #5623 from cjerdonek/vcs-fix-install-git-ref
Fix #5624: installing a Git ref for installs other than the first
2018-08-17 09:20:48 +05:30
Mickaël Schoentgen 860deed7db Fix DeprecationWarning: the imp module is deprecated in favour of importlib in pep425tags.py 2018-08-16 21:08:23 +02:00
Mickaël Schoentgen cc50bd37b8 Fix 'logging.warn' method is deprecated, use 'warning' instead in wheel.py 2018-08-16 20:40:29 +02:00
Pradyun Gedam f665403da3
Fix vendoring import rewriting, when imports are on first line 2018-08-17 00:01:54 +05:30
Pradyun Gedam 7f3df6d2e2
Don't import Link from pip._internal.index 2018-08-16 14:29:24 +05:30
Pradyun Gedam 62b03f2a3a
Merge pull request #5124 from gaul/ui/limit-progress
Limit progress updates to avoid swamping the TTY
2018-08-13 23:32:10 +05:30
Pradyun Gedam 4113fda9d5
Address review comments 2018-08-13 10:38:06 +05:30
Pradyun Gedam 38dbff5162
Add better comments 2018-08-13 10:34:27 +05:30
Pradyun Gedam cbd50ca86e
Reuse an existing variable 2018-08-13 10:34:26 +05:30
Pradyun Gedam 29f48dd3af
Return early and reduce indentation 2018-08-13 10:34:26 +05:30
Pradyun Gedam fa91cf0d8d
🎨 Style Cleanups 2018-08-13 10:34:26 +05:30
Pradyun Gedam 7e58c0d7db
Cleanup assignment of extras 2018-08-13 10:34:26 +05:30
Pradyun Gedam eb2935509f
Move out conditional logic to a named variable 2018-08-13 10:34:26 +05:30
Pradyun Gedam 7203b82929
Reduce a level of indentation 2018-08-13 10:34:26 +05:30
Pradyun Gedam 0a46de7745
Give a meaningful name to a complex conditional 2018-08-13 10:34:25 +05:30
Pradyun Gedam f529aa7fc3
Reduce a level of indentation 2018-08-13 10:34:25 +05:30
Pradyun Gedam 0bc7a974fa
Return early 2018-08-13 10:34:25 +05:30
Pradyun Gedam 20127bfe98
Merge pull request #5404 from sixninetynine/feature/platforms_for_target
Open up plat/abi/impl options to `install --target`
2018-08-12 22:09:01 +05:30
Paul Moore 78144e264a
Merge pull request #5692 from pfmoore/pep517
Refactorings and work in preparation for PEP 517
2018-08-11 08:35:36 +01:00
Paul Moore 08e8d908f7 Address review comments 2018-08-09 08:55:28 +01:00
Chris Jerdonek d5af777d0d Fix issue #5624: installing a Git ref for installs after the first. 2018-08-08 00:16:57 -07:00
Loren Carvalho cddcb1407f Open up plat/abi/impl options to install --target
* Move dist restriction options to be re-usable (between install/download)
* Make dist restriction options usable in `install` (exclusively with --target)
* Add a check_supported_wheels bool to RequiriementSet for non-resolved (full path) dependencies
2018-08-05 16:13:20 -05:00
Paul Moore efa5ad31e7 Refactor load_pyproject_toml into a standalone module 2018-08-05 14:52:46 +01:00
Pradyun Gedam cc47adee9a
Change the import names as renamed 2018-08-05 14:24:18 +05:30
Pradyun Gedam 7dbe62ddd6
Move logic for parsing commands into a main_parser 2018-08-05 14:24:08 +05:30
Pradyun Gedam db72d427c5
Move autocompletion logic out to pip._internal.cli.autocompletion 2018-08-05 14:24:07 +05:30
Pradyun Gedam 158c9bfe45
Move creation of CLI parser into pip._internal.cli 2018-08-05 14:24:07 +05:30
Paul Moore ada59afaeb Fix bug in InstallRequirement: __str__ could return None 2018-08-04 08:50:35 +01:00
Paul Moore 4e018d76e2 Check for assumed requirements once the build environment is created 2018-08-02 20:08:04 +01:00
Paul Moore 8cdf6564fd Stop trying to lazy-load pyproject.toml, it isn't worth it. 2018-08-02 20:07:52 +01:00
Paul Moore bb4688cb8f Cosmetic fixes 2018-08-01 16:15:11 +01:00
Paul Moore c042e44ebe Keep the actual PEP 517 hook caller as an attribute of the InstallRequirement 2018-08-01 11:34:11 +01:00
Paul Moore cfe892f21b Vendor the pep517 library 2018-08-01 11:16:22 +01:00
Paul Moore 52d87f2e30 Refactoring metadata handling in InstallRequirement 2018-07-31 21:11:45 +01:00
Paul Moore caad33367c Updated comment omitted from previous commit 2018-07-31 19:23:59 +01:00
Paul Moore a0af1eaf02 Address review comments 2018-07-31 18:49:40 +01:00
Paul Moore 73a5847b26 Added unit tests for use_pep517 flag 2018-07-31 16:21:20 +01:00
Paul Moore c5a6843c08 Corrections to use_pep517 implementation 2018-07-31 16:21:20 +01:00
Paul Moore 877db9f4c1 Add use_pep517 flag to requirements 2018-07-31 16:21:19 +01:00
Paul Moore b9df39dbed Fix some formatting 2018-07-31 16:21:19 +01:00
Paul Moore fc7bbf1b39 Make pyproject.toml values into properties of the requirement 2018-07-31 16:21:19 +01:00
Paul Moore 055b5a726e A project is installable if it has either setup.py or pyproject.toml 2018-07-31 16:21:19 +01:00
Paul Moore 695be300bc Make args for prep_for_dist consistent 2018-07-30 09:42:11 +01:00
Pradyun Gedam b13cee6388
Merge branch 'master' into refactor/pip-cli-subpackage 2018-07-30 09:52:18 +05:30
Pradyun Gedam 263a312194
Don't import SUCCESS from base_command 2018-07-30 09:46:25 +05:30
Pradyun Gedam 1694a5f1bf
Move status_codes to pip._internal.cli 2018-07-30 09:43:53 +05:30
Pradyun Gedam 8314dcb7d0
Rename baseparser to parser 2018-07-30 09:35:08 +05:30
Pradyun Gedam 21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +05:30
Pradyun Gedam abfe928385
Update the vendored requests for the moved compat module 2018-07-29 18:32:22 +05:30
Pradyun Gedam 4fc697847a
Update imports for the moved compat module 2018-07-29 18:32:20 +05:30
Pradyun Gedam 922f8d9857
Sort imports 2018-07-29 18:26:33 +05:30
Pradyun Gedam 8b4713f63c
Move cmdoptions to pip._internal.cli 2018-07-29 18:26:33 +05:30
Pradyun Gedam 772435d620
Import cmdoptions instead of it's internal functions 2018-07-29 18:26:32 +05:30
Pradyun Gedam 8d45e0e647
Move basecommand to pip._internal.cli 2018-07-29 18:26:28 +05:30
Pradyun Gedam eb0c9670f8
Move baseparser into pip._internal.cli 2018-07-29 18:26:28 +05:30
Pradyun Gedam d3065ee937
Create a pip._internal.cli package 2018-07-29 18:26:28 +05:30
Pradyun Gedam 3ecd1f17c5
Move pip._internal.compat to pip._internal.utils.compat 2018-07-29 16:46:26 +05:30
Chris Jerdonek e1d60f850b Fix #5375: add editable install support for svn+ssh URLs with a username. 2018-07-29 01:08:15 -07:00
Pradyun Gedam 7f4673d7a2
Merge pull request #5644 from sinscary/fix_invalid_val_error
Show appropriate error message
2018-07-27 18:38:51 +05:30
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
Chris Jerdonek 58b21d18dc Add split_auth_from_netloc() to misc.py. 2018-07-25 10:35:50 -07:00
Nitesh Sharma ad783151c5 fix pylint issue with space 2018-07-25 23:01:17 +05:30
Nitesh Sharma e22cf6cce1 make error message function helper one 2018-07-25 22:57:55 +05:30
Chris Jerdonek 1a9128dcfc Fix the "+" check in VersionControl.get_url_rev_and_auth() (#5651)
* Add tests, including a failing test.

* Fix "+" check in VersionControl.get_url_rev_and_auth().

* Change AssertionError to ValueError.

This addresses a review comment by @pradyunsg and @xavfernandez.

* Use "!r" inside the format string.

This incorporates a suggestion by @barneygale.
2018-07-25 09:42:13 +02:00
Nitesh Sharma e5dc3cf854 show error message with wrong configuration option 2018-07-24 23:10:02 +05:30
Pradyun Gedam 3e86bf786f
Sort Imports 2018-07-24 08:09:17 +05:30
Pradyun Gedam 0b1b4797c0
Fix issues that occured due to merging 2018-07-24 08:08:43 +05:30
Pradyun Gedam 35c66f3ade
Fix a mistake made while merging 2018-07-24 08:07:05 +05:30
Pradyun Gedam 8df8e53901
Merge branch 'master' into refactor/introduce-models 2018-07-24 01:35:56 +05:30
Nitesh Sharma 01a0fa5f04 Show appropriate error message
This catches code exception if wrong arguments passed to cmd options
It also adds error message that suggests correct arguments to pass

Fixes: https://github.com/pypa/pip/issues/5616
2018-07-23 21:44:16 +05:30
Paul Moore 8cc943e07f
Merge pull request #5642 from pfmoore/correct_case
Report files in original (filesystem) case
2018-07-23 15:09:30 +01:00
Paul Moore f1033288a3 Placate flake8's moaning 2018-07-23 13:26:05 +01:00
Pradyun Gedam 09bcdd5d5f
Merge pull request #5636 from cjerdonek/vcs-remove-translate-egg-surname
Remove the unused VersionControl.translate_egg_surname()
2018-07-23 17:52:46 +05:30
Paul Moore ab0644479f Report files in original (filesystem) case 2018-07-23 13:21:07 +01:00
Pradyun Gedam 53e534a330
Merge pull request #5639 from pradyunsg/misc/remove-useless-call
Inline a super-simple function
2018-07-23 15:14:24 +05:30
Pradyun Gedam 531be4f886
Merge pull request #5571 from bstrdsmkr/pep508_urls_as_deps
Allow PEP508 url dependencies in install_requires
2018-07-23 15:13:42 +05:30
Pradyun Gedam ae58decefe
Inline a super-simple function 2018-07-23 10:47:43 +05:30
Chris Jerdonek a1e3275287 Remove the unused VersionControl.translate_egg_surname(). 2018-07-22 11:42:17 -07:00
Pradyun Gedam a2968978c9
Merge pull request #5606 from cjerdonek/vcs-parse-url-once
Change VersionControl to parse the URL only once inside get_url_rev().
2018-07-22 23:37:01 +05:30
Pradyun Gedam c81597b368
Merge pull request #5614 from barneygale/remove_get_info
Remove vestigial `VersionControl.get_info()` method.
2018-07-22 22:35:38 +05:30
Pradyun Gedam 8be6062f13
Bump for development of 18.1 (#5630) 2018-07-22 15:05:04 +05:30
Pradyun Gedam aa84f6b360
Bump version for release 2018-07-22 11:11:57 +05:30
Pradyun Gedam b8107a39f7
Fix message generation which caused a test failure 2018-07-21 16:27:15 +05:30
Pradyun Gedam 2dd3a28bac
Fix message nit pointed out by @pfmoore 2018-07-21 16:26:15 +05:30
Pradyun Gedam 4d772e6cf6
Start rejecting pyproject.toml files with an empty build-system table 2018-07-21 16:24:04 +05:30
Pradyun Gedam 7fe759bdb1
Cleanup existing PEP 518 logic 2018-07-21 16:24:04 +05:30
Pradyun Gedam c18f19a6a4
Don't warn if pyproject.toml does not contain build-system.requires 2018-07-21 12:58:27 +05:30
Barney Gale 05eacbcf63 Address review feedback 2018-07-20 22:48:12 +01:00
Pradyun Gedam 6acdceaf39
🎨 2018-07-20 10:07:46 +05:30
Pradyun Gedam d6472d4c61
Merge pull request #5603 from pradyunsg/vendoring/update-readme
Update vendoring README file
2018-07-20 09:40:29 +05:30
Pradyun Gedam 0bd01d9462
Merge pull request #5336 from benoit-pierre/src_build_reqs_in_pep518
PEP 518: enable source installs for build dependencies
2018-07-20 09:36:52 +05:30
Pradyun Gedam 169ca95666
Merge pull request #5542 from pradyunsg/dev-ops/deprecation-utilities
Introduce a helper function for deprecation
2018-07-20 00:37:53 +05:30
Chris Jerdonek c6e65a0e40 Rename methods to get_netloc_and_auth() and get_url_rev_and_auth().
This addresses review comments by @xavfernandez.
2018-07-19 09:13:05 -07:00
Pradyun Gedam 459415697e
Merge pull request #5609 from cjerdonek/vcs-add-is-repository-dir
Break out VersionControl.is_repository_directory().
2018-07-18 16:21:53 +05:30
Chris Jerdonek c6a18767dd Make is_repository_directory() a class method.
This addresses a review suggestion of @xavfernandez.
2018-07-17 20:53:42 -07:00
barneygale 814b4bd52a Remove vestigial VersionControl.get_info() method. 2018-07-18 01:38:12 +01:00
Chris Jerdonek f62440950b Use is_repository_directory() inside VersionControl.controls_location(). 2018-07-17 13:05:26 -07:00
Chris Jerdonek 977d0740fb Add more explanation to parse_netloc()'s docstrings.
This addresses @pradyunsg's review comments.
2018-07-17 08:40:15 -07:00
Chris Jerdonek 22acd1fed1 Break out VersionControl.is_repository_directory(). 2018-07-17 08:20:45 -07:00
Pradyun Gedam 901578419d
Fix a merging artifact that broke the linter 2018-07-17 12:46:37 +05:30
Pradyun Gedam cff2367bf5
Merge pull request #5604 from nehaljwani/generic_was_installed
Make pip_installed_by_pip() more generic
2018-07-16 12:12:42 +05:30
Pradyun Gedam f77a63faa9
Merge pull request #5541 from pradyunsg/refactor/logging
Refactor the logging setup into a separate function and cleanup
2018-07-16 12:07:40 +05:30
Chris Jerdonek e37a17cc09 Change VersionControl to parse the URL only once to start. 2018-07-15 15:03:06 -07:00
Nehal J Wani 96f9fcc4a0
Make pip_installed_by_pip() more generic 2018-07-15 21:32:31 +05:30
Pradyun Gedam 490b6fd062
Document new debundling suggestions 2018-07-15 18:38:44 +05:30
Pradyun Gedam 5a608324fb
Styling changes 2018-07-15 18:37:45 +05:30
Pradyun Gedam 6813caadab
Be factually correct 2018-07-15 18:37:24 +05:30
Pradyun Gedam 28f183e1a2
Document parameters of the deprecated helper 2018-07-15 17:15:35 +05:30
Pradyun Gedam 3e0e45ba61
Nicer language in line with parameter name 2018-07-15 17:15:35 +05:30
Pradyun Gedam e027cd8449
Update deprecation utilities to specify versions
Also:
- Remove conditional warning/error level logging
- Remove now-obsolete class
- Update call sites as per new signature
2018-07-15 17:15:31 +05:30
Pradyun Gedam 4c2b268d52
Add "DEPRECATION" to start of message when composing it 2018-07-15 17:02:12 +05:30
Pradyun Gedam a1912454b8
Rename variable for clarity
It doesn't represent warnings.showwarning's current state so,
the name shouldn't suggest that.
2018-07-15 17:02:12 +05:30
Pradyun Gedam a8eaf1e0ff
Add a helper function for deprecation (and use it) 2018-07-15 17:02:03 +05:30
Pradyun Gedam 7769ddd52c
Rename deprecation warnings to not be versioned 2018-07-15 16:59:37 +05:30