Skip to content

Commit ac624ed

Browse files
authored
Merge branch 'master' into feat/quick-mount
2 parents 317cd0b + b2cf5b1 commit ac624ed

File tree

192 files changed

+8155
-3525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+8155
-3525
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ trim_trailing_whitespace = true
1313
[Makefile]
1414
indent_style = tab
1515

16-
[.github/**.yml]
16+
[**.{yml,yaml}]
1717
indent_size = 2

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Migrate code style to Black
22
b6a24debb78b953117a3f637db18942f370a4b85
3+
4+
# Run pre-commit after adding ruff
5+
24e1dd5c561bc3da972e41e6fd61961f12a2fc9f

.github/ISSUE_TEMPLATE/bug_form.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Bug Report Form"
2-
description: "Report a bug or a similiar issue."
2+
description: "Report a bug or a similar issue."
33
body:
44
- type: markdown
55
attributes:

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Bug Report
3-
about: Report a bug or a similiar issue - the classic way
3+
about: Report a bug or a similar issue - the classic way
44
title: ''
55
labels: ''
66
assignees: ''
@@ -18,7 +18,7 @@ If you want to suggest a feature or have any other question, please use our
1818
#### Description
1919

2020
<!-- Description
21-
Please decribe your issue and its context in a clear and concise way.
21+
Please describe your issue and its context in a clear and concise way.
2222
Please try to reproduce the issue and provide the steps to reproduce it.
2323
-->
2424

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
name: Feature Request
33
about: Suggest an idea for this project.
4-
title: 'FR: '
5-
labels: 'type:enhancement'
4+
title: ''
5+
labels: ''
66
assignees: ''
77

88
---
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Install Dependencies
2+
description: Installs system dependencies
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Install system dependencies (Linux)
8+
if: runner.os == 'Linux'
9+
shell: bash
10+
run: |
11+
sudo apt update && sudo apt install -y \
12+
xvfb libssl-dev openssl libacl1-dev libacl1 fuse3 build-essential \
13+
libxkbcommon-x11-0 dbus-x11 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
14+
libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 libxcb-shape0 \
15+
libegl1 libxcb-cursor0 libfuse-dev libsqlite3-dev libfuse3-dev pkg-config \
16+
python3-pkgconfig libxxhash-dev borgbackup
17+
18+
- name: Install system dependencies (macOS)
19+
if: runner.os == 'macOS'
20+
shell: bash
21+
run: |
22+
brew install openssl readline xz xxhash pkg-config borgbackup

.github/actions/setup/action.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Setup
2+
description: Sets up python and pre-commit
3+
4+
# note:
5+
# this is a local composite action
6+
# documentation: https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
7+
# code example: https://github.com/GuillaumeFalourd/poc-github-actions/blob/main/.github/actions/local-action/action.yaml
8+
9+
inputs:
10+
pre-commit:
11+
description: Whether pre-commit shall be setup, too
12+
required: false
13+
default: "" # == false
14+
python-version:
15+
description: The python version to install
16+
required: true
17+
default: "3.10"
18+
install-nox:
19+
description: Whether nox shall be installed
20+
required: false
21+
default: "" # == false
22+
runs:
23+
using: "composite"
24+
steps:
25+
- name: Set up Python ${{ inputs.python-version }}
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: ${{ inputs.python-version }}
29+
30+
- name: Get pip cache dir
31+
shell: bash
32+
id: pip-cache
33+
run: |
34+
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
35+
- name: pip cache
36+
uses: actions/cache@v3
37+
with:
38+
path: ${{ steps.pip-cache.outputs.dir }}
39+
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg', 'requirements.d/**') }}
40+
restore-keys: |
41+
${{ runner.os }}-pip-
42+
43+
- name: Install pre-commit
44+
shell: bash
45+
run: pip install pre-commit
46+
47+
- name: Install nox
48+
if: ${{ inputs.install-nox }}
49+
shell: bash
50+
run: pip install nox
51+
52+
- name: Hash python version
53+
if: ${{ inputs.setup-pre-commit }}
54+
shell: bash
55+
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
56+
57+
- name: Caching for Pre-Commit
58+
if: ${{ inputs.setup-pre-commit }}
59+
uses: actions/cache@v3
60+
with:
61+
path: ~/.cache/pre-commit
62+
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- [ ] All new and existing tests passed.
3737

3838

39-
*I provide my contribution under the terms of the [license](./../../LICENSE.txt) of this repository and I affirm the [Developer Certificate of Origin][dco].*
39+
*I provide my contribution under the terms of the [license](./../LICENSE.txt) of this repository and I affirm the [Developer Certificate of Origin][dco].*
4040

4141
[dco]: https://developercertificate.org/
4242

.github/scripts/generate-matrix.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
event_name="$1"
2+
branch_name="$2"
3+
4+
if [[ "$event_name" == "workflow_dispatch" ]] || [[ "$branch_name" == "master" ]]; then
5+
echo '{
6+
"python-version": ["3.8", "3.9", "3.10", "3.11"],
7+
"os": ["ubuntu-latest", "macos-latest"],
8+
"borg-version": ["1.2.4"]
9+
}' | jq -c . > matrix-unit.json
10+
11+
echo '{
12+
"python-version": ["3.8", "3.9", "3.10", "3.11"],
13+
"os": ["ubuntu-latest", "macos-latest"],
14+
"borg-version": ["1.1.18", "1.2.2", "1.2.4", "2.0.0b5"],
15+
"exclude": [{"borg-version": "2.0.0b5", "python-version": "3.8"}]
16+
}' | jq -c . > matrix-integration.json
17+
18+
elif [[ "$event_name" == "push" ]] || [[ "$event_name" == "pull_request" ]]; then
19+
echo '{
20+
"python-version": ["3.8", "3.9", "3.10", "3.11"],
21+
"os": ["ubuntu-latest", "macos-latest"],
22+
"borg-version": ["1.2.4"]
23+
}' | jq -c . > matrix-unit.json
24+
25+
echo '{
26+
"python-version": ["3.10"],
27+
"os": ["ubuntu-latest"],
28+
"borg-version": ["1.2.4"]
29+
}' | jq -c . > matrix-integration.json
30+
fi

.github/stale.yml

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
1-
# Number of days of inactivity before an issue becomes stale
2-
daysUntilStale: 60
1+
name: Close stale issues
2+
on:
3+
schedule:
4+
- cron: '50 1 * * *'
35

4-
# Number of days of inactivity before a stale issue is closed
5-
daysUntilClose: 7
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v8
11+
with:
12+
days-before-issue-stale: 60
13+
days-before-pr-stale: -1
14+
days-before-issue-close: 7
15+
# days-before-pr-close: 10
616

7-
# Issues with these labels will never be considered stale
8-
exemptLabels:
9-
- "status:idea"
10-
- "status:planning"
11-
- "status:on hold"
12-
- "status:ready"
13-
- "type:bug"
14-
- "type:docs"
15-
- "type:enhancement"
16-
- "type:feature"
17-
- "type:refactor"
18-
- "type:task"
17+
stale-issue-label: "status:stale"
18+
stale-pr-label: "status:stale"
1919

20-
# Label to use when marking an issue as stale
21-
staleLabel: "status:stale"
20+
exempt-issue-labels: >
21+
status:idea,
22+
status:planning,
23+
status:on hold,
24+
status:ready,
25+
type:bug,
26+
type:docs,
27+
type:enhancement,
28+
type:feature,
29+
type:refactor,
30+
type:task,
2231
23-
# Comment to post when marking an issue as stale. Set to `false` to disable
24-
markComment: >
25-
This issue has been automatically marked as stale because it has not had
26-
recent activity. It will be closed if no further activity occurs. Thank you
27-
for your contributions.
28-
29-
# Comment to post when closing a stale issue. Set to `false` to disable
30-
closeComment: false
31-
32-
# Limit to only `issues` or `pulls`
33-
only: issues
32+
stale-issue-message: >
33+
This issue has been automatically marked as stale because it has not had
34+
recent activity. It will be closed if no further activity occurs. Thank you
35+
for your contributions.
36+
close-issue-message: >
37+
This issue was closed because it has been stalled for 7 days with no activity.

0 commit comments

Comments
 (0)