Skip to content

Commit

Permalink
Update to Julia 1.3+, use Snappy_jll to provide binaries (#25)
Browse files Browse the repository at this point in the history
This allows for a much wider set of supported platforms, through use of
the `Snappy_jll` package.
  • Loading branch information
staticfloat authored Mar 29, 2022
1 parent 1bbda31 commit afb3621
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 61 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Manifest.toml
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ os:
- linux
- osx
julia:
- 0.7
- 1.0
- 1.3
- nightly
matrix:
allow_failures:
Expand Down
17 changes: 17 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name = "Snappy"
uuid = "59d4ed8c-697a-5b28-a4c7-fe95c22820f9"
authors = ["Kenta Sato <[email protected]>"]
version = "0.4.0"

[deps]
snappy_jll = "fe1e1685-f7be-5f59-ac9f-4ca204017dfd"

[compat]
julia = "1.3"

[extras]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Random"]
2 changes: 0 additions & 2 deletions REQUIRE

This file was deleted.

3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
environment:
matrix:
- julia_version: 0.7
- julia_version: 1
- julia_version: 1.3
- julia_version: nightly

platform:
Expand Down
6 changes: 0 additions & 6 deletions deps/.gitignore

This file was deleted.

38 changes: 0 additions & 38 deletions deps/build.jl

This file was deleted.

12 changes: 1 addition & 11 deletions src/Snappy.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
__precompile__()

module Snappy

# Load libsnappy from our deps.jl
const depsjl_path = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
if !isfile(depsjl_path)
error("Snappy not installed properly, run Pkg.build(\"Snappy\"), restart Julia and try again")
end
include(depsjl_path)
using snappy_jll

export compress, uncompress

Expand All @@ -16,10 +10,6 @@ const SnappyOK = Cint(0)
const SnappyInvalidInput = Cint(1)
const SnappyBufferTooSmall = Cint(2)

function __init__()
check_deps()
end

# High-level Interfaces

function compress(input::Vector{UInt8})
Expand Down

6 comments on commit afb3621

@ararslan
Copy link
Member

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.

Error while trying to register: Changing package repo URL not allowed, please submit a pull request with the URL change to the target registry and retry.

@ararslan
Copy link
Member

Choose a reason for hiding this comment

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

Nice

@ararslan
Copy link
Member

Choose a reason for hiding this comment

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

@ararslan
Copy link
Member

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/57581

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 v0.4.0 -m "<description of version>" afb362133c3600ee100b7856cfc724b08368d4c8
git push origin v0.4.0

Please sign in to comment.