snakemake-executor-plugin-finished 0.1.0__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.
@@ -0,0 +1,70 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ env:
10
+ PYTHON_VERSION: 3.11
11
+
12
+ jobs:
13
+ linting:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Check out the code
17
+ uses: actions/checkout@v3
18
+
19
+ - uses: actions/setup-python@v4
20
+ with:
21
+ python-version: ${{ env.PYTHON_VERSION }}
22
+
23
+ - name: Install poetry
24
+ run: pip install poetry
25
+
26
+ - name: Determine dependencies
27
+ run: poetry lock
28
+
29
+ - uses: actions/setup-python@v4
30
+ with:
31
+ python-version: ${{ env.PYTHON_VERSION }}
32
+ cache: poetry
33
+
34
+ - name: Install Dependencies using Poetry
35
+ run: poetry install
36
+
37
+ - name: Check formatting
38
+ run: poetry run ruff format --check .
39
+
40
+ - name: Lint
41
+ run: poetry run ruff check .
42
+
43
+ testing:
44
+ runs-on: ubuntu-latest
45
+ steps:
46
+ - uses: actions/checkout@v3
47
+
48
+ - uses: actions/setup-python@v4
49
+ with:
50
+ python-version: ${{ env.PYTHON_VERSION }}
51
+
52
+ - name: Install poetry
53
+ run: pip install poetry
54
+
55
+ - name: Determine dependencies
56
+ run: poetry lock
57
+
58
+ - uses: actions/setup-python@v4
59
+ with:
60
+ python-version: ${{ env.PYTHON_VERSION }}
61
+ cache: poetry
62
+
63
+ - name: Install dependencies
64
+ run: poetry install
65
+
66
+ - name: Run pytest
67
+ run: poetry run coverage run -m pytest
68
+
69
+ - name: Run Coverage
70
+ run: poetry run coverage report -m
@@ -0,0 +1,16 @@
1
+ name: PR
2
+ on:
3
+ pull_request_target:
4
+ types:
5
+ - opened
6
+ - reopened
7
+ - edited
8
+ - synchronize
9
+
10
+ jobs:
11
+ title-format:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: amannn/action-semantic-pull-request@v3.4.0
15
+ env:
16
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,43 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - main
5
+
6
+ name: release-please
7
+
8
+ jobs:
9
+ release-please:
10
+ runs-on: ubuntu-latest
11
+ outputs:
12
+ release_created: ${{ steps.release.outputs.release_created }}
13
+ steps:
14
+ - uses: GoogleCloudPlatform/release-please-action@v3
15
+ id: release
16
+ with:
17
+ release-type: python
18
+ package-name: snakemake-executor-plugin-finished
19
+ token: ${{ secrets.RELEASE_PLEASE_PR_CI_TOKEN }}
20
+
21
+ publish:
22
+ runs-on: ubuntu-latest
23
+ needs: release-please
24
+ if: ${{ needs.release-please.outputs.release_created }}
25
+ steps:
26
+ - name: Check out the code
27
+ uses: actions/checkout@v4
28
+
29
+ - name: Setup pixi
30
+ uses: prefix-dev/setup-pixi@v0
31
+ with:
32
+ cache: false
33
+ locked: false
34
+
35
+ - name: Build source and wheel distribution + check build
36
+ run: |
37
+ pixi run -e dev check-build
38
+
39
+ - name: Publish to PyPI
40
+ uses: pypa/gh-action-pypi-publish@release/v1
41
+ with:
42
+ user: __token__
43
+ password: ${{ secrets.PYPI_TOKEN }}
@@ -0,0 +1,21 @@
1
+ # pixi environments
2
+ .pixi/*
3
+ !.pixi/config.toml
4
+
5
+ # Python
6
+ __pycache__/
7
+ *.py[cod]
8
+ *.egg-info/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .mypy_cache/
12
+
13
+ # Build artifacts
14
+ build/
15
+ dist/
16
+ coverage-report/
17
+ htmlcov/
18
+ .coverage
19
+
20
+ # Snakemake
21
+ .snakemake/
@@ -0,0 +1,8 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-06-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * initial release ([4d20015](https://github.com/alephreish/snakemake-executor-plugin-finished/commit/4d2001588c8be19615af23424c554985b44ea074))
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Andrey Rozenberg
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,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: snakemake-executor-plugin-finished
3
+ Version: 0.1.0
4
+ Summary: Snakemake executor plugin that marks targets as finished
5
+ Project-URL: Repository, https://github.com/alephreish/snakemake-executor-plugin-finished
6
+ Project-URL: Documentation, https://snakemake.github.io/snakemake-plugin-catalog/plugins/executor/finished.html
7
+ Author-email: Andrey Rozenberg <alephreish@gmail.com>
8
+ License-File: LICENSE
9
+ Requires-Python: <4.0,>=3.11
10
+ Requires-Dist: snakemake-interface-common<2,>=1.23.0
11
+ Requires-Dist: snakemake-interface-executor-plugins<10,>=9.0.0
@@ -0,0 +1,23 @@
1
+ # snakemake-executor-plugin-finished
2
+
3
+ Snakemake executor plugin that marks specified targets as finished without running jobs. This provides a way to tell Snakemake that the corresponding targets should not be re-created, e.g. in cases of cosmetic changes to the code, non-essential modifications of the environment definition or other modifications that trigger a re-run but are known in advance to have no effect on the output.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install snakemake-executor-plugin-finished
9
+ ```
10
+
11
+ or
12
+
13
+ ```bash
14
+ pip install git+https://github.com/alephreish/snakemake-executor-plugin-finished
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ snakemake --executor finished <target1> <target2>
21
+ ```
22
+
23
+ The executor will mark the matching jobs as finished, touch the outputs, and fail if any requested target files do not exist. If nothing triggers a re-run, no modifications are made to the metadata or timestamps of the correspondign outputs.