click-compose 2025.10.27__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 (33) hide show
  1. click_compose-2025.10.27/.gitattributes +5 -0
  2. click_compose-2025.10.27/.github/dependabot.yml +14 -0
  3. click_compose-2025.10.27/.github/workflows/ci.yml +54 -0
  4. click_compose-2025.10.27/.github/workflows/dependabot-merge.yml +24 -0
  5. click_compose-2025.10.27/.github/workflows/publish-site.yml +35 -0
  6. click_compose-2025.10.27/.github/workflows/release.yml +132 -0
  7. click_compose-2025.10.27/.gitignore +209 -0
  8. click_compose-2025.10.27/.pre-commit-config.yaml +239 -0
  9. click_compose-2025.10.27/.prettierrc +10 -0
  10. click_compose-2025.10.27/CHANGELOG.rst +18 -0
  11. click_compose-2025.10.27/LICENSE +21 -0
  12. click_compose-2025.10.27/PKG-INFO +142 -0
  13. click_compose-2025.10.27/README.rst +84 -0
  14. click_compose-2025.10.27/docs/source/__init__.py +3 -0
  15. click_compose-2025.10.27/docs/source/changelog.rst +4 -0
  16. click_compose-2025.10.27/docs/source/conf.py +124 -0
  17. click_compose-2025.10.27/docs/source/index.rst +26 -0
  18. click_compose-2025.10.27/docs/source/install.rst +14 -0
  19. click_compose-2025.10.27/docs/source/usage.rst +47 -0
  20. click_compose-2025.10.27/pyproject.toml +337 -0
  21. click_compose-2025.10.27/setup.cfg +4 -0
  22. click_compose-2025.10.27/spelling_private_dict.txt +18 -0
  23. click_compose-2025.10.27/src/click_compose/__init__.py +82 -0
  24. click_compose-2025.10.27/src/click_compose/py.typed +0 -0
  25. click_compose-2025.10.27/src/click_compose.egg-info/PKG-INFO +142 -0
  26. click_compose-2025.10.27/src/click_compose.egg-info/SOURCES.txt +31 -0
  27. click_compose-2025.10.27/src/click_compose.egg-info/dependency_links.txt +1 -0
  28. click_compose-2025.10.27/src/click_compose.egg-info/not-zip-safe +1 -0
  29. click_compose-2025.10.27/src/click_compose.egg-info/requires.txt +39 -0
  30. click_compose-2025.10.27/src/click_compose.egg-info/top_level.txt +1 -0
  31. click_compose-2025.10.27/tests/__init__.py +3 -0
  32. click_compose-2025.10.27/tests/test_multi_callback.py +216 -0
  33. click_compose-2025.10.27/tests/test_sequence_validator.py +210 -0
