Skip to content

Commit

Permalink
- Fixed error in test_read_command_page_size on Windows (introduced in
Browse files Browse the repository at this point in the history
…#446)

- Fixed missing alpha in __all__
- Updated CHANGELOG.md
  • Loading branch information
abey79 committed Apr 2, 2022
1 parent b1da650 commit 459c7c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release date: UNRELEASED

### New features and improvements

* Added the `alpha` command to set layer opacity without changing the base color (#447)
* Added HPGL configuration for the Calcomp Artisan plotter (thanks to Andee Collard and @ithinkido) (#418)
* Added the `--dont-set-date` option to the `write` command (#442)
* The `read` command now better handles SVGs with missing `width` or `height` attributes (#446)
Expand All @@ -23,7 +24,7 @@ Release date: UNRELEASED

### API changes

* Added `vpype_cli.FloatType()`, `vpype_cli.IntRangeType()`, and `vpype_cli.ChoiceType()` (#430)
* Added `vpype_cli.FloatType()`, `vpype_cli.IntRangeType()`, `vpype_cli.FloatRangeType()`, and `vpype_cli.ChoiceType()` (#430, #447)
* Changed `vpype.Document.add_to_sources()` to also modify the `vp_source` property (#431)
* Added a `set_date:bool = True` argument to `vpype.write_svg()` (#442)
* Changed the default value of `default_width` and `default_height` arguments of `vpype.read_svg()` (and friends) to `None` to allow `svgelement` better handle missing `width`/`height` attributes (#446)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def test_read_command_page_size(
args += f"--display-size {default[0]:.3f}x{default[1]:.3f} "
if default[0] > default[1]:
args += f"--display-landscape"
doc = vpype_cli.execute(f"read {args} {path}")
doc = vpype_cli.execute(f"read {args} '{path}'")

assert doc.page_size == pytest.approx(target)

Expand Down
10 changes: 2 additions & 8 deletions vpype_cli/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@

from .cli import cli
from .decorators import global_processor, layer_processor
from .types import (
FloatRangeType,
FloatType,
LayerType,
LengthType,
TextType,
multiple_to_layer_ids,
)
from .types import FloatRangeType, LayerType, LengthType, TextType, multiple_to_layer_ids

__all__ = (
"propset",
Expand All @@ -26,6 +19,7 @@
"propclear",
"penwidth",
"color",
"alpha",
"name",
"pens",
)
Expand Down

0 comments on commit 459c7c6

Please sign in to comment.