Skip to content

Commit

Permalink
Merge pull request #387 from latchbio/rahuldesai1/snakemake/fix-ruleo…
Browse files Browse the repository at this point in the history
…rder-directive

fix ruleorder directive
  • Loading branch information
rahuldesai1 authored Jan 29, 2024
2 parents 7786ed7 + 1d9ebe2 commit e726fe8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
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

0 comments on commit e726fe8

Please sign in to comment.