@@ -0,0 +1,5 @@
1
+ *.py text eol=lf
2
+ *.rst text eol=lf
3
+ *.txt text eol=lf
4
+ *.yml text eol=lf
5
+ *.yaml text eol=lf
@@ -0,0 +1,14 @@
1
+ ---
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: pip
6
+ directory: /
7
+ schedule:
8
+ interval: daily
9
+ open-pull-requests-limit: 10
10
+ - package-ecosystem: github-actions
11
+ directory: /
12
+ schedule:
13
+ interval: daily
14
+ open-pull-requests-limit: 10
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: Test
3
+
4
+ on:
5
+ push:
6
+ branches: [main]
7
+ pull_request:
8
+ branches: [main]
9
+ schedule:
10
+ # * is a special character in YAML so you have to quote this string
11
+ # Run at 1:00 every day
12
+ - cron: 0 1 * * *
13
+
14
+ jobs:
15
+ build:
16
+ strategy:
17
+ matrix:
18
+ python-version: ['3.11', '3.12', '3.13']
19
+ platform: [ubuntu-latest]
20
+ lint-stage: [pre-commit, pre-push, manual]
21
+
22
+ runs-on: ${{ matrix.platform }}
23
+
24
+ steps:
25
+ - uses: actions/checkout@v5
26
+ with:
27
+ fetch-depth: 0
28
+ fetch-tags: true
29
+
30
+ - name: Install uv
31
+ uses: astral-sh/setup-uv@v7
32
+ with:
33
+ enable-cache: true
34
+ cache-dependency-glob: '**/pyproject.toml'
35
+
36
+ - name: Run lint
37
+ run: |
38
+ uv run --extra=dev --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage ${{ matrix.lint-stage }} --verbose
39
+
40
+ - name: Run tests
41
+ run: |
42
+ uv run --extra=dev --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ tests/
43
+
44
+ completion-ci:
45
+ needs: build
46
+ runs-on: ubuntu-latest
47
+ if: always() # Run even if one matrix job fails
48
+ steps:
49
+ - name: Check matrix job status
50
+ run: |-
51
+ if ! ${{ needs.build.result == 'success' }}; then
52
+ echo "One or more matrix jobs failed"
53
+ exit 1
54
+ fi
@@ -0,0 +1,24 @@
1
+ ---
2
+
3
+ name: Dependabot auto-merge
4
+ on: pull_request
5
+
6
+ permissions:
7
+ contents: write
8
+ pull-requests: write
9
+
10
+ jobs:
11
+ dependabot:
12
+ runs-on: ubuntu-latest
13
+ if: github.actor == 'dependabot[bot]'
14
+ steps:
15
+ - name: Dependabot metadata
16
+ id: metadata
17
+ uses: dependabot/fetch-metadata@v2
18
+ with:
19
+ github-token: ${{ secrets.GITHUB_TOKEN }}
20
+ - name: Enable auto-merge for Dependabot PRs
21
+ run: gh pr merge --auto --merge "$PR_URL"
22
+ env:
23
+ PR_URL: ${{github.event.pull_request.html_url}}
24
+ GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: Deploy documentation
3
+
4
+ on:
5
+ push:
6
+ branches: [main]
7
+ pull_request:
8
+ branches: [main]
9
+
10
+ jobs:
11
+ pages:
12
+ runs-on: ubuntu-latest
13
+ environment:
14
+ name: ${{ github.ref_name == 'main' && 'github-pages' || 'development' }}
15
+ url: ${{ steps.deployment.outputs.page_url }}
16
+ permissions:
17
+ pages: write
18
+ id-token: write
19
+ steps:
20
+ - uses: actions/checkout@v5
21
+ # We need our tags in order to calculate the version
22
+ # in the Sphinx setup.
23
+ with:
24
+ fetch-depth: 0
25
+ fetch-tags: true
26
+
27
+ - id: deployment
28
+ uses: sphinx-notes/pages@v3
29
+ with:
30
+ documentation_path: docs/source
31
+ pyproject_extras: dev
32
+ python_version: '3.13'
33
+ sphinx_build_options: -W
34
+ publish: ${{ github.ref_name == 'main' }}
35
+ checkout: false
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: Release
3
+
4
+ on: workflow_dispatch
5
+
6
+ jobs:
7
+ build:
8
+ name: Publish a release
9
+ runs-on: ubuntu-latest
10
+
11
+ # Specifying an environment is strongly recommended by PyPI.
12
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
13
+ environment: release
14
+
15
+ permissions:
16
+ # This is needed for PyPI publishing.
17
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
18
+ id-token: write
19
+ # This is needed for https://github.com/stefanzweifel/git-auto-commit-action.
20
+ contents: write
21
+
22
+ steps:
23
+ - uses: actions/checkout@v5
24
+ with:
25
+ # See
26
+ # https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#push-to-protected-branches
27
+ token: ${{ secrets.RELEASE_PAT }}
28
+ # Fetch all history including tags.
29
+ # Needed to find the latest tag.
30
+ #
31
+ # Also, avoids
32
+ # https://github.com/stefanzweifel/git-auto-commit-action/issues/99.
33
+ fetch-depth: 0
34
+
35
+ - name: Install uv
36
+ uses: astral-sh/setup-uv@v7
37
+ with:
38
+ # Avoid https://github.com/astral-sh/uv/issues/12260.
39
+ version: 0.6.6
40
+ enable-cache: true
41
+ cache-dependency-glob: '**/pyproject.toml'
42
+
43
+ - name: Get current version
44
+ id: get_current_version
45
+ run: |
46
+ version="$(git describe --tags --abbrev=0)"
47
+ echo "version=${version}" >> "$GITHUB_OUTPUT"
48
+
49
+ - name: Calver calculate version
50
+ uses: StephaneBour/actions-calver@master
51
+ id: calver
52
+ with:
53
+ date_format: '%Y.%m.%d'
54
+ release: false
55
+ env:
56
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57
+
58
+ - name: Get the changelog underline
59
+ id: changelog_underline
60
+ run: |
61
+ underline="$(echo "${{ steps.calver.outputs.release }}" | tr -c '\n' '-')"
62
+ echo "underline=${underline}" >> "$GITHUB_OUTPUT"
63
+
64
+ - name: Update changelog
65
+ uses: jacobtomlinson/gha-find-replace@v3
66
+ with:
67
+ find: "Next\n----"
68
+ replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline\
69
+ \ }}"
70
+ include: CHANGELOG.rst
71
+ regex: false
72
+
73
+ - uses: stefanzweifel/git-auto-commit-action@v7
74
+ id: commit
75
+ with:
76
+ commit_message: Bump CHANGELOG
77
+ file_pattern: CHANGELOG.rst
78
+ # Error if there are no changes.
79
+ skip_dirty_check: true
80
+
81
+ - name: Bump version and push tag
82
+ id: tag_version
83
+ uses: mathieudutour/github-tag-action@v6.2
84
+ with:
85
+ github_token: ${{ secrets.GITHUB_TOKEN }}
86
+ custom_tag: ${{ steps.calver.outputs.release }}
87
+ tag_prefix: ''
88
+ commit_sha: ${{ steps.commit.outputs.commit_hash }}
89
+
90
+ - name: Build a binary wheel and a source tarball
91
+ id: build-wheel
92
+ run: |
93
+ sudo rm -rf dist/ build/
94
+ git fetch --tags
95
+ git checkout ${{ steps.tag_version.outputs.new_tag }}
96
+ uv build --sdist --wheel --out-dir dist/
97
+ WHEEL="$(ls dist/*.whl)"
98
+ uv run --extra=release check-wheel-contents "${WHEEL}"
99
+ echo "wheel_filename=${WHEEL}" >> "$GITHUB_OUTPUT"
100
+
101
+ - name: Publish distribution 📦 to PyPI
102
+ # We use PyPI trusted publishing rather than a PyPI API token.
103
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
104
+ uses: pypa/gh-action-pypi-publish@release/v1
105
+ with:
106
+ verbose: true
107
+
108
+ - name: Update README versions
109
+ uses: jacobtomlinson/gha-find-replace@v3
110
+ with:
111
+ find: ${{ steps.get_current_version.outputs.version }}
112
+ replace: ${{ steps.calver.outputs.release }}
113
+ include: README.rst
114
+ regex: false
115
+
116
+ - uses: stefanzweifel/git-auto-commit-action@v7
117
+ id: commit-readme
118
+ with:
119
+ commit_message: Replace version in README
120
+ branch: main
121
+ file_pattern: README.rst
122
+ # Error if there are no changes.
123
+ skip_dirty_check: true
124
+
125
+ - name: Create a GitHub release
126
+ uses: ncipollo/release-action@v1
127
+ with:
128
+ artifactErrorsFailBuild: true
129
+ tag: ${{ steps.tag_version.outputs.new_tag }}
130
+ makeLatest: true
131
+ name: Release ${{ steps.tag_version.outputs.new_tag }}
132
+ body: ${{ steps.tag_version.outputs.changelog }}
@@ -0,0 +1,209 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
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
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
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
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
208
+
209
+ uv.lock