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
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
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
d5b363be5b
Revert "Limit progress updates to avoid swamping the TTY"
2018-09-19 09:19:08 +05:30
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
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
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