Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 0.6 abstract type declaration depwarn #263

Merged
merged 1 commit into from
Feb 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.4
URIParser
SHA
Compat 0.9.5
Compat 0.17.0
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ build_script:
Pkg.clone(pwd(), \"BinDeps\"); Pkg.build(\"BinDeps\")"

test_script:
- C:\projects\julia\bin\julia -F -e "Pkg.test(\"BinDeps\")"
- C:\projects\julia\bin\julia -e "Pkg.test(\"BinDeps\")"
2 changes: 1 addition & 1 deletion src/BinDeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ macro make_rule(condition,command)
end
end

abstract BuildStep
@compat abstract type BuildStep end

downloadcmd = nothing
function download_cmd(url::AbstractString, filename::AbstractString)
Expand Down
12 changes: 6 additions & 6 deletions src/dependencies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Base: show
const OSNAME = is_windows() ? :Windows : KERNEL

# A dependency provider, if successfully executed will satisfy the dependency
abstract DependencyProvider
@compat abstract type DependencyProvider end

# A library helper may be used by `DependencyProvider`s but will by itself not provide the library
abstract DependencyHelper
@compat abstract type DependencyHelper end

type PackageContext
do_install::Bool
Expand Down Expand Up @@ -91,7 +91,7 @@ export library_dependency, bindir, srcdir, usrdir, libdir

library_dependency(args...; properties...) = error("No context provided. Did you forget `@BinDeps.setup`?")

abstract PackageManager <: DependencyProvider
@compat abstract type PackageManager <: DependencyProvider end

DEBIAN_VERSION_REGEX = r"^
([0-9]+\:)? # epoch
Expand Down Expand Up @@ -227,8 +227,8 @@ libdir(z::Zypper,dep) = ["/usr/lib", "/usr/lib32", "/usr/lib64"]
# Can use everything else without restriction by default
can_use(::Type) = true

abstract Sources <: DependencyHelper
abstract Binaries <: DependencyProvider
@compat abstract type Sources <: DependencyHelper end
@compat abstract type Binaries <: DependencyProvider end

#
# A dummy provider checked for every library that
Expand Down Expand Up @@ -261,7 +261,7 @@ end

libdir(p::CustomPathBinaries,dep) = p.path

abstract BuildProcess <: DependencyProvider
@compat abstract type BuildProcess <: DependencyProvider end

type SimpleBuild <: BuildProcess
steps
Expand Down