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

Update AUTHORS and changelog for git submodules.

This commit is contained in:
Carl Meyer 2012-06-14 13:07:16 -06:00
parent 558d174097
commit c670678db0
3 changed files with 13 additions and 7 deletions

View file

@ -28,6 +28,7 @@ Luke Macken
Masklinn
Marc Abramowitz
Marcus Smith
Markus Hametner
Matt Maker
Nick Stenning
Nowell Strite

View file

@ -13,6 +13,9 @@ Beta and final releases planned for the second half of 2012.
develop (unreleased)
-------------------
* Pull in submodules for git editable checkouts. Fixes #289 and #421. Thanks
Hsiaoming Yang and Markus Hametner.
* Use a temporary directory as the default build location outside of a
virtualenv. Fixes issues #339 and #381. Thanks TC01.

View file

@ -2,7 +2,11 @@ from mock import patch
from pip.vcs.git import Git
from tests.test_pip import (reset_env, run_pip,
_create_test_package,)
from tests.git_submodule_helpers import _create_test_package_submodule, _change_test_package_submodule, _pull_in_submodule_changes_to_module, _create_test_package_with_submodule
from tests.git_submodule_helpers import (
_change_test_package_submodule,
_pull_in_submodule_changes_to_module,
_create_test_package_with_submodule,
)
def test_get_tag_revs_should_return_tag_name_and_commit_pair():
@ -78,13 +82,10 @@ def test_check_rev_options_should_handle_ambiguous_commit(branches_revs_mock,
assert result == ['123456'], result
def test_check_submodule_addition():
"""
Test if submodules will be pulled in on install, and updated on upgrade
Submodules are pulled in on install and updated on upgrade.
"""
env = reset_env()
module_path, submodule_path = _create_test_package_with_submodule(env)
@ -95,7 +96,8 @@ def test_check_submodule_addition():
_change_test_package_submodule(env, submodule_path)
_pull_in_submodule_changes_to_module(env, module_path)
update_result = run_pip('install', '-e', 'git+'+module_path+'#egg=version_pkg', '--upgrade', expect_error=True) # expect error because git writes to stdout in some weird cases
# expect error because git may write to stderr
update_result = run_pip('install', '-e', 'git+'+module_path+'#egg=version_pkg', '--upgrade', expect_error=True)
assert env.venv/'src/version-pkg/testpkg/static/testfile2' in update_result.files_created