Skip to content

Commit ed74187

Browse files
committed
Clean up Project.toml, bump version, remove using Pkg
1 parent 05e1ce1 commit ed74187

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

Project.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ keywords = ["Packages", "API", "Modules"]
44
license = "MIT"
55
desc = "Macro to help manage module and package APIs"
66
authors = ["ScottPJones <[email protected]>"]
7-
version = "0.1.6"
7+
version = "0.1.7"
88

99
[deps]
10-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
10+
11+
[extras]
1112
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1213
InternedStrings = "7d512f48-7fb1-5a58-b986-67e6dc259f01"
14+
15+
[targets]
16+
test = ["Test", "InternedStrings"]

REQUIRE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
julia 0.6
1+
julia 0.6 2-

src/ModuleInterfaceTools.jl

+3-9
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ module ModuleInterfaceTools
1212

1313
const debug = Ref(false)
1414

15-
const V6_COMPAT = VERSION < v"0.7.0-DEV"
15+
const V6_COMPAT = VERSION < v"0.7-"
1616
const BIG_ENDIAN = (ENDIAN_BOM == 0x01020304)
1717

18-
@static if !V6_COMPAT
19-
using Pkg
20-
export Pkg
21-
end
22-
2318
_stdout() = @static V6_COMPAT ? STDOUT : stdout
2419
_stderr() = @static V6_COMPAT ? STDERR : stderr
2520

@@ -147,7 +142,7 @@ end
147142
_api_list(mod::Module) = (_api_display(mod, :__api__) ; _api_display(mod, :__tmp_api__))
148143

149144
function _api_freeze(mod::Module)
150-
ex = :( global const __api__ = ModuleInterfaceTools.API(__tmp_api__) ; __tmp_api__ = nothing )
145+
ex = :( const __api__ = ModuleInterfaceTools.API(__tmp_api__) ; __tmp_api__ = nothing )
151146
isdefined(mod, :__tmp_api__) && m_eval(mod, :( __tmp_api__ !== nothing ) ) && m_eval(mod, ex)
152147
nothing
153148
end
@@ -210,8 +205,7 @@ end
210205
"""Initialize the temp api variable for this module"""
211206
_init_api(curmod) =
212207
isdefined(curmod, :__tmp_api__) ||
213-
m_eval(curmod, :( export @api, ModuleInterfaceTools ;
214-
global __tmp_api__ = ModuleInterfaceTools.TMP_API($curmod)))
208+
m_eval(curmod, :( global __tmp_api__ = ModuleInterfaceTools.TMP_API($curmod)))
215209

216210
"""Add symbols"""
217211
function _add_symbols(curmod, grp, exprs)

0 commit comments

Comments
 (0)