Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ruleorder directive #387

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ Types of changes

# Latch SDK Changelog

## 2.38.8 - 2023-01-26

### Fixed

* Snakemake
+ fix bug in `ruleorder` directive caused by `block_content` monkey patch returning None

## 2.38.7 - 2023-01-26

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions docs/source/snakemake/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ $ source env/bin/activate
$ pip install "latch[snakemake]"
```

- Verify the Latch SDK version >= 2.38.6
- Verify the Latch SDK version >= 2.38.8

```console
$ latch --version
latch, version 2.38.6
latch, version 2.38.8
```

### Step 1: Generate Metadata
Expand Down
7 changes: 6 additions & 1 deletion latch_cli/snakemake/single_task_snakemake.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,17 @@ def block_content_with_print_compilation(self, token):
yield token.string, token


def empty_generator(self, token):
return
yield


Input.block_content = skipping_block_content
Output.block_content = skipping_block_content
Params.block_content = skipping_block_content
Benchmark.block_content = skipping_block_content
Log.block_content = skipping_block_content
Ruleorder.block_content = lambda self, token: None
Ruleorder.block_content = empty_generator
Include.block_content = block_content_with_print_compilation


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="latch",
version="v2.38.7",
version="v2.38.8",
author_email="[email protected]",
description="The Latch SDK",
packages=find_packages(),
Expand Down
Loading