-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HWORKS-901] Git installation support should not prepend git+ (#1449)
- Loading branch information
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,14 +178,30 @@ | |
delete_env(@project[:id], ENV['PYTHON_VERSION']) | ||
wait_for_running_command(@project[:id]) | ||
end | ||
it 'install from git' do | ||
it 'install from git branch using @' do | ||
expect(CondaCommands.find_by(project_id: @project[:id])).to be_nil | ||
@project = create_env_and_update_project(@project, ENV['PYTHON_VERSION']) | ||
uninstall_library(@project[:id], ENV['PYTHON_VERSION'], 'matplotlib') | ||
|
||
wait_for_running_command(@project[:id]) | ||
|
||
install_library(@project[:id], ENV['PYTHON_VERSION'], '[email protected]', 'GIT', 'git', 'matplotlib @ git+https://github.com/matplotlib/[email protected]') | ||
|
||
wait_for_running_command(@project[:id]) | ||
|
||
list_libraries(@project[:id], ENV['PYTHON_VERSION']) | ||
|
||
matplotlib_library = json_body[:items].detect { |library| library[:library] == "matplotlib" } | ||
expect(matplotlib_library[:version]).to eq "3.7.2" | ||
end | ||
it 'install from git branch using git+' do | ||
expect(CondaCommands.find_by(project_id: @project[:id])).to be_nil | ||
@project = create_env_and_update_project(@project, ENV['PYTHON_VERSION']) | ||
uninstall_library(@project[:id], ENV['PYTHON_VERSION'], 'hops') | ||
|
||
wait_for_running_command(@project[:id]) | ||
|
||
install_library(@project[:id], ENV['PYTHON_VERSION'], '[email protected]', 'GIT', 'git', 'https://github.com/logicalclocks/[email protected]') | ||
install_library(@project[:id], ENV['PYTHON_VERSION'], '[email protected]', 'GIT', 'git', 'git+https://github.com/logicalclocks/[email protected]') | ||
|
||
wait_for_running_command(@project[:id]) | ||
|
||
|
@@ -194,6 +210,22 @@ | |
hops_library = json_body[:items].detect { |library| library[:library] == "hops" } | ||
expect(hops_library[:version]).to eq "2.0.0.2" | ||
end | ||
it 'install from git branch using https://' do | ||
expect(CondaCommands.find_by(project_id: @project[:id])).to be_nil | ||
@project = create_env_and_update_project(@project, ENV['PYTHON_VERSION']) | ||
uninstall_library(@project[:id], ENV['PYTHON_VERSION'], 'hops') | ||
|
||
wait_for_running_command(@project[:id]) | ||
|
||
install_library(@project[:id], ENV['PYTHON_VERSION'], '[email protected]', 'GIT', 'git', 'https://github.com/logicalclocks/[email protected]') | ||
|
||
wait_for_running_command(@project[:id]) | ||
|
||
list_libraries(@project[:id], ENV['PYTHON_VERSION']) | ||
|
||
hops_library = json_body[:items].detect { |library| library[:library] == "hops" } | ||
expect(hops_library[:version]).to eq "2.1.0.1" | ||
end | ||
it 'install from wheel' do | ||
expect(CondaCommands.find_by(project_id: @project[:id])).to be_nil | ||
@project = create_env_and_update_project(@project, ENV['PYTHON_VERSION']) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters