liblaf-cherries 0.0.0__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- liblaf_cherries-0.0.2/.config/.restic-ignore +179 -0
- liblaf_cherries-0.0.2/.config/resticprofile.toml +17 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.cspell.json +20 -1
- liblaf_cherries-0.0.2/.envrc +15 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.github/copier/.copier-answers.python.yaml +4 -2
- liblaf_cherries-0.0.2/.github/copier/.copier-answers.release.yaml +6 -0
- liblaf_cherries-0.0.0/.github/copier/.copier-answers.share.yaml → liblaf_cherries-0.0.2/.github/copier/.copier-answers.shared.yaml +3 -2
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.github/linters/.ruff.toml +4 -0
- liblaf_cherries-0.0.2/.github/linters/pyrightconfig.json +12 -0
- liblaf_cherries-0.0.2/.github/release-please/.manifest.json +1 -0
- liblaf_cherries-0.0.0/.github/workflows/mega-linter.yaml → liblaf_cherries-0.0.2/.github/workflows/shared-mega-linter.yaml +16 -2
- liblaf_cherries-0.0.2/.github/workflows/shared-pr.yaml +51 -0
- liblaf_cherries-0.0.2/.github/workflows/shared-release-please.yaml +108 -0
- liblaf_cherries-0.0.0/.github/workflows/release.yaml → liblaf_cherries-0.0.2/.github/workflows/shared-release.yaml +25 -4
- liblaf_cherries-0.0.0/.github/workflows/auto-repo.yaml → liblaf_cherries-0.0.2/.github/workflows/shared-repo.yaml +32 -4
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.gitignore +1 -1
- liblaf_cherries-0.0.2/CHANGELOG.md +52 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/PKG-INFO +3 -2
- liblaf_cherries-0.0.2/exp/hello-cherries.py +14 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/pixi.lock +163 -1
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/pyproject.toml +3 -2
- liblaf_cherries-0.0.2/pyrightconfig.json +4 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/scripts/gen-init.sh +2 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/__init__.pyi +34 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/_config.py +22 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/_env.py +4 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/_experiment.py +111 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/_main.py +38 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/_start.py +26 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/integration/__init__.pyi +5 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/integration/_backend.py +53 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/integration/_factory.py +13 -0
- liblaf_cherries-0.0.2/src/liblaf/cherries/integration/_neptune.py +66 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/plugin/__init__.pyi +2 -1
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/plugin/_abc.py +6 -6
- liblaf_cherries-0.0.2/src/liblaf/cherries/plugin/_default.py +9 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/plugin/_git.py +2 -2
- liblaf_cherries-0.0.2/src/liblaf/cherries/plugin/_logging.py +58 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/plugin/_restic.py +20 -5
- liblaf_cherries-0.0.0/.envrc +0 -10
- liblaf_cherries-0.0.0/.github/.mega-linter.yaml +0 -5
- liblaf_cherries-0.0.0/.github/copier/.copier-answers.release.yaml +0 -5
- liblaf_cherries-0.0.0/.github/release-please/.manifest.json +0 -1
- liblaf_cherries-0.0.0/.github/release-please.yml +0 -5
- liblaf_cherries-0.0.0/.github/workflows/auto-pr.yaml +0 -33
- liblaf_cherries-0.0.0/CHANGELOG.md +0 -24
- liblaf_cherries-0.0.0/src/liblaf/cherries/__init__.pyi +0 -23
- liblaf_cherries-0.0.0/src/liblaf/cherries/_start.py +0 -48
- liblaf_cherries-0.0.0/src/liblaf/cherries/integration/__init__.pyi +0 -4
- liblaf_cherries-0.0.0/src/liblaf/cherries/integration/_abc.py +0 -134
- liblaf_cherries-0.0.0/src/liblaf/cherries/integration/_neptune.py +0 -53
- liblaf_cherries-0.0.0/src/liblaf/cherries/plugin/_default.py +0 -5
- liblaf_cherries-0.0.0/src/liblaf/cherries/plugin/_logging.py +0 -20
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.github/release-please/config.json +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.github/renovate.json +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.ruff.toml +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/.vscode/settings.json +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/Justfile +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/LICENSE +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/__builtins__.pyi +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/docs/README.md +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/__init__.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/__init__.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/__init__.pyi +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/_commit.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/_entrypoint.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/_repo.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/github/__init__.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/github/__init__.pyi +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/github/_link.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/git/github/_repo.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/integration/__init__.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/plugin/__init__.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/utils/__init__.py +0 -0
- {liblaf_cherries-0.0.0 → liblaf_cherries-0.0.2}/src/liblaf/cherries/utils/__init__.pyi +0 -0
@@ -0,0 +1,179 @@
|
|
1
|
+
# vim: syntax=ignore
|
2
|
+
# Created by https://www.toptal.com/developers/gitignore/api/python
|
3
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=python
|
4
|
+
|
5
|
+
### Python ###
|
6
|
+
# Byte-compiled / optimized / DLL files
|
7
|
+
__pycache__/
|
8
|
+
*.py[cod]
|
9
|
+
*$py.class
|
10
|
+
|
11
|
+
# C extensions
|
12
|
+
*.so
|
13
|
+
|
14
|
+
# Distribution / packaging
|
15
|
+
.Python
|
16
|
+
build/
|
17
|
+
develop-eggs/
|
18
|
+
dist/
|
19
|
+
downloads/
|
20
|
+
eggs/
|
21
|
+
.eggs/
|
22
|
+
lib/
|
23
|
+
lib64/
|
24
|
+
parts/
|
25
|
+
sdist/
|
26
|
+
var/
|
27
|
+
wheels/
|
28
|
+
share/python-wheels/
|
29
|
+
*.egg-info/
|
30
|
+
.installed.cfg
|
31
|
+
*.egg
|
32
|
+
MANIFEST
|
33
|
+
|
34
|
+
# PyInstaller
|
35
|
+
# Usually these files are written by a python script from a template
|
36
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
37
|
+
*.manifest
|
38
|
+
*.spec
|
39
|
+
|
40
|
+
# Installer logs
|
41
|
+
pip-log.txt
|
42
|
+
pip-delete-this-directory.txt
|
43
|
+
|
44
|
+
# Unit test / coverage reports
|
45
|
+
htmlcov/
|
46
|
+
.tox/
|
47
|
+
.nox/
|
48
|
+
.coverage
|
49
|
+
.coverage.*
|
50
|
+
.cache
|
51
|
+
nosetests.xml
|
52
|
+
coverage.xml
|
53
|
+
*.cover
|
54
|
+
*.py,cover
|
55
|
+
.hypothesis/
|
56
|
+
.pytest_cache/
|
57
|
+
cover/
|
58
|
+
|
59
|
+
# Translations
|
60
|
+
*.mo
|
61
|
+
*.pot
|
62
|
+
|
63
|
+
# Django stuff:
|
64
|
+
# *.log
|
65
|
+
local_settings.py
|
66
|
+
db.sqlite3
|
67
|
+
db.sqlite3-journal
|
68
|
+
|
69
|
+
# Flask stuff:
|
70
|
+
instance/
|
71
|
+
.webassets-cache
|
72
|
+
|
73
|
+
# Scrapy stuff:
|
74
|
+
.scrapy
|
75
|
+
|
76
|
+
# Sphinx documentation
|
77
|
+
docs/_build/
|
78
|
+
|
79
|
+
# PyBuilder
|
80
|
+
.pybuilder/
|
81
|
+
target/
|
82
|
+
|
83
|
+
# Jupyter Notebook
|
84
|
+
.ipynb_checkpoints
|
85
|
+
|
86
|
+
# IPython
|
87
|
+
profile_default/
|
88
|
+
ipython_config.py
|
89
|
+
|
90
|
+
# pyenv
|
91
|
+
# For a library or package, you might want to ignore these files since the code is
|
92
|
+
# intended to run in multiple environments; otherwise, check them in:
|
93
|
+
# .python-version
|
94
|
+
|
95
|
+
# pipenv
|
96
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
97
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
98
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
99
|
+
# install all needed dependencies.
|
100
|
+
#Pipfile.lock
|
101
|
+
|
102
|
+
# poetry
|
103
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
104
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
105
|
+
# commonly ignored for libraries.
|
106
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
107
|
+
#poetry.lock
|
108
|
+
|
109
|
+
# pdm
|
110
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
111
|
+
#pdm.lock
|
112
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
113
|
+
# in version control.
|
114
|
+
# https://pdm.fming.dev/#use-with-ide
|
115
|
+
.pdm.toml
|
116
|
+
|
117
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
118
|
+
__pypackages__/
|
119
|
+
|
120
|
+
# Celery stuff
|
121
|
+
celerybeat-schedule
|
122
|
+
celerybeat.pid
|
123
|
+
|
124
|
+
# SageMath parsed files
|
125
|
+
*.sage.py
|
126
|
+
|
127
|
+
# Environments
|
128
|
+
.env
|
129
|
+
.venv
|
130
|
+
env/
|
131
|
+
venv/
|
132
|
+
ENV/
|
133
|
+
env.bak/
|
134
|
+
venv.bak/
|
135
|
+
|
136
|
+
# Spyder project settings
|
137
|
+
.spyderproject
|
138
|
+
.spyproject
|
139
|
+
|
140
|
+
# Rope project settings
|
141
|
+
.ropeproject
|
142
|
+
|
143
|
+
# mkdocs documentation
|
144
|
+
/site
|
145
|
+
|
146
|
+
# mypy
|
147
|
+
.mypy_cache/
|
148
|
+
.dmypy.json
|
149
|
+
dmypy.json
|
150
|
+
|
151
|
+
# Pyre type checker
|
152
|
+
.pyre/
|
153
|
+
|
154
|
+
# pytype static type analyzer
|
155
|
+
.pytype/
|
156
|
+
|
157
|
+
# Cython debug symbols
|
158
|
+
cython_debug/
|
159
|
+
|
160
|
+
# PyCharm
|
161
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
162
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
163
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
164
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
165
|
+
#.idea/
|
166
|
+
|
167
|
+
### Python Patch ###
|
168
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
169
|
+
poetry.toml
|
170
|
+
|
171
|
+
# ruff
|
172
|
+
.ruff_cache/
|
173
|
+
|
174
|
+
# LSP config files
|
175
|
+
# pyrightconfig.json
|
176
|
+
|
177
|
+
# End of https://www.toptal.com/developers/gitignore/api/python
|
178
|
+
|
179
|
+
.pixi/
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#:schema https://creativeprojects.github.io/resticprofile/jsonschema/config.json
|
2
|
+
|
3
|
+
[global]
|
4
|
+
initialize = true
|
5
|
+
prevent-auto-repository-file = true
|
6
|
+
prevent-sleep = true
|
7
|
+
|
8
|
+
[default]
|
9
|
+
insecure-no-password = true
|
10
|
+
repository = "~/restic/cherries"
|
11
|
+
|
12
|
+
[default.backup]
|
13
|
+
check-after = true
|
14
|
+
check-before = true
|
15
|
+
source = ["."]
|
16
|
+
source-relative = true
|
17
|
+
exclude-file = [".restic-ignore"]
|
@@ -6,23 +6,42 @@
|
|
6
6
|
"asyncio",
|
7
7
|
"bdabdac",
|
8
8
|
"cuda",
|
9
|
+
"customise",
|
10
|
+
"cython",
|
11
|
+
"dmypy",
|
12
|
+
"dotenv",
|
9
13
|
"getattr",
|
10
14
|
"hynek",
|
15
|
+
"ipynb",
|
16
|
+
"ipython",
|
11
17
|
"libc",
|
12
18
|
"liblaf",
|
19
|
+
"mkdocs",
|
20
|
+
"mypy",
|
13
21
|
"numpy",
|
22
|
+
"pipenv",
|
14
23
|
"pixi",
|
24
|
+
"pybuilder",
|
25
|
+
"pycache",
|
15
26
|
"pydantic",
|
16
27
|
"pydocstyle",
|
28
|
+
"pyenv",
|
29
|
+
"pyflow",
|
17
30
|
"pypa",
|
31
|
+
"pypackages",
|
18
32
|
"pypi",
|
19
33
|
"pyplot",
|
20
34
|
"pyproject",
|
21
35
|
"pyrightconfig",
|
36
|
+
"pytest",
|
37
|
+
"pytype",
|
22
38
|
"pyvista",
|
39
|
+
"scrapy",
|
40
|
+
"sdist",
|
23
41
|
"stefanzweifel",
|
24
42
|
"trimesh",
|
25
|
-
"ubelt"
|
43
|
+
"ubelt",
|
44
|
+
"venv"
|
26
45
|
],
|
27
46
|
"ignorePaths": [
|
28
47
|
"**/.cspell.*",
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
watch_file "pyproject.toml" "pixi.toml" "pixi.lock"
|
3
|
+
if [[ -t 2 ]]; then
|
4
|
+
color="always"
|
5
|
+
else
|
6
|
+
color="auto"
|
7
|
+
fi
|
8
|
+
eval "$(pixi --color "$color" shell-hook)"
|
9
|
+
|
10
|
+
NEPTUNE_API_TOKEN="$(rbw get --field "API_TOKEN" "Neptune.ai")"
|
11
|
+
export LIBLAF_CHERRIES_BACKEND="neptune"
|
12
|
+
export LIBLAF_CHERRIES_GIT_AUTO_COMMIT=false
|
13
|
+
export NEPTUNE_API_TOKEN
|
14
|
+
export NEPTUNE_MONITORING_NAMESPACE="monitoring"
|
15
|
+
export NEPTUNE_PROJECT="cherries"
|
@@ -1,5 +1,7 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# This file is @generated by <https://github.com/liblaf/copier-python>.
|
2
|
+
# DO NOT EDIT!
|
3
|
+
# prettier-ignore
|
4
|
+
_commit: 11b97e3
|
3
5
|
_src_path: gh:liblaf/copier-python
|
4
6
|
author: liblaf
|
5
7
|
email: 30631553+liblaf@users.noreply.github.com
|
@@ -1,6 +1,7 @@
|
|
1
|
-
#
|
1
|
+
# This file is @generated by <https://github.com/liblaf/copier-shared>.
|
2
|
+
# DO NOT EDIT!
|
2
3
|
# prettier-ignore
|
3
|
-
_commit:
|
4
|
+
_commit: 25684d3
|
4
5
|
_src_path: gh:liblaf/copier-share
|
5
6
|
copyright_holder: liblaf
|
6
7
|
license: MIT
|
@@ -1,7 +1,11 @@
|
|
1
1
|
#:schema https://json.schemastore.org/ruff.json
|
2
|
+
# This file is @generated by <https://github.com/liblaf/copier-python>.
|
3
|
+
# DO NOT EDIT!
|
4
|
+
|
2
5
|
builtins = ["ic"]
|
3
6
|
fix = true
|
4
7
|
show-fixes = true
|
8
|
+
target-version = "py312"
|
5
9
|
|
6
10
|
[format]
|
7
11
|
docstring-code-format = true
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
|
3
|
+
|
4
|
+
"enableTypeIgnoreComments": false,
|
5
|
+
|
6
|
+
"typeCheckingMode": "standard",
|
7
|
+
|
8
|
+
"reportArgumentType": "information",
|
9
|
+
"reportAssignmentType": "information",
|
10
|
+
"reportPrivateImportUsage": "none",
|
11
|
+
"reportRedeclaration": "none"
|
12
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{".":"0.0.2"}
|
@@ -1,8 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# This file is @generated by <https://github.com/liblaf/copier-shared>.
|
2
|
+
# DO NOT EDIT!
|
3
|
+
|
2
4
|
# https://github.com/oxsecurity/megalinter/blob/main/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml
|
3
5
|
# https://megalinter.io
|
4
6
|
|
5
|
-
name: MegaLinter
|
7
|
+
name: (Shared) MegaLinter
|
6
8
|
|
7
9
|
on:
|
8
10
|
push:
|
@@ -18,8 +20,20 @@ jobs:
|
|
18
20
|
security-events: write # https://megalinter.io/latest/reporters/SarifReporter/
|
19
21
|
statuses: write # https://megalinter.io/latest/reporters/GitHubStatusReporter/
|
20
22
|
runs-on: ubuntu-latest
|
23
|
+
concurrency:
|
24
|
+
group: ${{ github.workflow }}-${{ github.ref }}-mega-linter
|
25
|
+
cancel-in-progress: true
|
21
26
|
steps:
|
22
27
|
- name: Checkout
|
23
28
|
uses: actions/checkout@v4
|
29
|
+
with:
|
30
|
+
token: ${{ secrets.PAT || github.token }}
|
24
31
|
- name: MegaLinter
|
25
32
|
uses: liblaf/actions/mega-linter@main
|
33
|
+
- name: Remove MegaLinter Reports
|
34
|
+
run: sudo rm --force --recursive "mega-linter.log" "megalinter-reports/"
|
35
|
+
- name: Auto Commit
|
36
|
+
uses: stefanzweifel/git-auto-commit-action@v5
|
37
|
+
with:
|
38
|
+
commit_message: "chore(mega-linter): apply linters fixes"
|
39
|
+
add_options: --update
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# This file is @generated by <https://github.com/liblaf/copier-shared>.
|
2
|
+
# DO NOT EDIT!
|
3
|
+
|
4
|
+
name: (Shared) PR
|
5
|
+
|
6
|
+
on:
|
7
|
+
schedule:
|
8
|
+
- cron: "0 0 * * *"
|
9
|
+
- cron: "0 0 * * 0"
|
10
|
+
workflow_dispatch:
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
merge:
|
14
|
+
name: Merge
|
15
|
+
permissions:
|
16
|
+
pull-requests: write
|
17
|
+
if: >-
|
18
|
+
(
|
19
|
+
github.event_name == 'schedule' &&
|
20
|
+
github.event.schedule == '0 0 * * 0'
|
21
|
+
) || github.event_name == 'workflow_dispatch'
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
concurrency:
|
24
|
+
group: ${{ github.workflow }}-merge
|
25
|
+
cancel-in-progress: true
|
26
|
+
steps:
|
27
|
+
- name: Merge
|
28
|
+
uses: liblaf/actions/pr-label@main
|
29
|
+
with:
|
30
|
+
add-label: automerge
|
31
|
+
label: "autorelease: pending"
|
32
|
+
token: ${{ secrets.PAT || github.token }}
|
33
|
+
|
34
|
+
review:
|
35
|
+
name: Review
|
36
|
+
permissions:
|
37
|
+
pull-requests: write
|
38
|
+
if: >-
|
39
|
+
(
|
40
|
+
github.event_name == 'schedule' &&
|
41
|
+
github.event.schedule == '0 0 * * *'
|
42
|
+
) || github.event_name == 'workflow_dispatch'
|
43
|
+
runs-on: ubuntu-latest
|
44
|
+
concurrency:
|
45
|
+
group: ${{ github.workflow }}-review
|
46
|
+
cancel-in-progress: true
|
47
|
+
steps:
|
48
|
+
- name: Review
|
49
|
+
uses: liblaf/actions/pr-review@main
|
50
|
+
with:
|
51
|
+
token: ${{ secrets.PAT || github.token }}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# This file is @generated by <https://github.com/liblaf/copier-release>.
|
2
|
+
# DO NOT EDIT!
|
3
|
+
|
4
|
+
name: (Shared) Release Please
|
5
|
+
|
6
|
+
on:
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- main
|
10
|
+
workflow_dispatch:
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
release-please:
|
14
|
+
name: Release Please
|
15
|
+
permissions:
|
16
|
+
contents: write
|
17
|
+
pull-requests: write
|
18
|
+
runs-on: ubuntu-latest
|
19
|
+
concurrency:
|
20
|
+
group: ${{ github.workflow }}-${{ github.ref }}-release-please
|
21
|
+
cancel-in-progress: true
|
22
|
+
outputs:
|
23
|
+
created: ${{ steps.release-please.outputs.release_created }}
|
24
|
+
pr: ${{ steps.release-please.outputs.pr }}
|
25
|
+
tag: ${{ steps.release-please.outputs.tag_name }}
|
26
|
+
steps:
|
27
|
+
- id: release-please
|
28
|
+
name: Release Please
|
29
|
+
uses: googleapis/release-please-action@v4
|
30
|
+
with:
|
31
|
+
config-file: .github/release-please/config.json
|
32
|
+
manifest-file: .github/release-please/.manifest.json
|
33
|
+
token: ${{ github.token }}
|
34
|
+
|
35
|
+
changelog-pr:
|
36
|
+
name: Changelog (PR)
|
37
|
+
permissions:
|
38
|
+
contents: write
|
39
|
+
needs:
|
40
|
+
- release-please
|
41
|
+
if: ${{ needs.release-please.outputs.pr }}
|
42
|
+
runs-on: ubuntu-latest
|
43
|
+
concurrency:
|
44
|
+
group: ${{ github.workflow }}-${{ github.ref }}-changelog-pr
|
45
|
+
cancel-in-progress: true
|
46
|
+
steps:
|
47
|
+
- name: Checkout
|
48
|
+
uses: actions/checkout@v4
|
49
|
+
with:
|
50
|
+
ref: ${{ fromJson(needs.release-please.outputs.pr).headBranchName }}
|
51
|
+
token: ${{ github.token }}
|
52
|
+
fetch-depth: 0
|
53
|
+
- id: tag
|
54
|
+
name: Parse Tag
|
55
|
+
run: |-
|
56
|
+
title="${{ fromJson(needs.release-please.outputs.pr).title }}"
|
57
|
+
version=$(echo "$title" | awk '{ print $NF }')
|
58
|
+
echo "tag=v$version" >> "$GITHUB_OUTPUT"
|
59
|
+
- name: Changelog
|
60
|
+
uses: liblaf/actions/changelog@main
|
61
|
+
with:
|
62
|
+
args: --tag "${{ steps.tag.outputs.tag }}"
|
63
|
+
output: CHANGELOG.md
|
64
|
+
- name: Commit
|
65
|
+
uses: stefanzweifel/git-auto-commit-action@v5
|
66
|
+
with:
|
67
|
+
commit_message: "chore(docs): update CHANGELOG.md"
|
68
|
+
file_pattern: CHANGELOG.md
|
69
|
+
|
70
|
+
changelog-release:
|
71
|
+
name: Changelog (Release)
|
72
|
+
permissions:
|
73
|
+
actions: write
|
74
|
+
contents: write
|
75
|
+
needs:
|
76
|
+
- release-please
|
77
|
+
if: ${{ needs.release-please.outputs.created }}
|
78
|
+
runs-on: ubuntu-latest
|
79
|
+
concurrency:
|
80
|
+
group: ${{ github.workflow }}-${{ github.ref }}-changelog-release
|
81
|
+
cancel-in-progress: true
|
82
|
+
steps:
|
83
|
+
- name: Checkout
|
84
|
+
uses: actions/checkout@v4
|
85
|
+
with:
|
86
|
+
ref: ${{ needs.release-please.outputs.tag }}
|
87
|
+
fetch-depth: 0
|
88
|
+
- id: changelog
|
89
|
+
name: Changelog
|
90
|
+
uses: liblaf/actions/changelog@main
|
91
|
+
with:
|
92
|
+
args: --current --strip all
|
93
|
+
- name: Update Release
|
94
|
+
run: gh release edit "${{ needs.release-please.outputs.tag }}" --notes-file "${{ steps.changelog.outputs.changelog }}"
|
95
|
+
env:
|
96
|
+
GH_TOKEN: ${{ github.token }}
|
97
|
+
- name: Trigger Release Workflow
|
98
|
+
run: |-
|
99
|
+
WORKFLOW_FILES=(.github/workflows/{,shared-}release{.yaml,.yml})
|
100
|
+
for workflow_file in "${WORKFLOW_FILES[@]}"; do
|
101
|
+
if [[ -f $workflow_file ]]; then
|
102
|
+
workflow_name=$(basename -- "$workflow_file")
|
103
|
+
echo "::notice::Triggering workflow: $workflow_name"
|
104
|
+
gh workflow run "$workflow_name" --ref "${{ needs.release-please.outputs.tag }}"
|
105
|
+
fi
|
106
|
+
done
|
107
|
+
env:
|
108
|
+
GH_TOKEN: ${{ github.token }}
|
@@ -1,10 +1,14 @@
|
|
1
|
-
|
1
|
+
# This file is @generated by <https://github.com/liblaf/copier-python>.
|
2
|
+
# DO NOT EDIT!
|
3
|
+
|
4
|
+
name: (Shared) Release
|
2
5
|
|
3
6
|
on:
|
4
7
|
push:
|
5
8
|
release:
|
6
9
|
types:
|
7
10
|
- published
|
11
|
+
workflow_dispatch:
|
8
12
|
|
9
13
|
jobs:
|
10
14
|
build:
|
@@ -25,8 +29,11 @@ jobs:
|
|
25
29
|
id-token: write
|
26
30
|
needs:
|
27
31
|
- build
|
28
|
-
if: github.event_name == 'release'
|
32
|
+
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/v')
|
29
33
|
runs-on: ubuntu-latest
|
34
|
+
concurrency:
|
35
|
+
group: ${{ github.workflow }}-${{ github.ref }}-publish
|
36
|
+
cancel-in-progress: true
|
30
37
|
steps:
|
31
38
|
- name: Download Artifacts
|
32
39
|
uses: actions/download-artifact@v4
|
@@ -44,7 +51,14 @@ jobs:
|
|
44
51
|
- build
|
45
52
|
if: github.ref == 'refs/heads/main'
|
46
53
|
runs-on: ubuntu-latest
|
54
|
+
concurrency:
|
55
|
+
group: ${{ github.workflow }}-${{ github.ref }}-pre-release
|
56
|
+
cancel-in-progress: true
|
47
57
|
steps:
|
58
|
+
- name: Checkout
|
59
|
+
uses: actions/checkout@v4
|
60
|
+
with:
|
61
|
+
fetch-depth: 0
|
48
62
|
- name: Download Artifacts
|
49
63
|
uses: actions/download-artifact@v4
|
50
64
|
with:
|
@@ -64,9 +78,16 @@ jobs:
|
|
64
78
|
contents: write
|
65
79
|
needs:
|
66
80
|
- build
|
67
|
-
if: github.event_name == 'release'
|
81
|
+
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/v')
|
68
82
|
runs-on: ubuntu-latest
|
83
|
+
concurrency:
|
84
|
+
group: ${{ github.workflow }}-${{ github.ref }}-release
|
85
|
+
cancel-in-progress: true
|
69
86
|
steps:
|
87
|
+
- name: Checkout
|
88
|
+
uses: actions/checkout@v4
|
89
|
+
with:
|
90
|
+
fetch-depth: 0
|
70
91
|
- name: Download Artifacts
|
71
92
|
uses: actions/download-artifact@v4
|
72
93
|
with:
|
@@ -76,4 +97,4 @@ jobs:
|
|
76
97
|
uses: liblaf/actions/release@main
|
77
98
|
with:
|
78
99
|
files: dist/*
|
79
|
-
tag: ${{ github.event.release.tag_name }}
|
100
|
+
tag: ${{ github.event.release.tag_name || github.ref_name }}
|
@@ -1,7 +1,12 @@
|
|
1
|
-
|
1
|
+
# This file is @generated by <https://github.com/liblaf/copier-shared>.
|
2
|
+
# DO NOT EDIT!
|
3
|
+
|
4
|
+
name: (Shared) Repo
|
2
5
|
|
3
6
|
on:
|
4
7
|
push:
|
8
|
+
branches:
|
9
|
+
- main
|
5
10
|
paths:
|
6
11
|
- .github/workflows/auto-repo.yaml
|
7
12
|
schedule:
|
@@ -15,6 +20,9 @@ jobs:
|
|
15
20
|
actions: write
|
16
21
|
contents: write
|
17
22
|
runs-on: ubuntu-latest
|
23
|
+
concurrency:
|
24
|
+
group: ${{ github.workflow }}-copier-update
|
25
|
+
cancel-in-progress: true
|
18
26
|
steps:
|
19
27
|
- name: Checkout
|
20
28
|
uses: actions/checkout@v4
|
@@ -26,15 +34,15 @@ jobs:
|
|
26
34
|
uses: stefanzweifel/git-auto-commit-action@v5
|
27
35
|
with:
|
28
36
|
commit_message: "chore(copier): update from template"
|
29
|
-
commit_user_name: ${{ github.actor }}
|
30
|
-
commit_user_email: ${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com
|
31
|
-
commit_author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
|
32
37
|
|
33
38
|
label-sync:
|
34
39
|
name: Label Sync
|
35
40
|
permissions:
|
36
41
|
issues: write
|
37
42
|
runs-on: ubuntu-latest
|
43
|
+
concurrency:
|
44
|
+
group: ${{ github.workflow }}-label-sync
|
45
|
+
cancel-in-progress: true
|
38
46
|
steps:
|
39
47
|
- name: Label Sync
|
40
48
|
uses: EndBug/label-sync@v2
|
@@ -46,6 +54,9 @@ jobs:
|
|
46
54
|
repo-edit:
|
47
55
|
name: Repo Edit
|
48
56
|
runs-on: ubuntu-latest
|
57
|
+
concurrency:
|
58
|
+
group: ${{ github.workflow }}-repo-edit
|
59
|
+
cancel-in-progress: true
|
49
60
|
steps:
|
50
61
|
- name: Repo Edit
|
51
62
|
run: |-
|
@@ -63,9 +74,26 @@ jobs:
|
|
63
74
|
env:
|
64
75
|
GH_TOKEN: ${{ secrets.PAT || github.token }}
|
65
76
|
|
77
|
+
ruleset-import:
|
78
|
+
name: Ruleset Import
|
79
|
+
runs-on: ubuntu-latest
|
80
|
+
concurrency:
|
81
|
+
group: ${{ github.workflow }}-ruleset-import
|
82
|
+
cancel-in-progress: true
|
83
|
+
steps:
|
84
|
+
- name: Ruleset Import
|
85
|
+
uses: liblaf/actions/ruleset-import@main
|
86
|
+
with:
|
87
|
+
token: ${{ secrets.PAT || github.token }}
|
88
|
+
source-repo: liblaf/.github
|
89
|
+
source-ruleset-id: 3407904
|
90
|
+
|
66
91
|
set-default-workflow-permissions:
|
67
92
|
name: Set Default Workflow Permissions
|
68
93
|
runs-on: ubuntu-latest
|
94
|
+
concurrency:
|
95
|
+
group: ${{ github.workflow }}-set-default-workflow-permissions
|
96
|
+
cancel-in-progress: true
|
69
97
|
steps:
|
70
98
|
- name: Set Default Workflow Permissions
|
71
99
|
run: |-
|