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

50 commits

Author SHA1 Message Date
Chris Jerdonek 8a036105dd Make get_revision() and get_revision_hash() class methods. 2019-01-09 01:52:19 -08:00
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
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 929c95833d Address review comments. 2018-12-20 17:39:08 -08:00
Chris Jerdonek 1e903eab5a Improve branch detection to work if a tag exists with the same name. 2018-12-16 12:00:42 -08:00
Maxim Kurnikov 5e5904e61c Add type annotations for pip._internal.utils and pip._internal.vcs.__init__ (#6061) 2018-12-08 08:47:24 +05:30
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
Chris Jerdonek 07900ed732 Change VersionControl.get_src_requirement() to accept the project name. 2018-11-08 04:24:05 -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
Chris Jerdonek 5ad0379e8d Remove the module-level function get_src_requirement(). 2018-10-13 02:15:33 -07: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
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
Chris Jerdonek d5af777d0d Fix issue #5624: installing a Git ref for installs after the first. 2018-08-08 00:16:57 -07:00
Pradyun Gedam 21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +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 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
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
Barney Gale 05eacbcf63 Address review feedback 2018-07-20 22:48:12 +01:00
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
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
Chris Jerdonek e37a17cc09 Change VersionControl to parse the URL only once to start. 2018-07-15 15:03:06 -07:00
Chris Jerdonek 1f6e1e51ec Make get_url_rev() accept an url argument. 2018-07-11 00:51:38 -07:00
Chris Jerdonek 701d010c02 Implement VersionControl.obtain() in the base class. 2018-07-08 22:46:25 -07:00
Chris Jerdonek 64d205e896 Refactor out a new VersionControl.fetch_new() method. 2018-07-07 21:55:55 -07:00
Chris Jerdonek 4555cd3563 Remove the checkout variable from VersionControl.check_destination(). 2018-07-03 01:33:23 -07:00
Chris Jerdonek 33481c6625 Return early in VersionControl.check_destination() if no prompt. 2018-06-30 19:13:53 -07:00
Chris Jerdonek 9a7564e5c5 Use guard clause in VersionControl.check_destination(). 2018-06-25 03:44:31 -07:00
Pradyun Gedam 54722aa7ec
Remove unused imports 2018-06-13 13:17:30 +05:30
Pradyun Gedam a121abbc30
Add flake8 ignores for mypy imports 2018-06-13 13:17:30 +05:30
Chris Jerdonek da30b7007d Address @pradyunsg's review comment. 2017-10-05 02:32:54 -07:00
Chris Jerdonek d646aaca72 Choose a better name, and other clean-ups. 2017-10-05 02:32:54 -07:00
Chris Jerdonek d1b9441595 Change check_version() to accept a commit hash / id. 2017-10-05 02:32:54 -07:00
Chris Jerdonek 6a0d3aa66e Update for mypy. 2017-10-02 15:37:03 -07:00
Chris Jerdonek 3498b19a8b Address issue #1130: make pip ignore GIT_DIR and GIT_WORK_TREE. 2017-10-02 15:35:30 -07:00
Chris Jerdonek 3e56733df4 Add a RevOptions class (#4707)
* Add the RevOptions class, and test.

* Start using the RevOptions class.

* Add news file.

* Update for mypy.

* Fix test after rebasing.

* Address @xavfernandez's review comments.
2017-10-02 00:21:11 +02: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
Renamed from pip/vcs/__init__.py (Browse further)