Skip to content

Commit 49da92b

Browse files
committed
Initial package implementation
1 parent 9c1d061 commit 49da92b

File tree

17 files changed

+444
-0
lines changed

17 files changed

+444
-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/TagBot.yml

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

.github/workflows/ci.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- dev
8+
- 'releases/**'
9+
tags: '*'
10+
pull_request:
11+
release:
12+
13+
jobs:
14+
test:
15+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
runs-on: ${{ matrix.os }}
17+
continue-on-error: ${{ matrix.version == 'nightly' }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- '1.0'
23+
- '1'
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
- macOS-latest
28+
- windows-latest
29+
arch:
30+
- x64
31+
- x86
32+
exclude:
33+
# 32-bit Julia binaries are not available on macOS
34+
- os: macOS-latest
35+
arch: x86
36+
- os: windows-latest
37+
arch: x86
38+
- version: nightly
39+
arch: x86
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: julia-actions/setup-julia@latest
43+
with:
44+
version: ${{ matrix.version }}
45+
arch: ${{ matrix.arch }}
46+
- name: Cache artifacts
47+
uses: actions/cache@v2
48+
env:
49+
cache-name: cache-artifacts
50+
with:
51+
path: ~/.julia/artifacts
52+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
53+
restore-keys: |
54+
${{ runner.os }}-test-${{ env.cache-name }}-
55+
${{ runner.os }}-test-
56+
${{ runner.os }}-
57+
- uses: julia-actions/julia-buildpkg@latest
58+
env:
59+
PYTHON: 'Conda'
60+
- uses: julia-actions/julia-runtest@latest
61+
- uses: julia-actions/julia-processcoverage@v1
62+
- uses: codecov/codecov-action@v1
63+
with:
64+
file: lcov.info
65+
docs:
66+
name: Documentation
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v2
70+
- uses: julia-actions/setup-julia@latest
71+
with:
72+
version: '1'
73+
- name: Cache artifacts
74+
uses: actions/cache@v2
75+
env:
76+
cache-name: cache-artifacts
77+
with:
78+
path: ~/.julia/artifacts
79+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
80+
restore-keys: |
81+
${{ runner.os }}-test-${{ env.cache-name }}-
82+
${{ runner.os }}-test-
83+
${{ runner.os }}-
84+
- uses: julia-actions/julia-buildpkg@latest
85+
env:
86+
PYTHON: 'Conda'
87+
- uses: julia-actions/julia-docdeploy@latest
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
# Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177
91+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
92+
GKSwstype: 'nul'

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
*.jl.cov
3+
*.jl.*.cov
4+
*.jl.mem
5+
.ipynb_checkpoints
6+
.vscode
7+
Manifest.toml

LICENSE.md

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

Project.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name = "ChangesOfVariables"
2+
uuid = "9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0"
3+
version = "0.1.0"
4+
5+
[deps]
6+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
7+
8+
[compat]
9+
julia = "1"
10+
11+
[extras]
12+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
13+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
14+
15+
[targets]
16+
test = ["ForwardDiff", "Test"]

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ChangesOfVariables.jl
2+
3+
[![Documentation for stable version](https://img.shields.io/badge/docs-stable-blue.svg)](https://oschulz.github.io/ChangesOfVariables.jl/stable)
4+
[![Documentation for development version](https://img.shields.io/badge/docs-dev-blue.svg)](https://oschulz.github.io/ChangesOfVariables.jl/dev)
5+
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE.md)
6+
[![Build Status](https://github.com/oschulz/ChangesOfVariables.jl/workflows/CI/badge.svg?branch=master)](https://github.com/oschulz/ChangesOfVariables.jl/actions?query=workflow%3ACI)
7+
[![Codecov](https://codecov.io/gh/oschulz/ChangesOfVariables.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/oschulz/ChangesOfVariables.jl)
8+
9+
10+
ChangesOfVariables.jl defines functionality to calculate volume element
11+
changes for functions that perform a change of variables (like coordinate
12+
transformations).
13+
14+
`ChangesOfVariables` is a very lightweight package and has no dependencies
15+
beyond `Base` and `LinearAlgebra`.
16+
17+
## Documentation
18+
19+
* [Documentation for stable version](https://oschulz.github.io/ChangesOfVariables.jl/stable)
20+
* [Documentation for development version](https://oschulz.github.io/ChangesOfVariables.jl/dev)

docs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build/
2+
site/

docs/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
4+
5+
[compat]
6+
Documenter = "~0.27"

docs/make.jl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Use
2+
#
3+
# DOCUMENTER_DEBUG=true julia --color=yes make.jl local [nonstrict] [fixdoctests]
4+
#
5+
# for local builds.
6+
7+
using Documenter
8+
using ChangesOfVariables
9+
10+
makedocs(
11+
sitename = "ChangesOfVariables",
12+
modules = [ChangesOfVariables],
13+
format = Documenter.HTML(
14+
prettyurls = !("local" in ARGS),
15+
canonical = "https://oschulz.github.io/ChangesOfVariables.jl/stable/"
16+
),
17+
pages = [
18+
"Home" => "index.md",
19+
"API" => "api.md",
20+
"LICENSE" => "LICENSE.md",
21+
],
22+
doctest = ("fixdoctests" in ARGS) ? :fix : true,
23+
linkcheck = !("nonstrict" in ARGS),
24+
strict = !("nonstrict" in ARGS),
25+
)
26+
27+
deploydocs(
28+
repo = "github.com/oschulz/ChangesOfVariables.jl.git",
29+
forcepush = true,
30+
push_preview = true,
31+
)

0 commit comments

Comments
 (0)