Commit Graph

598 Commits

Author SHA1 Message Date
Pradyun Gedam c759504217
Merge pull request #5798 from pradyunsg/improve-configuration-handling
Improve configuration handling
2018-10-04 14:27:42 +05:30
Pradyun Gedam 3350cc4516
bodge: Allow both str and repr to be used for configuration file name
This is because Python 2's and Python 3's configparser treat the two
differently and we're reusing that message.
2018-10-03 20:23:40 +05:30
Pradyun Gedam 34d5af662f
Merge branch 'master' into improve-configuration-handling 2018-09-30 23:04:55 +05:30
Pradyun Gedam 29b12fa80b
Fix test to exactly match output 2018-09-30 23:04:46 +05:30
Tzu-ping Chung 00c043d144 Add unit tests for egg_info_matches 2018-09-30 01:41:06 +08:00
Tzu-ping Chung aa83222bf0 Rename base URL detection function 2018-09-28 16:52:57 +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
Chris Jerdonek 4afc1e3f69 Use *args in the test.
This incorporates a review suggestion of @pradyunsg.
2018-09-25 02:23:32 -07:00
Chris Jerdonek 520df5356f Add misc.make_vcs_requirement_url(). 2018-09-25 01:31:34 -07:00
Pradyun Gedam 6a18c24803
Show error messages when configuration-related errors occur 2018-09-20 11:18:22 +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
Jon Dufresne 8136b410f7 Correct capitalization of PyPI
As spelled on https://pypi.org/.
2018-09-16 15:30:52 -07:00
Pradyun Gedam 1e0247f078
Allow passing cache_dir as False to SelfCheckState 2018-09-06 00:43:59 +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 a90c641868 Use equality operator for format_control instances 2018-09-02 23:14:47 +05:30
Nitesh Sharma fd692f32ba move format control to models and write parametrized test 2018-09-02 23:08:07 +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 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 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 b11bf9e978 Change get_revision_sha() to return is_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 3b1be840fc Fix one ResourceWarning: unclosed file in test_req.py 2018-08-16 21:08:23 +02:00
Pradyun Gedam 7f3df6d2e2
Don't import Link from pip._internal.index 2018-08-16 14:29:24 +05:30
Chris Jerdonek d5af777d0d Fix issue #5624: installing a Git ref for installs after the first. 2018-08-08 00:16:57 -07:00
Chris Jerdonek 8d0423fcbb Simplify test_bazaar__get_url_rev_and_auth(). 2018-08-07 09:06:30 -07:00
Pradyun Gedam 09f68728f8
Merge pull request #5691 from cjerdonek/vcs-combine-test-files
Combine functional/test_install_vcs_git.py and functional/test_vcs.py with other modules
2018-08-07 19:29:48 +05:30
Pradyun Gedam 0f40c25b4e
Fix a Windows specific import 2018-08-05 19:39:58 +05:30
Pradyun Gedam cc47adee9a
Change the import names as renamed 2018-08-05 14:24:18 +05:30
Chris Jerdonek f115d1fa2d Combine tests/functional/test_install_vcs_git.py with other test modules. 2018-08-02 13:16:23 -07:00
Paul Moore 52d87f2e30 Refactoring metadata handling in InstallRequirement 2018-07-31 21:11:45 +01:00
Paul Moore 73a5847b26 Added unit tests for use_pep517 flag 2018-07-31 16:21:20 +01:00
Pradyun Gedam b13cee6388
Merge branch 'master' into refactor/pip-cli-subpackage 2018-07-30 09:52:18 +05:30
Pradyun Gedam 21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +05:30
Pradyun Gedam 4fc697847a
Update imports for the moved compat module 2018-07-29 18:32:20 +05:30
Pradyun Gedam 8d45e0e647
Move basecommand to pip._internal.cli 2018-07-29 18:26:28 +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
Chris Jerdonek 58b21d18dc Add split_auth_from_netloc() to misc.py. 2018-07-25 10:35:50 -07:00
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
Pradyun Gedam 68112c826d
Update PackageIndex tests for the addition of TestPyPI 2018-07-24 08:33:40 +05:30
Pradyun Gedam 8df8e53901
Merge branch 'master' into refactor/introduce-models 2018-07-24 01:35:56 +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 ab0644479f Report files in original (filesystem) case 2018-07-23 13:21:07 +01:00
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 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