cl-keeper 0.0.0b1__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 (80) hide show
  1. cl_keeper-0.0.0b1/.github/dependabot.yml +24 -0
  2. cl_keeper-0.0.0b1/.github/workflows/ci.yaml +188 -0
  3. cl_keeper-0.0.0b1/.github/workflows/test_action.yaml +32 -0
  4. cl_keeper-0.0.0b1/.gitignore +136 -0
  5. cl_keeper-0.0.0b1/.pre-commit-config.yaml +48 -0
  6. cl_keeper-0.0.0b1/.pre-commit-hooks.yaml +18 -0
  7. cl_keeper-0.0.0b1/.readthedocs.yaml +13 -0
  8. cl_keeper-0.0.0b1/CHANGELOG.md +8 -0
  9. cl_keeper-0.0.0b1/LICENSE +21 -0
  10. cl_keeper-0.0.0b1/PKG-INFO +48 -0
  11. cl_keeper-0.0.0b1/README.md +3 -0
  12. cl_keeper-0.0.0b1/action.yaml +68 -0
  13. cl_keeper-0.0.0b1/cl_keeper/__init__.py +1 -0
  14. cl_keeper-0.0.0b1/cl_keeper/_version.py +34 -0
  15. cl_keeper-0.0.0b1/cl_keeper/app.py +1244 -0
  16. cl_keeper-0.0.0b1/cl_keeper/check.py +344 -0
  17. cl_keeper-0.0.0b1/cl_keeper/config.py +1083 -0
  18. cl_keeper-0.0.0b1/cl_keeper/context.py +154 -0
  19. cl_keeper-0.0.0b1/cl_keeper/fix.py +268 -0
  20. cl_keeper-0.0.0b1/cl_keeper/model.py +209 -0
  21. cl_keeper-0.0.0b1/cl_keeper/parse.py +514 -0
  22. cl_keeper-0.0.0b1/cl_keeper/py.typed +0 -0
  23. cl_keeper-0.0.0b1/cl_keeper/render.py +53 -0
  24. cl_keeper-0.0.0b1/cl_keeper/sort.py +120 -0
  25. cl_keeper-0.0.0b1/cl_keeper/typing.py +20 -0
  26. cl_keeper-0.0.0b1/cl_keeper/vcs.py +87 -0
  27. cl_keeper-0.0.0b1/cl_keeper.egg-info/PKG-INFO +48 -0
  28. cl_keeper-0.0.0b1/cl_keeper.egg-info/SOURCES.txt +78 -0
  29. cl_keeper-0.0.0b1/cl_keeper.egg-info/dependency_links.txt +1 -0
  30. cl_keeper-0.0.0b1/cl_keeper.egg-info/entry_points.txt +2 -0
  31. cl_keeper-0.0.0b1/cl_keeper.egg-info/requires.txt +12 -0
  32. cl_keeper-0.0.0b1/cl_keeper.egg-info/top_level.txt +1 -0
  33. cl_keeper-0.0.0b1/conftest.py +21 -0
  34. cl_keeper-0.0.0b1/docs/Makefile +20 -0
  35. cl_keeper-0.0.0b1/docs/make.bat +35 -0
  36. cl_keeper-0.0.0b1/docs/source/_static/extra.css +26 -0
  37. cl_keeper-0.0.0b1/docs/source/advanced.rst +131 -0
  38. cl_keeper-0.0.0b1/docs/source/conf.py +79 -0
  39. cl_keeper-0.0.0b1/docs/source/config.rst +70 -0
  40. cl_keeper-0.0.0b1/docs/source/index.rst +69 -0
  41. cl_keeper-0.0.0b1/docs/source/installation.rst +57 -0
  42. cl_keeper-0.0.0b1/docs/source/usage.rst +265 -0
  43. cl_keeper-0.0.0b1/pyproject.toml +111 -0
  44. cl_keeper-0.0.0b1/scripts/update_branches +59 -0
  45. cl_keeper-0.0.0b1/setup.cfg +4 -0
  46. cl_keeper-0.0.0b1/test/test_parse/test_parse_empty_.yml +2 -0
  47. cl_keeper-0.0.0b1/test/test_parse/test_parse_first_level_heading_in_the_middle_.yml +46 -0
  48. cl_keeper-0.0.0b1/test/test_parse/test_parse_multiple_releases_with_sections_.yml +44 -0
  49. cl_keeper-0.0.0b1/test/test_parse/test_parse_only_heading_.yml +2 -0
  50. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_.yml +12 -0
  51. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_linked_.yml +12 -0
  52. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_unlinked_.yml +19 -0
  53. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_unlinked_with_date_.yml +19 -0
  54. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_unlinked_with_date_before_version_.yml +19 -0
  55. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_broken_date_.yml +19 -0
  56. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_date_.yml +12 -0
  57. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_date_and_postfix_.yml +12 -0
  58. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_date_and_postfix_braces_.yml +20 -0
  59. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_date_before_version_.yml +19 -0
  60. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_date_before_version_and_postfix_.yml +20 -0
  61. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_date_before_version_and_postfix_braces_.yml +20 -0
  62. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_decorations_error_.yml +19 -0
  63. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_decorations_ok_.yml +12 -0
  64. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_postfix_.yml +12 -0
  65. cl_keeper-0.0.0b1/test/test_parse/test_parse_release_with_prefix_.yml +19 -0
  66. cl_keeper-0.0.0b1/test/test_parse/test_parse_subsection_format_error_.yml +23 -0
  67. cl_keeper-0.0.0b1/test/test_parse/test_parse_subsection_format_ok_.yml +16 -0
  68. cl_keeper-0.0.0b1/test/test_parse/test_parse_subsection_not_attached_.yml +8 -0
  69. cl_keeper-0.0.0b1/test/test_parse/test_parse_unrecognized_section_.yml +15 -0
  70. cl_keeper-0.0.0b1/test/test_parse/test_parse_unreleased_broken_.yml +13 -0
  71. cl_keeper-0.0.0b1/test/test_parse/test_parse_unreleased_linked_.yml +6 -0
  72. cl_keeper-0.0.0b1/test/test_parse/test_parse_unreleased_simple_.yml +6 -0
  73. cl_keeper-0.0.0b1/test/test_parse/test_parse_unreleased_subsections_.yml +25 -0
  74. cl_keeper-0.0.0b1/test/test_parse/test_parse_unreleased_unlinked_.yml +13 -0
  75. cl_keeper-0.0.0b1/test/test_parse/test_parse_version_canonization_fail_.yml +19 -0
  76. cl_keeper-0.0.0b1/test/test_parse/test_parse_version_canonization_none_.yml +12 -0
  77. cl_keeper-0.0.0b1/test/test_parse/test_parse_version_canonization_ok_.yml +12 -0
  78. cl_keeper-0.0.0b1/test/test_parse.py +494 -0
  79. cl_keeper-0.0.0b1/test/test_vcs.py +52 -0
  80. cl_keeper-0.0.0b1/typings/giturlparse/__init__.pyi +23 -0
