Skip to content

Commit

Permalink
Merge branch 'main' of github.com:modal-labs/modal-client into kramst…
Browse files Browse the repository at this point in the history
…rom/cli-298-add-dockerignore-support-to-image_docker-methods
  • Loading branch information
kramstrom committed Jan 9, 2025
2 parents 72e3a0c + d8245cc commit 7173f24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ We appreciate your patience while we speedily work towards a stable release of t

<!-- NEW CONTENT GENERATED BELOW. PLEASE PRESERVE THIS COMMENT. -->

### 0.71.13 (2025-01-09)

* `FilePatternMatcher` has a new constructor `from_file` which allows you to read file matching patterns from a file instead of having to pass them in directly, this can be used for `Image` methods accepting an `ignore` parameter in order to read ignore patterns from files.



### 0.71.11 (2025-01-08)

- Modal Volumes can now be renamed via the CLI (`modal volume rename`) or SDK (`modal.Volume.rename`).
Expand Down
2 changes: 1 addition & 1 deletion modal_version/_version_generated.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright Modal Labs 2025

# Note: Reset this value to -1 whenever you make a minor `0.X` release of the client.
build_number = -1 # git: 54a0b70
build_number = -1 # git: 1c4cfc0
2 changes: 1 addition & 1 deletion test/image_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def test_image_dockerfile_copy_auto_dockerignore(builder_version, servicer, clie

@pytest.mark.parametrize("use_dockerfile", (True, False))
@pytest.mark.usefixtures("tmp_cwd")
def test_image_dockerfile_copy_explicit_dockerignore(builder_version, servicer, client, use_dockerfile):
def test_image_dockerfile_copy_ignore_from_file(builder_version, servicer, client, use_dockerfile):
rel_top_dir = Path("top")
rel_top_dir.mkdir()
(rel_top_dir / "data.txt").write_text("world")
Expand Down

0 comments on commit 7173f24

Please sign in to comment.