Skip to content

Commit 75638c6

Browse files
authored
Drop 0.6 from master. (#65)
1 parent 69eb50a commit 75638c6

File tree

11 files changed

+29
-56
lines changed

11 files changed

+29
-56
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ os:
77
sudo: false
88

99
julia:
10-
- 0.6
1110
- 0.7
1211
- 1.0
1312
- nightly
@@ -16,13 +15,14 @@ notifications:
1615
email: false
1716

1817
after_success:
19-
- julia -e 'include(Pkg.dir("DocStringExtensions", "test", "coverage.jl"))'
18+
- julia test/coverage.jl
2019

2120
jobs:
2221
include:
2322
- stage: "Deploy docs"
24-
julia: 0.6
23+
julia: 1.0
2524
os: linux
26-
script: julia -e 'Pkg.add("Documenter"); Pkg.checkout("Documenter")'
27-
&& julia ${TRAVIS_BUILD_DIR}/docs/make.jl
25+
script:
26+
- julia -e 'using Pkg; Pkg.add([PackageSpec("Documenter"), PackageSpec(path=pwd())])'
27+
- julia docs/make.jl
2828
after_success: skip

README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
*Extensions for Julia's docsystem.*
44

5-
| **Documentation** | **PackageEvaluator** | **Build Status** |
6-
|:-------------------------------------------------------------------------------:|:---------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:|
7-
| [![][docs-stable-img]][docs-stable-url] [![][docs-latest-img]][docs-latest-url] | [![][pkg-0.4-img]][pkg-0.4-url] [![][pkg-0.5-img]][pkg-0.5-url] [![][pkg-0.6-img]][pkg-0.6-url] [![][pkg-0.7-img]][pkg-0.7-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url] |
5+
| **Documentation** | **Build Status** |
6+
|:-------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------:|
7+
| [![][docs-stable-img]][docs-stable-url] [![][docs-latest-img]][docs-latest-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] [![][codecov-img]][codecov-url] |
88

99
## Installation
1010

11-
The package is registered in `METADATA.jl` and so can be installed with `Pkg.add`.
11+
The package can be added using the Julia package manager. From the Julia REPL, type `]`
12+
to enter the Pkg REPL mode and run
1213

13-
```julia
14-
julia> Pkg.add("DocStringExtensions")
14+
```
15+
pkg> add DocStringExtensions
1516
```
1617

1718
## Documentation
@@ -21,7 +22,8 @@ julia> Pkg.add("DocStringExtensions")
2122

2223
## Project Status
2324

24-
The package is tested against Julia `0.6` and `0.7-dev` on Linux, OS X, and Windows.
25+
The package is tested and developed against Julia `0.7` and `1.0` on Linux, OS X, and Windows,
26+
but there are versions of the package that works on older versions of Julia.
2527

2628
## Contributing and Questions
2729

@@ -45,12 +47,3 @@ Contributions are very welcome, as are feature requests and suggestions. Please
4547
[codecov-url]: https://codecov.io/gh/JuliaDocs/DocStringExtensions.jl
4648

4749
[issues-url]: https://github.com/JuliaDocs/DocStringExtensions.jl/issues
48-
49-
[pkg-0.4-img]: http://pkg.julialang.org/badges/DocStringExtensions_0.4.svg
50-
[pkg-0.4-url]: http://pkg.julialang.org/?pkg=DocStringExtensions?ver=0.4
51-
[pkg-0.5-img]: http://pkg.julialang.org/badges/DocStringExtensions_0.5.svg
52-
[pkg-0.5-url]: http://pkg.julialang.org/?pkg=DocStringExtensions?ver=0.5
53-
[pkg-0.6-img]: http://pkg.julialang.org/badges/DocStringExtensions_0.6.svg
54-
[pkg-0.6-url]: http://pkg.julialang.org/?pkg=DocStringExtensions?ver=0.6
55-
[pkg-0.7-img]: http://pkg.julialang.org/badges/DocStringExtensions_0.7.svg
56-
[pkg-0.7-url]: http://pkg.julialang.org/?pkg=DocStringExtensions?ver=0.7

REQUIRE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
julia 0.6
2-
Compat 0.62
1+
julia 0.7

appveyor.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
environment:
22
matrix:
3-
- julia_version: 0.6
43
- julia_version: 0.7
54
- julia_version: 1
65
- julia_version: nightly
@@ -13,7 +12,7 @@ platform:
1312
# # (tests will run but not make your overall status red)
1413
# matrix:
1514
# allow_failures:
16-
# - julia_version: latest
15+
# - julia_version: nightly
1716

1817
branches:
1918
only:
@@ -41,4 +40,4 @@ test_script:
4140
# # which would have coverage gaps without running on Windows
4241
# on_success:
4342
# - echo "%JL_CODECOV_SCRIPT%"
44-
# - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"
43+
# - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"

docs/make.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
# Don't build docs on version 0.4 since they will fail.
3-
41
using Documenter, DocStringExtensions
52

63
makedocs(
@@ -16,6 +13,6 @@ deploydocs(
1613
deps = nothing,
1714
make = nothing,
1815
repo = "github.com/JuliaDocs/DocStringExtensions.jl.git",
19-
julia = "0.6",
16+
julia = "1.0",
2017
)
2118

src/DocStringExtensions.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ $(IMPORTS)
7575
"""
7676
module DocStringExtensions
7777

78-
# Imports.
79-
80-
using Compat
81-
82-
8378
# Exports.
8479

8580
export @template, FIELDS, EXPORTS, METHODLIST, IMPORTS, SIGNATURES, TYPEDEF, DOCSTRING

src/abbreviations.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ function format(::TypeFields, buf, doc)
7272
local object = Docs.resolve(binding)
7373
# On 0.7 fieldnames() on an abstract type throws an error. We then explicitly return
7474
# an empty vector to be consistent with the behaviour on v0.6.
75-
# Compat necessary since Base.isabstract was introduced in v0.6.
7675
local fields = isabstracttype(object) ? Symbol[] : fieldnames(object)
7776
if !isempty(fields)
7877
println(buf)

src/utilities.jl

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,16 +169,11 @@ $(:SIGNATURES)
169169
Remove the `Pkg.dir` part of a file `path` if it exists.
170170
"""
171171
function cleanpath(path::AbstractString)
172-
@static if VERSION >= v"0.7.0-DEV.5183"
173-
for depot in DEPOT_PATH
174-
pkgdir = joinpath(depot, "")
175-
startswith(path, pkgdir) && return first(split(path, pkgdir, keepempty=false))
176-
end
177-
return path
178-
else
179-
pkgdir = joinpath(Compat.Pkg.dir(), "")
180-
return startswith(path, pkgdir) ? first(split(path, pkgdir; keep = false)) : path
172+
for depot in DEPOT_PATH
173+
pkgdir = joinpath(depot, "")
174+
startswith(path, pkgdir) && return first(split(path, pkgdir, keepempty=false))
181175
end
176+
return path
182177
end
183178

184179
"""
@@ -257,7 +252,7 @@ function keywords(func, m::Method)
257252
filter!(arg -> !occursin("#", string(arg)), kwargs)
258253
# Keywords *may* not be sorted correctly. We move the vararg one to the end.
259254
local index = findfirst(arg -> endswith(string(arg), "..."), kwargs)
260-
if index != nothing && index > 0 # TODO: use Compat.findfirst later on
255+
if index != nothing
261256
kwargs[index], kwargs[end] = kwargs[end], kwargs[index]
262257
end
263258
return kwargs
@@ -309,10 +304,10 @@ on TravisCI as well.
309304
"""
310305
url(m::Method) = url(m.module, string(m.file), m.line)
311306

312-
import Compat.LibGit2
307+
import LibGit2
313308

314309
function url(mod::Module, file::AbstractString, line::Integer)
315-
file = Compat.Sys.iswindows() ? replace(file, '\\' => '/') : file
310+
file = Sys.iswindows() ? replace(file, '\\' => '/') : file
316311
if Base.inbase(mod) && !isabspath(file)
317312
local base = "https://github.com/JuliaLang/julia/tree"
318313
if isempty(Base.GIT_VERSION_INFO.commit)

test/coverage.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Only run coverage from linux nightly build on travis.
22
get(ENV, "TRAVIS_OS_NAME", "") == "linux" || exit()
33
get(ENV, "TRAVIS_JULIA_VERSION", "") == "nightly" || exit()
4-
4+
using Pkg
55
Pkg.add("Coverage")
66
using Coverage
77

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using DocStringExtensions
2-
using Compat.Test
2+
using Test
3+
import Markdown
34

45
include("tests.jl")

0 commit comments

Comments
 (0)