Skip to content

Commit

Permalink
Modernize to julia-1.0 and above (#13)
Browse files Browse the repository at this point in the history
* Drop 0.6
* Remove dependency on Compat
* Modernize CI a bit
  • Loading branch information
c42f authored Jul 10, 2019
1 parent 8b93f6d commit b199727
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ os:
- linux
- osx
julia:
- 0.6
- 0.7
- 1.0
- 1.1
- 1.2
- nightly
matrix:
allow_failures:
Expand Down
9 changes: 6 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name = "FastClosures"
uuid = "9aa1b823-49e4-5ca5-8b0f-3971ec8bab6a"
version = "0.2.2"
version = "0.3.0"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

[compat]
julia = "^1.0"
Compat = ">=0.33.0"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

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

This file was deleted.

6 changes: 1 addition & 5 deletions src/FastClosures.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
__precompile__()

module FastClosures
using Compat

using Base.Meta

Expand Down Expand Up @@ -85,8 +82,7 @@ However, it can result in large speedups in many cases, without the need to
restructure the code to avoid the closure.
"""
macro closure(ex)
module_ = Compat.macros_have_sourceloc ? __module__ : current_module()
esc(wrap_closure(module_, ex))
esc(wrap_closure(__module__, ex))
end

# Find arguments in closure arg list
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FastClosures, Compat, Compat.Test
using FastClosures, Test

# Test utility wrapping find_var_uses!
function find_var_uses(ex)
Expand Down

0 comments on commit b199727

Please sign in to comment.