Skip to content

Commit

Permalink
rel 2024 update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FredHappyface committed Jan 7, 2024
1 parent 15e09a2 commit cc2e376
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 31 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All major and minor version changes will be documented in this file. Details of
patch-level version changes can be found in [commit messages](../../commits/master).

## 2024 - 2024/01/07

- update dependencies

## 2023.1 - 2023/08/31

- Update deps
Expand Down
30 changes: 10 additions & 20 deletions documentation/reference/nocairosvg/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ Tuple[int, int, int, int]: the converted colour
#### Signature

```python
def colour2tuple(colour: str | None) -> tuple[int, int, int, int]:
...
def colour2tuple(colour: str | None) -> tuple[int, int, int, int]: ...
```


Expand Down Expand Up @@ -65,8 +64,7 @@ def convert(
url: str,
background_colour: tuple[int, int, int, int] = (0, 0, 0, 0),
size: tuple[int | None, int | None] = (None, None),
) -> Image.Image:
...
) -> Image.Image: ...
```


Expand Down Expand Up @@ -94,8 +92,7 @@ def resolve_file_url(
bytestring: bytes | None = None,
file_obj: FileIO | None = None,
url: str | None = None,
) -> str:
...
) -> str: ...
```


Expand Down Expand Up @@ -153,8 +150,7 @@ def svg2bitmap(
output_height: int | None = None,
ext: str = "png",
transparent: bool = True,
) -> bytes | None:
...
) -> bytes | None: ...
```


Expand Down Expand Up @@ -210,8 +206,7 @@ def svg2eps(
write_to: str | FileIO | None = None,
output_width: int | None = None,
output_height: int | None = None,
) -> bytes | None:
...
) -> bytes | None: ...
```


Expand Down Expand Up @@ -267,8 +262,7 @@ def svg2pdf(
write_to: str | FileIO | None = None,
output_width: int | None = None,
output_height: int | None = None,
) -> bytes | None:
...
) -> bytes | None: ...
```


Expand Down Expand Up @@ -324,8 +318,7 @@ def svg2png(
write_to: str | FileIO | None = None,
output_width: int | None = None,
output_height: int | None = None,
) -> bytes | None:
...
) -> bytes | None: ...
```


Expand Down Expand Up @@ -381,8 +374,7 @@ def svg2ps(
write_to: str | FileIO | None = None,
output_width: int | None = None,
output_height: int | None = None,
) -> bytes | None:
...
) -> bytes | None: ...
```


Expand Down Expand Up @@ -438,8 +430,7 @@ def svg2svg(
write_to: str | FileIO | None = None,
output_width: int | None = None,
output_height: int | None = None,
) -> bytes | None:
...
) -> bytes | None: ...
```


Expand All @@ -466,6 +457,5 @@ file (Union[str, FileIO, None]): the file
```python
def write(
image: Image.Image, file: str | FileIO | None, ext: str, dpi: int
) -> bytes | None:
...
) -> bytes | None: ...
```
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nocairosvg"
version = "2023.1"
version = "2024"
license = "mit"
description = "Drop in replacement for cairosvg"
authors = ["FredHappyface"]
Expand All @@ -22,16 +22,16 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.8"
Pillow = "<11,>=10.0.0"
playwright = "<2,>=1.37.0"
install-playwright = "<2,>=0.0.0"
Pillow = "<11,>=10.2.0"
playwright = "<2,>=1.40.0"
install-playwright = "<2,>=0.0.1"

[tool.poetry.group.dev.dependencies]
imgcompare = "^2.0.1"
pytest = "^7.4.0"
pylint = "^2.17.5"
handsdown = "^2.0.1"
coverage = "^7.3.0"
pytest = "^7.4.4"
pylint = "^3.0.3"
handsdown = "^2.1.0"
coverage = "^7.4.0"

[tool.black]
line-length = 100
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Pillow<11,>=10.0.0
install-playwright<2,>=0.0.0
playwright<2,>=1.37.0
Pillow<11,>=10.2.0
install-playwright<2,>=0.0.1
playwright<2,>=1.40.0
Binary file modified tests/data/firefox.pdf
Binary file not shown.

0 comments on commit cc2e376

Please sign in to comment.