Skip to content

Commit 243847b

Browse files
committed
Merge branch 'master' of github.com:JuliaStats/LogExpFunctions.jl
2 parents e1fe1a4 + e8c686c commit 243847b

18 files changed

+879
-0
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

.github/workflows/CI.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# from https://discourse.julialang.org/t/easy-workflow-file-for-setting-up-github-actions-ci-for-your-julia-package/49765
2+
3+
name: CI
4+
on:
5+
pull_request:
6+
branches:
7+
- master
8+
push:
9+
branches:
10+
- master
11+
tags: '*'
12+
jobs:
13+
test:
14+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
version:
20+
- '1.0' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
21+
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
22+
- 'nightly'
23+
os:
24+
- ubuntu-latest
25+
arch:
26+
- x64
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: julia-actions/setup-julia@v1
30+
with:
31+
version: ${{ matrix.version }}
32+
arch: ${{ matrix.arch }}
33+
- uses: actions/cache@v1
34+
env:
35+
cache-name: cache-artifacts
36+
with:
37+
path: ~/.julia/artifacts
38+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39+
restore-keys: |
40+
${{ runner.os }}-test-${{ env.cache-name }}-
41+
${{ runner.os }}-test-
42+
${{ runner.os }}-
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v1
47+
with:
48+
file: lcov.info
49+
docs:
50+
name: Documentation
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: julia-actions/setup-julia@v1
55+
with:
56+
version: '1'
57+
- run: |
58+
julia --project=docs -e '
59+
using Pkg
60+
Pkg.develop(PackageSpec(path=pwd()))
61+
Pkg.instantiate()'
62+
- run: |
63+
julia --project=docs -e '
64+
using Documenter: doctest, DocMeta
65+
using LogExpFunctions
66+
DocMeta.setdocmeta!(LogExpFunctions, :DocTestSetup, :(using LogExpFunctions); recursive=true)
67+
doctest(LogExpFunctions)'
68+
- run: julia --project=docs docs/make.jl
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/CompatHelper.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
jobs:
7+
CompatHelper:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: "Install CompatHelper"
11+
run: |
12+
import Pkg
13+
name = "CompatHelper"
14+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
15+
version = "1"
16+
Pkg.add(; name, uuid, version)
17+
shell: julia --color=yes {0}
18+
- name: "Run CompatHelper"
19+
run: |
20+
import CompatHelper
21+
CompatHelper.main(; subdirs = ["", "docs"])
22+
shell: julia --color=yes {0}
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/TagBot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# see the docs at https://github.com/JuliaRegistries/TagBot
2+
3+
name: TagBot
4+
on:
5+
issue_comment:
6+
types:
7+
- created
8+
workflow_dispatch:
9+
jobs:
10+
TagBot:
11+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: JuliaRegistries/TagBot@v1
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.jl.cov
2+
*.jl.*.cov
3+
*.jl.mem
4+
/Manifest.toml
5+
/deps/deps.jl
6+
/docs/build
7+
/docs/Manifest.toml
8+
/test/coverage/Manifest.toml

LICENSE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
The LogExpFunctions.jl package is licensed under the MIT "Expat" License:
2+
3+
> Original work Copyright (c) 2015: Dahua Lin, StatsFuns.jl contributors.
4+
> Modified version Copyright (c) 2019: Tamas K. Papp.
5+
>
6+
> Permission is hereby granted, free of charge, to any person obtaining a copy
7+
> of this software and associated documentation files (the "Software"), to deal
8+
> in the Software without restriction, including without limitation the rights
9+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
> copies of the Software, and to permit persons to whom the Software is
11+
> furnished to do so, subject to the following conditions:
12+
>
13+
> The above copyright notice and this permission notice shall be included in all
14+
> copies or substantial portions of the Software.
15+
>
16+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
> SOFTWARE.
23+
>

Project.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name = "LogExpFunctions"
2+
uuid = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
3+
authors = ["StatsFun.jl contributors, Tamas K. Papp <[email protected]>"]
4+
version = "0.2"
5+
6+
[deps]
7+
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
8+
9+
[compat]
10+
julia = "1"
11+
DocStringExtensions = "0.8"
12+
13+
[extras]
14+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
15+
16+
[targets]
17+
test = ["Test"]

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# LogExpFunctions.jl
2+
3+
[![CI](https://github.com/JuliaStats/LogExpFunctions.jl/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/JuliaStats/LogExpFunctions.jl/actions/workflows/CI.yml?query=branch%3Amaster)
4+
[![codecov.io](http://codecov.io/github/JuliaStats/LogExpFunctions.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaStats/LogExpFunctions.jl?branch=master)
5+
[![Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliastats.github.io/LogExpFunctions.jl/stable)
6+
[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)](https://juliastats.github.io/LogExpFunctions.jl/dev)
7+
8+
Various special functions based on `log` and `exp` moved from [StatsFuns.jl](https://github.com/JuliaStats/StatsFuns.jl) into a separate package, to minimize dependencies. These functions only use native Julia code, so there is no need to depend on `librmath` or similar libraries. See the discussion at [StatsFuns.jl#46](https://github.com/JuliaStats/StatsFuns.jl/issues/46).
9+
10+
The original authors of these functions are the StatsFuns.jl contributors.

docs/Manifest.toml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
[[Base64]]
4+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
5+
6+
[[Dates]]
7+
deps = ["Printf"]
8+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
9+
10+
[[Distributed]]
11+
deps = ["Random", "Serialization", "Sockets"]
12+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
13+
14+
[[DocStringExtensions]]
15+
deps = ["LibGit2", "Markdown", "Pkg", "Test"]
16+
git-tree-sha1 = "0513f1a8991e9d83255e0140aace0d0fc4486600"
17+
uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
18+
version = "0.8.0"
19+
20+
[[Documenter]]
21+
deps = ["Base64", "DocStringExtensions", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"]
22+
git-tree-sha1 = "1b6ae3796f60311e39cd1770566140d2c056e87f"
23+
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
24+
version = "0.23.3"
25+
26+
[[InteractiveUtils]]
27+
deps = ["Markdown"]
28+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
29+
30+
[[JSON]]
31+
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
32+
git-tree-sha1 = "b34d7cef7b337321e97d22242c3c2b91f476748e"
33+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
34+
version = "0.21.0"
35+
36+
[[LibGit2]]
37+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
38+
39+
[[Libdl]]
40+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
41+
42+
[[Logging]]
43+
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
44+
45+
[[Markdown]]
46+
deps = ["Base64"]
47+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
48+
49+
[[Mmap]]
50+
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
51+
52+
[[Parsers]]
53+
deps = ["Dates", "Test"]
54+
git-tree-sha1 = "ef0af6c8601db18c282d092ccbd2f01f3f0cd70b"
55+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
56+
version = "0.3.7"
57+
58+
[[Pkg]]
59+
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
60+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
61+
62+
[[Printf]]
63+
deps = ["Unicode"]
64+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
65+
66+
[[REPL]]
67+
deps = ["InteractiveUtils", "Markdown", "Sockets"]
68+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
69+
70+
[[Random]]
71+
deps = ["Serialization"]
72+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
73+
74+
[[SHA]]
75+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
76+
77+
[[Serialization]]
78+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
79+
80+
[[Sockets]]
81+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
82+
83+
[[Test]]
84+
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
85+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
86+
87+
[[UUIDs]]
88+
deps = ["Random", "SHA"]
89+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
90+
91+
[[Unicode]]
92+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

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.26"

0 commit comments

Comments
 (0)