-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates for Julia 0.7, version parsing, and latest conda version (#103)
* use VersionParsing to parse version numbers, drop 0.5 support * updates for 0.7, fixes for latest Conda version where environments do not get their own conda.exe and other changes
- Loading branch information
Showing
6 changed files
with
38 additions
and
68 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ os: | |
- osx | ||
- linux | ||
julia: | ||
- 0.5 | ||
- 0.6 | ||
- nightly | ||
env: | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
julia 0.5 | ||
julia 0.6 | ||
BinDeps | ||
Compat 0.27.0 | ||
Compat 0.62.0 | ||
JSON | ||
VersionParsing |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,27 @@ | ||
using Conda | ||
using BinDeps | ||
using Base.Test | ||
using Compat | ||
using Conda, BinDeps, Compat, VersionParsing | ||
using Compat.Test | ||
|
||
env = Conda.Environment(:test_conda_jl) | ||
env = :test_conda_jl | ||
@test Conda.exists("curl", env) | ||
Conda.add("curl", env) | ||
|
||
if Compat.Sys.isunix() | ||
curl_path = joinpath(Conda.prefix(env), "bin", "curl-config") | ||
end | ||
if Compat.Sys.iswindows() | ||
curl_path = joinpath(Conda.lib_dir(env), "curl.exe") | ||
end | ||
exe = Compat.Sys.iswindows() ? ".exe" : "" | ||
|
||
curl_path = joinpath(Conda.bin_dir(env), "curl" * exe) | ||
@test isfile(curl_path) | ||
|
||
@test isfile(joinpath(Conda.bin_dir(env), basename(curl_path))) | ||
|
||
Conda.rm("curl", env) | ||
if Compat.Sys.isunix() | ||
@test !isfile(curl_path) | ||
end | ||
@test !isfile(curl_path) | ||
|
||
@test isfile(Conda.conda_bin(env)) | ||
Conda.add("python", env) | ||
pythonpath = joinpath(Conda.python_dir(env), "python" * (Compat.Sys.iswindows() ? ".exe" : "")) | ||
pythonpath = joinpath(Conda.PYTHONDIR, "python" * exe) | ||
@test isfile(pythonpath) | ||
pyversion = readstring(`$pythonpath -c "import sys; print(sys.version)"`) | ||
pyversion = read(`$pythonpath -c "import sys; print(sys.version)"`, String) | ||
@test pyversion[1:1] == Conda.MINICONDA_VERSION | ||
|
||
channels = Conda.channels() | ||
@test channels == ["defaults"] | ||
|
||
Conda.add_channel("foo", env) | ||
@test Conda.channels(env) == ["foo", "defaults"] | ||
# Testing that calling the function twice do not fail | ||
Conda.add_channel("foo", env) | ||
|
||
Conda.rm_channel("foo", env) | ||
channels = Conda.channels(env) | ||
@test channels == ["defaults"] | ||
@test Conda.channels(env) == ["defaults"] |