promtext-cli 0.1.2.dev36__tar.gz → 0.1.2.dev37__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.
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/.copier-answers.yml +2 -1
- promtext_cli-0.1.2.dev37/.forgejo/workflows/publish.yaml +62 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/PKG-INFO +1 -1
- promtext_cli-0.1.2.dev37/cliff.toml +76 -0
- promtext_cli-0.1.2.dev36/.forgejo/workflows/publish.yaml +0 -34
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/.commitlintrc.yaml +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/.forgejo/workflows/commitlint.yaml +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/.forgejo/workflows/lint.yaml +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/.gitignore +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/.pre-commit-config.yaml +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/README.md +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/promtext_cli/__init__.py +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/promtext_cli/main.py +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/pyproject.toml +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/renovate.json +0 -0
- {promtext_cli-0.1.2.dev36 → promtext_cli-0.1.2.dev37}/uv.lock +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Changes here will be overwritten by Copier.
|
|
2
|
-
_commit: 0.0.
|
|
2
|
+
_commit: 0.0.189
|
|
3
3
|
_src_path: https://codeberg.org/margau/copier-python-uv.git
|
|
4
4
|
code_dir: src
|
|
5
5
|
container: false
|
|
6
|
+
forgejo_publish: true
|
|
6
7
|
forgejo_url: https://codeberg.org/margau/promtext-cli
|
|
7
8
|
ignore_pylint: true
|
|
8
9
|
ignore_ruff: true
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
tags:
|
|
8
|
+
- 'v*'
|
|
9
|
+
# non-main branches are handled by pull_request
|
|
10
|
+
pull_request:
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build_publish:
|
|
14
|
+
name: "Build (and Publish)"
|
|
15
|
+
runs-on: docker
|
|
16
|
+
container:
|
|
17
|
+
image: codeberg.org/margau/buildenv-uv:latest@sha256:eaa6f1c4510e6d5c0c81164a127e281be029d2ed261e060880145c024e890ce4
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
- name: Build the project
|
|
24
|
+
run: uv build
|
|
25
|
+
- name: Publish release to pypi
|
|
26
|
+
run: uv publish
|
|
27
|
+
if: "${{ startsWith(github.ref, 'refs/tags') }}"
|
|
28
|
+
env:
|
|
29
|
+
UV_PUBLISH_TOKEN: "${{ secrets.UV_PUBLISH_TOKEN }}"
|
|
30
|
+
- name: Publish dev version to pypi
|
|
31
|
+
run: uv publish
|
|
32
|
+
if: "${{ github.ref == 'refs/heads/main' }}"
|
|
33
|
+
env:
|
|
34
|
+
UV_PUBLISH_TOKEN: "${{ secrets.UV_PUBLISH_TOKEN }}"
|
|
35
|
+
- name: release notes
|
|
36
|
+
if: "${{ startsWith(github.ref, 'refs/tags') }}"
|
|
37
|
+
run: |
|
|
38
|
+
git-cliff --current -o notes.md
|
|
39
|
+
env:
|
|
40
|
+
GITEA_REPO: "${{ forgejo.repository }}"
|
|
41
|
+
- name: Upload release assets to Forgejo
|
|
42
|
+
uses: https://code.forgejo.org/crueter/forgejo-release@changelog-file2
|
|
43
|
+
if: "${{ startsWith(github.ref, 'refs/tags') }}"
|
|
44
|
+
with:
|
|
45
|
+
direction: upload
|
|
46
|
+
release-dir: dist
|
|
47
|
+
release-notes-file: notes.md
|
|
48
|
+
releasenotes-draft:
|
|
49
|
+
name: "Draft Release Notes"
|
|
50
|
+
runs-on: docker
|
|
51
|
+
container:
|
|
52
|
+
image: codeberg.org/margau/buildenv-uv:latest@sha256:eaa6f1c4510e6d5c0c81164a127e281be029d2ed261e060880145c024e890ce4
|
|
53
|
+
|
|
54
|
+
steps:
|
|
55
|
+
- uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
56
|
+
with:
|
|
57
|
+
fetch-depth: 0
|
|
58
|
+
- name: draft release notes
|
|
59
|
+
run: |
|
|
60
|
+
git-cliff --unreleased
|
|
61
|
+
env:
|
|
62
|
+
GITEA_REPO: "${{ forgejo.repository }}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: promtext-cli
|
|
3
|
-
Version: 0.1.2.
|
|
3
|
+
Version: 0.1.2.dev37
|
|
4
4
|
Summary: Prometheus Textfile Tooling
|
|
5
5
|
Project-URL: Documentation, https://codeberg.org/margau/promtext-cli/src/branch/main#readme
|
|
6
6
|
Project-URL: Issues, https://codeberg.org/margau/promtext-cli/issues
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# git-cliff ~ configuration file
|
|
2
|
+
# https://git-cliff.org/docs/configuration
|
|
3
|
+
|
|
4
|
+
[changelog]
|
|
5
|
+
# A Tera template to be rendered for each release in the changelog.
|
|
6
|
+
# See https://keats.github.io/tera/docs/#introduction
|
|
7
|
+
body = """
|
|
8
|
+
{% if version %}\
|
|
9
|
+
# [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
10
|
+
{% else %}\
|
|
11
|
+
# [unreleased]
|
|
12
|
+
{% endif %}\
|
|
13
|
+
{%- for group, commits in commits | group_by(attribute="group") %}
|
|
14
|
+
## {{ group | striptags | trim | upper_first }}
|
|
15
|
+
{%- for commit in commits %}
|
|
16
|
+
* {{ commit.message | split(pat="\n") | first | trim }}\
|
|
17
|
+
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- else %} by {{ commit.author.name }} {%- endif -%}
|
|
18
|
+
{% if commit.remote.pr_number %} in \
|
|
19
|
+
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pulls/{{ commit.remote.pr_number }}) \
|
|
20
|
+
{%- endif %}
|
|
21
|
+
{%- endfor %}
|
|
22
|
+
{%- endfor %}
|
|
23
|
+
|
|
24
|
+
{%- if gitea -%}
|
|
25
|
+
{% if gitea.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
|
|
26
|
+
{% raw %}\n{% endraw -%}
|
|
27
|
+
## New Contributors
|
|
28
|
+
{%- endif %}\
|
|
29
|
+
{% for contributor in gitea.contributors | filter(attribute="is_first_time", value=true) %}
|
|
30
|
+
* @{{ contributor.username }} made their first contribution
|
|
31
|
+
{%- if contributor.pr_number %} in \
|
|
32
|
+
[#{{ contributor.pr_number }}]({{ self::remote_url() }}/pulls/{{ contributor.pr_number }}) \
|
|
33
|
+
{%- endif %}
|
|
34
|
+
{%- endfor -%}
|
|
35
|
+
{%- endif -%}
|
|
36
|
+
|
|
37
|
+
{% if version %}
|
|
38
|
+
{% if previous.version %}
|
|
39
|
+
**Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
|
|
40
|
+
{% endif %}
|
|
41
|
+
{% else -%}
|
|
42
|
+
{% raw %}\n{% endraw %}
|
|
43
|
+
{% endif %}
|
|
44
|
+
|
|
45
|
+
{%- macro remote_url() -%}
|
|
46
|
+
https://codeberg.org/entropia/paperless-asn-qr-codes
|
|
47
|
+
{%- endmacro -%}
|
|
48
|
+
"""
|
|
49
|
+
# Remove leading and trailing whitespaces from the changelog's body.
|
|
50
|
+
trim = true
|
|
51
|
+
# A Tera template to be rendered as the changelog's footer.
|
|
52
|
+
# See https://keats.github.io/tera/docs/#introduction
|
|
53
|
+
footer = """
|
|
54
|
+
<!-- generated by git-cliff -->
|
|
55
|
+
"""
|
|
56
|
+
# An array of regex based postprocessors to modify the changelog.
|
|
57
|
+
# Replace the placeholder `<REPO>` with a URL.
|
|
58
|
+
postprocessors = []
|
|
59
|
+
|
|
60
|
+
[git]
|
|
61
|
+
# Parse commits according to the conventional commits specification.
|
|
62
|
+
# See https://www.conventionalcommits.org
|
|
63
|
+
conventional_commits = false
|
|
64
|
+
# Exclude commits that do not match the conventional commits specification.
|
|
65
|
+
filter_unconventional = true
|
|
66
|
+
# Split commits on newlines, treating each line as an individual commit.
|
|
67
|
+
split_commits = false
|
|
68
|
+
# An array of regex based parsers to modify commit messages prior to further processing.
|
|
69
|
+
commit_preprocessors = [{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "" }]
|
|
70
|
+
# Exclude commits that are not matched by any commit parser.
|
|
71
|
+
filter_commits = false
|
|
72
|
+
# Order releases topologically instead of chronologically.
|
|
73
|
+
topo_order = false
|
|
74
|
+
# Order of commits in each group/release within the changelog.
|
|
75
|
+
# Allowed values: newest, oldest
|
|
76
|
+
sort_commits = "newest"
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
tags:
|
|
8
|
-
- 'v*'
|
|
9
|
-
# non-main branches are handled by pull_request
|
|
10
|
-
pull_request:
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build_publish:
|
|
14
|
-
name: "Build (and Publish)"
|
|
15
|
-
runs-on: docker
|
|
16
|
-
container:
|
|
17
|
-
image: codeberg.org/margau/buildenv-uv:latest@sha256:eaa6f1c4510e6d5c0c81164a127e281be029d2ed261e060880145c024e890ce4
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
21
|
-
with:
|
|
22
|
-
fetch-depth: 0
|
|
23
|
-
- name: Build the project
|
|
24
|
-
run: uv build
|
|
25
|
-
- name: Publish release to pypi
|
|
26
|
-
run: uv publish
|
|
27
|
-
if: "${{ startsWith(github.ref, 'refs/tags') }}"
|
|
28
|
-
env:
|
|
29
|
-
UV_PUBLISH_TOKEN: "${{ secrets.UV_PUBLISH_TOKEN }}"
|
|
30
|
-
- name: Publish dev version to pypi
|
|
31
|
-
run: uv publish
|
|
32
|
-
if: "${{ github.ref == 'refs/heads/main' }}"
|
|
33
|
-
env:
|
|
34
|
-
UV_PUBLISH_TOKEN: "${{ secrets.UV_PUBLISH_TOKEN }}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|