diff --git a/.travis.yml b/.travis.yml index 3fc0fab..d094142 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,11 @@ language: julia os: - linux julia: - - 0.6 - - 0.7 - - 1.0 - - 1.1 - - 1.2 + - "0.7" + - "1.0" + - "1.1" + - "1.2" + - "1.3" - nightly notifications: email: false diff --git a/Project.toml b/Project.toml new file mode 100644 index 0000000..8cd3624 --- /dev/null +++ b/Project.toml @@ -0,0 +1,12 @@ +name = "VersionParsing" +uuid = "81def892-9a0e-5fdd-b105-ffc91e053289" +version = "1.2.0" + +[compat] +julia = "0.7, 1" + +[extras] +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[targets] +test = ["Test"] diff --git a/REQUIRE b/REQUIRE deleted file mode 100644 index 913499f..0000000 --- a/REQUIRE +++ /dev/null @@ -1,2 +0,0 @@ -julia 0.6 -Compat 0.62.0 diff --git a/appveyor.yml b/appveyor.yml index b1aee80..3acb96e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,5 @@ environment: matrix: - - julia_version: 0.6 - julia_version: 0.7 - julia_version: 1.0 - julia_version: 1.1 diff --git a/src/VersionParsing.jl b/src/VersionParsing.jl index 36a3646..b3de9a5 100644 --- a/src/VersionParsing.jl +++ b/src/VersionParsing.jl @@ -10,7 +10,6 @@ handle version-number strings in a much wider range of formats without throwing an exception. """ module VersionParsing -using Compat export vparse """ @@ -45,7 +44,7 @@ function vparse(s_::String) if occursin(r"^\d:\d+", s) # debian-style version number s = replace(s, r"^\d:"=>"") # strip epoch end - i = Compat.findfirst(isspace, s) + i = findfirst(isspace, s) if i !== nothing s = s[1:prevind(s,i)] end diff --git a/test/runtests.jl b/test/runtests.jl index 267c960..9748e23 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,5 @@ -using VersionParsing, Compat -using Compat.Test +using VersionParsing +using Test @test vparse("3.7.2a4") == v"3.7.2-a4" == vparse("version 3.7.2a4: the best version") @test vparse("2.1.0-python3_5") == v"2.1.0-python35" # Plots.jl#1432