Skip to content

Commit

Permalink
use Downloads, require Julia 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreener64 committed May 26, 2021
1 parent e58f147 commit 71ceec6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.0'
- '1.3'
- '1'
os:
- ubuntu-latest
Expand Down
6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name = "MMTF"
uuid = "259c3a9c-12c3-507f-b21f-68ecc40fcda4"
authors = ["Joel S <joel.programmer@outlook.com>"]
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"
Expand Down
7 changes: 4 additions & 3 deletions src/api.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
include("codec.jl")

using MsgPack
using CodecZlib
using Downloads
using MsgPack

export decodedata,encodedata,parsemmtf,writemmtf,fetchmmtf

Expand Down Expand Up @@ -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
end

2 comments on commit 71ceec6

@jgreener64
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/37571

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" 71ceec63927ebcec7deacffeed63c5b27e0cf98f
git push origin v1.0.0

Please sign in to comment.