@@ -0,0 +1,24 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ groups:
8
+ dev:
9
+ patterns:
10
+ - "furo"
11
+ - "pyright"
12
+ - "pytest-cov"
13
+ - "pytest"
14
+ - "PyYaml"
15
+ - "sphinx_design"
16
+ - "sphinx-vhs"
17
+ - "sybil"
18
+ - "toml"
19
+ - "typing_extensions"
20
+ style:
21
+ patterns:
22
+ - "black"
23
+ - "isort"
24
+ - "pre-commit"
@@ -0,0 +1,188 @@
1
+ name: Test package
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ tags:
7
+ - 'v*'
8
+ pull_request:
9
+ branches:
10
+ - main
11
+
12
+ jobs:
13
+ # Runs main tests for the package.
14
+ #
15
+ # Runs on all events except when closing a pull request.
16
+ test:
17
+ name: Test package
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ os:
22
+ - ubuntu-latest
23
+ - macos-latest
24
+ - windows-latest
25
+ python-version:
26
+ - "3.12"
27
+ - "3.13"
28
+ type:
29
+ - test
30
+ include:
31
+ - os: ubuntu-latest
32
+ python-version: "3.13"
33
+ type: code style
34
+ runs-on: ${{ matrix.os }}
35
+ steps:
36
+ - name: Checkout source
37
+ uses: actions/checkout@v4
38
+ with:
39
+ fetch-depth: 0
40
+ - name: Set up python ${{ matrix.python-version }}
41
+ uses: actions/setup-python@v4
42
+ with:
43
+ python-version: ${{ matrix.python-version }}
44
+ - name: Update pip
45
+ run: python -m pip install --upgrade pip
46
+ # Tests
47
+ - name: Install test dependencies
48
+ if: ${{ matrix.type == 'test' }}
49
+ run: python -m pip install . --group test
50
+ - name: Check types
51
+ if: ${{ matrix.type == 'test' && matrix.python-version != '3.14' }}
52
+ run: pyright
53
+ - name: Test package
54
+ if: ${{ matrix.type == 'test' }}
55
+ run: pytest -vv --showlocals --tb=short --color=yes --junit-xml=test-results.xml
56
+ # Lint
57
+ - name: Install lint dependencies
58
+ if: ${{ matrix.type == 'code style' }}
59
+ run: python -m pip install . --group lint
60
+ - name: Check code style
61
+ if: ${{ matrix.type == 'code style' }}
62
+ run: pre-commit run -a
63
+
64
+ # Builds python packages.
65
+ #
66
+ # Only runs on tag pushes.
67
+ build:
68
+ name: Build package
69
+ if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
70
+ runs-on: ubuntu-latest
71
+ outputs:
72
+ is-pre-release: ${{ steps.changelog.outputs.is-pre-release }}
73
+ is-unreleased: ${{ steps.changelog.outputs.is-unreleased }}
74
+ text: ${{ steps.changelog.outputs.text }}
75
+ link: ${{ steps.metadata.outputs.link }}
76
+ steps:
77
+ - name: Checkout source
78
+ uses: actions/checkout@v4
79
+ with:
80
+ fetch-depth: 0
81
+ - name: Generate release metadata
82
+ id: metadata
83
+ run: |
84
+ ref="${{ github.ref }}";
85
+ version=${ref#refs/tags/v};
86
+ link="https://pypi.org/p/cl-keeper/${version}/";
87
+ echo "version=${version}" >> $GITHUB_OUTPUT
88
+ echo "link=${link}" >> $GITHUB_OUTPUT
89
+ - name: Parse Changelog
90
+ id: changelog
91
+ uses: ./
92
+ with:
93
+ version: ${{ steps.metadata.outputs.version }}
94
+ strict: true
95
+ - name: Set up python 3.13
96
+ uses: actions/setup-python@v4
97
+ with:
98
+ python-version: 3.13
99
+ - name: Install build
100
+ run: |
101
+ pip install build
102
+ - name: Build project
103
+ run: |
104
+ python3 -m build .
105
+ - name: Upload the build artifact
106
+ uses: actions/upload-artifact@v4
107
+ with:
108
+ name: python-package-distributions
109
+ path: dist/
110
+
111
+ # Builds and publishes python packages.
112
+ #
113
+ # Only runs on tag pushes.
114
+ publish_to_pypi:
115
+ name: Publish package to PyPi
116
+ needs:
117
+ - test
118
+ - build
119
+ if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
120
+ runs-on: ubuntu-latest
121
+ environment:
122
+ name: pypi
123
+ url: https://pypi.org/p/cl-keeper
124
+ permissions:
125
+ contents: write
126
+ id-token: write
127
+ steps:
128
+ - name: Download build artifact
129
+ uses: actions/download-artifact@v4
130
+ with:
131
+ name: python-package-distributions
132
+ path: dist/
133
+ - name: Publish to pypi
134
+ uses: pypa/gh-action-pypi-publish@release/v1
135
+ with:
136
+ attestations: false
137
+ - name: Create GitHub release
138
+ uses: softprops/action-gh-release@v2
139
+ with:
140
+ prerelease: ${{ fromJSON(needs.build.outputs.is-pre-release) }}
141
+ draft: ${{ fromJSON(needs.build.outputs.is-unreleased) }}
142
+ body: |
143
+ ## Changelog
144
+
145
+ ${{ needs.build.outputs.text }}
146
+
147
+ [See release on PyPi](${{ needs.build.outputs.link }})
148
+
149
+ # Updates pointers to v1 and v1.x branches.
150
+ #
151
+ # Only runs on tag pushes.
152
+ update_release_branches:
153
+ name: Update partial version branches
154
+ needs:
155
+ - publish_to_pypi
156
+ if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
157
+ runs-on: ubuntu-latest
158
+ environment:
159
+ name: release-anchors
160
+ permissions:
161
+ contents: write
162
+ steps:
163
+ - name: Export deploy key
164
+ run: |
165
+ mkdir ~/.ssh
166
+ printenv DEPLOY_KEY > ~/.ssh/deploy_key
167
+ chmod 400 ~/.ssh/deploy_key
168
+ ssh-keygen -l -f ~/.ssh/deploy_key
169
+ env:
170
+ DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
171
+ - name: Checkout source
172
+ uses: actions/checkout@v4
173
+ with:
174
+ fetch-depth: 0
175
+ - name: Set up python 3.13
176
+ uses: actions/setup-python@v4
177
+ with:
178
+ python-version: 3.13
179
+ - name: Update pip
180
+ run: python -m pip install --upgrade pip
181
+ - name: Install CI dependencies
182
+ run: python -m pip install . --group ci
183
+ - name: Export deploy key
184
+ run: ssh-add - <<< "${DEPLOY_KEY}"
185
+ - name: Update branches
186
+ run: python scripts/update_branches --push ${{ github.event.ref }}
187
+ env:
188
+ GIT_SSH_COMMAND: "ssh -vvv -i ~/.ssh/deploy_key -o IdentitiesOnly=yes"
@@ -0,0 +1,32 @@
1
+ name: Test action
2
+ on:
3
+ push:
4
+ branches:
5
+ - main
6
+ tags:
7
+ - 'v*'
8
+ pull_request:
9
+ branches:
10
+ - main
11
+
12
+ jobs:
13
+ # Try running the action in this repo.
14
+ test:
15
+ name: Test action
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout source
19
+ uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+ - name: Run action
23
+ id: action
24
+ uses: ./
25
+ - name: Print results
26
+ run: |
27
+ echo 'text=${{ steps.action.outputs.text }}'
28
+ echo 'is-latest=${{ steps.action.outputs.is-latest }}'
29
+ echo 'is-pre-release=${{ steps.action.outputs.is-pre-release }}'
30
+ echo 'is-post-release=${{ steps.action.outputs.is-post-release }}'
31
+ echo 'is-unreleased=${{ steps.action.outputs.is-unreleased }}'
32
+ echo 'data=${{ steps.action.outputs.data }}'
@@ -0,0 +1,136 @@
1
+ @staticmethod# Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ .python-version
86
+
87
+ # pipenv
88
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
+ # install all needed dependencies.
92
+ #Pipfile.lock
93
+
94
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95
+ __pypackages__/
96
+
97
+ # Celery stuff
98
+ celerybeat-schedule
99
+ celerybeat.pid
100
+
101
+ # SageMath parsed files
102
+ *.sage.py
103
+
104
+ # Environments
105
+ .env
106
+ .venv
107
+ env/
108
+ venv/
109
+ ENV/
110
+ env.bak/
111
+ venv.bak/
112
+
113
+ # Spyder project settings
114
+ .spyderproject
115
+ .spyproject
116
+
117
+ # Rope project settings
118
+ .ropeproject
119
+
120
+ # mkdocs documentation
121
+ /site
122
+
123
+ # mypy
124
+ .mypy_cache/
125
+ .dmypy.json
126
+ dmypy.json
127
+
128
+ # Pyre type checker
129
+ .pyre/
130
+
131
+ # Project-specific
132
+ _version.py
133
+
134
+ # IDEs
135
+ .idea/
136
+ .vscode/
@@ -0,0 +1,48 @@
1
+ repos:
2
+ - repo: local
3
+ hooks:
4
+ - id: black
5
+ name: black
6
+ language: system
7
+ entry: black
8
+ types_or: [python, pyi]
9
+ require_serial: true
10
+ - id: isort
11
+ name: isort
12
+ language: system
13
+ entry: isort --filter-files
14
+ types_or: [python, pyi]
15
+ require_serial: true
16
+ - id: chk
17
+ name: changelog keeper
18
+ language: system
19
+ entry: chk pre-commit-check
20
+ require_serial: true
21
+ types_or: [toml, yaml, markdown]
22
+ - id: chk-tags
23
+ name: changelog keeper (check tags)
24
+ language: system
25
+ entry: chk pre-commit-check-tag
26
+ always_run: true
27
+ pass_filenames: false
28
+ require_serial: true
29
+ stages: [pre-push]
30
+ - repo: https://github.com/pre-commit/pre-commit-hooks
31
+ rev: v6.0.0
32
+ hooks:
33
+ - id: trailing-whitespace
34
+ exclude: "^test/test_regression/.*$"
35
+ - id: end-of-file-fixer
36
+ exclude: "^test/test_regression/.*$"
37
+ - id: fix-byte-order-marker
38
+ - id: mixed-line-ending
39
+ args: [--fix=lf]
40
+ - id: check-added-large-files
41
+ - id: check-yaml
42
+ - id: check-toml
43
+ - id: check-json
44
+ - id: check-merge-conflict
45
+ - id: check-shebang-scripts-are-executable
46
+ - id: check-symlinks
47
+ - id: destroyed-symlinks
48
+ - id: check-vcs-permalinks
@@ -0,0 +1,18 @@
1
+ - id: chk
2
+ name: changelog keeper
3
+ description: "Keep CHANGELOG.md up-to-date and well formatted"
4
+ entry: chk pre-commit-check
5
+ language: python
6
+ language_version: "3.13"
7
+ require_serial: true
8
+ types_or: [toml, yaml, markdown]
9
+ - id: chk-tags
10
+ name: changelog keeper (check tags)
11
+ description: "Check git tags before pushing them"
12
+ entry: chk pre-commit-check-tag
13
+ language: python
14
+ language_version: "3.13"
15
+ always_run: true
16
+ pass_filenames: false
17
+ require_serial: true
18
+ stages: [pre-push]
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ build:
3
+ os: ubuntu-24.04
4
+ tools:
5
+ python: "3.13"
6
+ jobs:
7
+ post_checkout:
8
+ - git fetch --unshallow || true
9
+ install:
10
+ - pip install -U pip
11
+ - pip install . --group doc
12
+ sphinx:
13
+ configuration: docs/source/conf.py
@@ -0,0 +1,8 @@
1
+ # Change log
2
+
3
+ ## [Unreleased]
4
+
5
+ ## [0.0.0-beta0] - 2025-10-18
6
+
7
+ [0.0.0-beta0]: https://github.com/taminomara/cl-keeper/releases/tag/v0.0.0-beta0
8
+ [unreleased]: https://github.com/taminomara/cl-keeper/compare/v0.0.0-beta0...HEAD
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tamika Nomara
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: cl-keeper
3
+ Version: 0.0.0b1
4
+ Summary: A CLI tool for keeping your changelogs tidy
5
+ Author-email: Tamika Nomara <taminomara@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Documentation, https://cl-keeper.readthedocs.io/en/stable/
8
+ Project-URL: Issues, https://github.com/taminomara/cl-keeper/issues/
9
+ Project-URL: Source, https://github.com/taminomara/cl-keeper/
10
+ Project-URL: Changelog, https://github.com/taminomara/cl-keeper/blob/main/CHANGELOG.md
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Environment :: Console
18
+ Classifier: Intended Audience :: Developers
19
+ Classifier: Intended Audience :: System Administrators
20
+ Classifier: Natural Language :: English
21
+ Classifier: Operating System :: MacOS
22
+ Classifier: Operating System :: Microsoft :: Windows
23
+ Classifier: Operating System :: POSIX :: Linux
24
+ Classifier: Topic :: Software Development
25
+ Classifier: Topic :: Software Development :: Quality Assurance
26
+ Classifier: Topic :: Software Development :: Version Control :: Git
27
+ Classifier: Topic :: Utilities
28
+ Classifier: Typing :: Typed
29
+ Requires-Python: >=3.12
30
+ Description-Content-Type: text/markdown
31
+ License-File: LICENSE
32
+ Requires-Dist: yuio<3.0,>=2.0.0.b5
33
+ Requires-Dist: giturlparse==0.12.0
34
+ Requires-Dist: markdown-it-py==3.0.0
35
+ Requires-Dist: mdformat==0.7.22
36
+ Requires-Dist: mdformat-gfm==0.4.1
37
+ Requires-Dist: mdformat_footnote==0.1.1
38
+ Requires-Dist: mdformat_frontmatter==2.0.8
39
+ Requires-Dist: mdformat_gfm_alerts==2.0.0
40
+ Requires-Dist: mdformat_tables==1.0.0
41
+ Requires-Dist: semver==3.0.4
42
+ Requires-Dist: packaging==25.0
43
+ Requires-Dist: PyYAML==6.0.3
44
+ Dynamic: license-file
45
+
46
+ # cl-keeper
47
+
48
+ Work in progress...
@@ -0,0 +1,3 @@
1
+ # cl-keeper
2
+
3
+ Work in progress...
@@ -0,0 +1,68 @@
1
+ name: Changelog Keeper action
2
+ description: Parse changelog and extract notes for a release.
3
+ author: Tamika Nomara
4
+
5
+ # Add your action's branding here. This will appear on the GitHub Marketplace.
6
+ branding:
7
+ icon: heart
8
+ color: red
9
+
10
+ inputs:
11
+ config:
12
+ description: Path to the config file, relative to repository root.
13
+ required: false
14
+ changelog:
15
+ description: Path to the changelog file, relative to repository root.
16
+ required: false
17
+ version:
18
+ description: Version to search for, default is "latest".
19
+ required: true
20
+ default: latest
21
+ strict:
22
+ description: Run changelog keeper in strict mode.
23
+ required: true
24
+ default: "false"
25
+ ignore-errors:
26
+ description: Ignore issues found in changelog.
27
+ required: true
28
+ default: "false"
29
+
30
+ outputs:
31
+ text:
32
+ description: Extracted markdown text.
33
+ value: ${{ fromJSON(steps.run-chk.outputs.data).text }}
34
+ is-latest:
35
+ description: Indicates that this is the latest release so far.
36
+ value: ${{ fromJSON(steps.run-chk.outputs.data).isLatestInSemanticOrder }}
37
+ is-pre-release:
38
+ description: Indicates that this is a pre-release.
39
+ value: ${{ fromJSON(steps.run-chk.outputs.data).isPreRelease }}
40
+ is-post-release:
41
+ description: Indicates that this is a post-release.
42
+ value: ${{ fromJSON(steps.run-chk.outputs.data).isPostRelease }}
43
+ is-unreleased:
44
+ description: Indicates that action returned an unreleased section of changelog.
45
+ value: ${{ fromJSON(steps.run-chk.outputs.data).isUnreleased }}
46
+ data:
47
+ description: Full JSON output of the "chk find" command.
48
+ value: ${{ steps.run-chk.outputs.data }}
49
+
50
+ runs:
51
+ using: composite
52
+ steps:
53
+ - name: Install Changelog Keeper
54
+ uses: threeal/pipx-install-action@v1.0.0
55
+ with:
56
+ packages: ${{ github.action_path }}
57
+ - name: Run Changelog Keeper
58
+ id: run-chk
59
+ shell: bash
60
+ run: |
61
+ echo 'data<<EOF' >> $GITHUB_OUTPUT
62
+ chk find ${{ inputs.version }} --json $FLAG_CONFIG $FLAG_CHANGELOG $FLAG_STRICT $FLAG_IGNORE_ERRORS >> $GITHUB_OUTPUT
63
+ echo 'EOF' >> $GITHUB_OUTPUT
64
+ env:
65
+ FLAG_CONFIG: ${{ inputs.config != '' && format('-c {0}', inputs.config) || '' }}
66
+ FLAG_CHANGELOG: ${{ inputs.changelog != '' && format('-i {0}', inputs.changelog) || '' }}
67
+ FLAG_STRICT: ${{ (inputs.strict == 'true' || inputs.strict == true) && '--strict' || '' }}
68
+ FLAG_IGNORE_ERRORS: ${{ (inputs.ignore-errors == 'true' || inputs.ignore-errors == true) && '--ignore-errors' || '' }}
@@ -0,0 +1 @@
1
+ from cl_keeper._version import *
@@ -0,0 +1,34 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
3
+
4
+ __all__ = [
5
+ "__version__",
6
+ "__version_tuple__",
7
+ "version",
8
+ "version_tuple",
9
+ "__commit_id__",
10
+ "commit_id",
11
+ ]
12
+
13
+ TYPE_CHECKING = False
14
+ if TYPE_CHECKING:
15
+ from typing import Tuple
16
+ from typing import Union
17
+
18
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
19
+ COMMIT_ID = Union[str, None]
20
+ else:
21
+ VERSION_TUPLE = object
22
+ COMMIT_ID = object
23
+
24
+ version: str
25
+ __version__: str
26
+ __version_tuple__: VERSION_TUPLE
27
+ version_tuple: VERSION_TUPLE
28
+ commit_id: COMMIT_ID
29
+ __commit_id__: COMMIT_ID
30
+
31
+ __version__ = version = '0.0.0b1'
32
+ __version_tuple__ = version_tuple = (0, 0, 0, 'b1')
33
+
34
+ __commit_id__ = commit_id = 'gf52c7b8b6'