Skip to content

Commit 4260d87

Browse files
authored
Add Project.toml and other fixes (#58)
1 parent 165d3e0 commit 4260d87

File tree

10 files changed

+72
-23
lines changed

10 files changed

+72
-23
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: '00 23 * * *'
6+
7+
jobs:
8+
CompatHelper:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: julia-actions/setup-julia@latest
12+
with:
13+
version: 1.3
14+
- name: Pkg.add("CompatHelper")
15+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
16+
- name: CompatHelper.main()
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/TagBot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: TagBot
22
on:
33
schedule:
4-
- cron: 0 * * * *
4+
- cron: 20 02 * * *
55
jobs:
66
TagBot:
77
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ _build
99
/docs/build/
1010
/docs/site/
1111
/deps/NP.xy
12+
/Manifest.toml

.travis.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@ os:
44
- linux
55
- osx
66
julia:
7-
- 0.7
87
- 1.0
8+
- 1.3
9+
- 1.4
910
- nightly
1011
matrix:
11-
allow_failures:
12-
- julia: nightly
1312
git:
1413
depth: 999999
1514
notifications:
1615
email: false
17-
# script:
18-
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
19-
# - julia -e 'import Pkg; Pkg.add(Pkg.PackageSpec(path=pwd())); Pkg.build("AstroLib"); Pkg.test("AstroLib"; coverage=true)'
16+
2017
after_success:
21-
- julia -e 'import Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
22-
- julia -e 'import Pkg; cd(Pkg.dir("AstroLib")); include(joinpath("docs", "make.jl"))'
23-
- julia -e 'import Pkg; cd(Pkg.dir("AstroLib")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
18+
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'
19+
20+
jobs:
21+
allow_failures:
22+
- julia: nightly
23+
include:
24+
- stage: "Documentation"
25+
julia: 1.3
26+
os: linux
27+
script:
28+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
29+
Pkg.instantiate()'
30+
- julia --project=docs/ docs/make.jl
31+
after_success: skip

Project.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "AstroLib"
2+
uuid = "c7932e45-9af1-51e7-9da9-f004cd3a462b"
3+
authors = ["Mosè Giordano"]
4+
version = "1.0.0"
5+
6+
[deps]
7+
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
8+
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
9+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
10+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
11+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
12+
13+
[compat]
14+
StaticArrays = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12"
15+
julia = "1"
16+
17+
[extras]
18+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
19+
20+
[targets]
21+
test = ["Test"]

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@ to see how you can help. Volunteers are welcome!
2929
Installation
3030
------------
3131

32-
`AstroLib.jl` is available for Julia 0.7 and later versions, and can be
33-
installed with
34-
[Julia built-in package manager](http://docs.julialang.org/en/stable/manual/packages/).
35-
In a Julia session run the command
32+
`AstroLib.jl` is available for Julia 1.0 and later versions, and can be
33+
installed with [Julia built-in package
34+
manager](https://julialang.github.io/Pkg.jl/stable/). In a Julia session, after
35+
entering the package manager mode with `]`, run the command
3636

3737
```julia
38-
julia> Pkg.update()
39-
julia> Pkg.add("AstroLib")
38+
pkg> add AstroLib
4039
```
4140

42-
Older versions are also available for Julia 0.4-0.6.
41+
Older versions of this package are also available for Julia 0.4-0.7.
4342

4443
Note that, in order to work, a few functions require external files, which are
4544
automatically downloaded when building the package. Should these files be

REQUIRE

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
4+
[compat]
5+
Documenter = "~0.24"

docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ deploydocs(
1515
target = "build",
1616
deps = nothing,
1717
make = nothing,
18-
julia = "1.0",
1918
)

src/common.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This file is a part of AstroLib.jl. License is MIT "Expat".
22
# Copyright (C) 2016 Mosè Giordano.
33

4+
using DelimitedFiles
5+
46
"""
57
List of locations of North Magnetic Pole since 1590.
68
@@ -10,9 +12,6 @@ This is provided by World Magnetic Model
1012
const POLELATLONG =
1113
try
1214
let
13-
if !isdefined(Base, :DataFmt)
14-
using DelimitedFiles
15-
end
1615
local polelatlong, rows, floattype, temp
1716
polelatlong = readdlm(joinpath(@__DIR__,
1817
"..", "deps", "NP.xy"))

0 commit comments

Comments
 (0)