promtext-cli 0.1.2.dev94__tar.gz → 0.1.2.dev95__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.
Files changed (21) hide show
  1. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/.copier-answers.yml +1 -1
  2. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/.forgejo/workflows/commitlint.yaml +1 -1
  3. promtext_cli-0.1.2.dev95/.forgejo/workflows/lint.yaml +44 -0
  4. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/.forgejo/workflows/publish.yaml +20 -2
  5. promtext_cli-0.1.2.dev95/.forgejo/workflows/test.yaml +42 -0
  6. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/PKG-INFO +1 -1
  7. promtext_cli-0.1.2.dev94/.forgejo/workflows/lint.yaml +0 -27
  8. promtext_cli-0.1.2.dev94/.forgejo/workflows/test.yaml +0 -25
  9. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/.commitlintrc.yaml +0 -0
  10. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/.gitignore +0 -0
  11. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/.pre-commit-config.yaml +0 -0
  12. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/README.md +0 -0
  13. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/cliff.toml +0 -0
  14. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/promtext_cli/__init__.py +0 -0
  15. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/promtext_cli/main.py +0 -0
  16. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/pyproject.toml +0 -0
  17. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/renovate.json +0 -0
  18. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/tests/.gitkeep +0 -0
  19. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/tests/test_blackbox.py +0 -0
  20. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/tests/test_functional.py +0 -0
  21. {promtext_cli-0.1.2.dev94 → promtext_cli-0.1.2.dev95}/uv.lock +0 -0
@@ -1,5 +1,5 @@
1
1
  # Changes here will be overwritten by Copier.
2
- _commit: 0.7.8
2
+ _commit: 0.8.1
3
3
  _src_path: https://codeberg.org/margau/copier-python-uv.git
4
4
  code_dir: promtext_cli
5
5
  container: false
@@ -11,7 +11,7 @@ jobs:
11
11
  commitlint-check:
12
12
  runs-on: docker
13
13
  container:
14
- image: codeberg.org/margau/buildenv-commitlint:latest@sha256:8253a5665a32be5a1ec56589e85e9c40634ca43a3d3ec261b08759e8e87efc60
14
+ image: codeberg.org/margau/buildenv-commitlint:latest@sha256:84d45cf95d2fd17cf1a2de6f30a21dfd09563900f71600ebad62636da37bc8b9
15
15
 
16
16
  steps:
17
17
  - uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -0,0 +1,44 @@
1
+ name: lint
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ # non-main branches are handled by pull_request
8
+ pull_request:
9
+
10
+ jobs:
11
+ lint-check:
12
+ runs-on: docker
13
+ env:
14
+ UV_CACHE_DIR: /tmp/.uv-cache
15
+ container:
16
+ image: codeberg.org/margau/buildenv-uv:latest@sha256:5fe5329c217c5107242a2b04523f25facbfe0a9ff00f895fbf8f6334e239a7b0
17
+
18
+ steps:
19
+ - uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20
+ with:
21
+ fetch-depth: 0
22
+ - name: cache restore
23
+ uses: https://code.forgejo.org/actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
24
+ with:
25
+ path: /tmp/.uv-cache
26
+ key: uv-${{ hashFiles('uv.lock') }}
27
+ restore-keys: |
28
+ uv-${{ hashFiles('uv.lock') }}
29
+ uv
30
+ - name: Install the project
31
+ run: uv sync --locked --all-extras --dev
32
+ - name: check with ruff
33
+ run: uv run ruff check promtext_cli tests
34
+ - name: format with ruff
35
+ run: uv run ruff format --check promtext_cli tests
36
+ - name: check with pylint
37
+ run: uv run pylint promtext_cli tests # TODO: Check if there is a need for special pytest-related pylint rules
38
+ - name: Minimize uv cache
39
+ run: uv cache prune --ci
40
+ - name: cache save
41
+ uses: https://code.forgejo.org/actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
42
+ with:
43
+ path: /tmp/.uv-cache
44
+ key: uv-${{ hashFiles('uv.lock') }}
@@ -13,13 +13,23 @@ jobs:
13
13
  build_publish:
14
14
  name: "Build (and Publish)"
15
15
  runs-on: docker
16
+ env:
17
+ UV_CACHE_DIR: /tmp/.uv-cache
16
18
  container:
17
- image: codeberg.org/margau/buildenv-uv:latest@sha256:aaaf8bd9bfbe276136de485eb397aad9dc569b0ae76473b12f16b0205fcf4be0
19
+ image: codeberg.org/margau/buildenv-uv:latest@sha256:5fe5329c217c5107242a2b04523f25facbfe0a9ff00f895fbf8f6334e239a7b0
18
20
 
19
21
  steps:
20
22
  - uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
21
23
  with:
