diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fa9aede..bc73694 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -18,7 +18,7 @@ jobs: fail-fast: false matrix: version: - - '1.0' + - '1.3' - '1' os: - ubuntu-latest diff --git a/Project.toml b/Project.toml index 4343c9a..814fafb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,16 +1,18 @@ name = "MMTF" uuid = "259c3a9c-12c3-507f-b21f-68ecc40fcda4" authors = ["Joel S "] -version = "0.1.1" +version = "1.0.0" [deps] CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193" +Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6" MsgPack = "99f44e22-a591-53d1-9472-aa23ef4bd671" [compat] CodecZlib = "0.5, 0.6, 0.7" +Downloads = "1" MsgPack = "0.2, 1" -julia = "0.7, 1" +julia = "1.3" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/src/api.jl b/src/api.jl index 333f14f..22a90ee 100644 --- a/src/api.jl +++ b/src/api.jl @@ -1,7 +1,8 @@ include("codec.jl") -using MsgPack using CodecZlib +using Downloads +using MsgPack export decodedata,encodedata,parsemmtf,writemmtf,fetchmmtf @@ -150,6 +151,6 @@ pdbid: ID of the PDB file to be fetched and decoded. """ function fetchmmtf(pdbid) tempfile = tempname() - download("$(BASE_URL)/$(pdbid).mmtf.gz",tempfile) + Downloads.download("$(BASE_URL)/$(pdbid).mmtf.gz",tempfile) parsemmtf(tempfile,gzip=true) -end \ No newline at end of file +end