22
24
  fetch-depth: 0
25
+ - name: cache restore
26
+ uses: https://code.forgejo.org/actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
27
+ with:
28
+ path: /tmp/.uv-cache
29
+ key: uv-${{ hashFiles('uv.lock') }}
30
+ restore-keys: |
31
+ uv-${{ hashFiles('uv.lock') }}
32
+ uv
23
33
  - name: Build the project
24
34
  run: uv build
25
35
  - name: Publish release to pypi
@@ -45,11 +55,19 @@ jobs:
45
55
  direction: upload
46
56
  release-dir: dist
47
57
  release-notes-file: notes.md
58
+ - name: Minimize uv cache
59
+ run: uv cache prune --ci
60
+ - name: cache save
61
+ uses: https://code.forgejo.org/actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
62
+ with:
63
+ path: /tmp/.uv-cache
64
+ key: uv-${{ hashFiles('uv.lock') }}
65
+
48
66
  releasenotes-draft:
49
67
  name: "Draft Release Notes"
50
68
  runs-on: docker
51
69
  container:
52
- image: codeberg.org/margau/buildenv-uv:latest@sha256:aaaf8bd9bfbe276136de485eb397aad9dc569b0ae76473b12f16b0205fcf4be0
70
+ image: codeberg.org/margau/buildenv-uv:latest@sha256:5fe5329c217c5107242a2b04523f25facbfe0a9ff00f895fbf8f6334e239a7b0
53
71
 
54
72
  steps:
55
73
  - uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
@@ -0,0 +1,42 @@
1
+ name: pytest
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ # non-main branches are handled by pull_request
8
+ pull_request:
9
+
10
+ jobs:
11
+ pytest:
12
+ runs-on: docker
13
+ env:
14
+ UV_CACHE_DIR: /tmp/.uv-cache
15
+ container:
16
+ image: codeberg.org/margau/buildenv-uv:latest@sha256:5fe5329c217c5107242a2b04523f25facbfe0a9ff00f895fbf8f6334e239a7b0
17
+
18
+ steps:
19
+ - uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20
+ with:
21
+ fetch-depth: 0
22
+ - name: cache restore
23
+ uses: https://code.forgejo.org/actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
24
+ with:
25
+ path: /tmp/.uv-cache
26
+ key: uv-${{ hashFiles('uv.lock') }}
27
+ restore-keys: |
28
+ uv-${{ hashFiles('uv.lock') }}
29
+ uv
30
+ - name: Install the project
31
+ run: uv sync --locked --all-extras --dev
32
+ - name: run pytest
33
+ run: uv run coverage run -m pytest -v
34
+ - name: show coverage
35
+ run: uv run coverage report -m
36
+ - name: Minimize uv cache
37
+ run: uv cache prune --ci
38
+ - name: cache save
39
+ uses: https://code.forgejo.org/actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
40
+ with:
41
+ path: /tmp/.uv-cache
42
+ key: uv-${{ hashFiles('uv.lock') }}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: promtext-cli
3
- Version: 0.1.2.dev94
3
+ Version: 0.1.2.dev95
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
@@ -1,27 +0,0 @@
1
- name: lint
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- # non-main branches are handled by pull_request
8
- pull_request:
9
-
10
- jobs:
11
- lint-check:
12
- runs-on: docker
13
- container:
14
- image: codeberg.org/margau/buildenv-uv:latest@sha256:aaaf8bd9bfbe276136de485eb397aad9dc569b0ae76473b12f16b0205fcf4be0
15
-
16
- steps:
17
- - uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
18
- with:
19
- fetch-depth: 0
20
- - name: Install the project
21
- run: uv sync --locked --all-extras --dev
22
- - name: check with ruff
23
- run: uv run ruff check promtext_cli tests
24
- - name: format with ruff
25
- run: uv run ruff format --check promtext_cli tests
26
- - name: check with pylint
27
- run: uv run pylint promtext_cli tests # TODO: Check if there is a need for special pytest-related pylint rules
@@ -1,25 +0,0 @@
1
- name: pytest
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- # non-main branches are handled by pull_request
8
- pull_request:
9
-
10
- jobs:
11
- pytest:
12
- runs-on: docker
13
- container:
14
- image: codeberg.org/margau/buildenv-uv:latest@sha256:aaaf8bd9bfbe276136de485eb397aad9dc569b0ae76473b12f16b0205fcf4be0
15
-
16
- steps:
17
- - uses: https://code.forgejo.org/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
18
- with:
19
- fetch-depth: 0
20
- - name: Install the project
21
- run: uv sync --locked --all-extras --dev
22
- - name: run pytest
23
- run: uv run coverage run -m pytest -v
24
- - name: show coverage
25
- run: uv run coverage report -m