diff --git a/CHANGELOG.md b/CHANGELOG.md index e57ce01..64f2d15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 - 2023/08/31 - Update deps diff --git a/documentation/reference/pylsr/index.md b/documentation/reference/pylsr/index.md index 8f32e6e..41618da 100644 --- a/documentation/reference/pylsr/index.md +++ b/documentation/reference/pylsr/index.md @@ -32,8 +32,7 @@ LSRImage contains data on the overall size, the layers and the name of the lsr i class LSRImage: def __init__( self, size: tuple[int, int], name: str, layers: list[LSRLayer] | None = None - ): - ... + ): ... ``` ### LSRImage().flatten @@ -45,8 +44,7 @@ Flatten all of the layers. #### Signature ```python -def flatten(self) -> Image.Image: - ... +def flatten(self) -> Image.Image: ... ``` @@ -68,8 +66,7 @@ class LSRImageData: scale: str = "1x", idiom: str = "universal", offsets: tuple[int, int] = (0, 0), - ): - ... + ): ... ``` ### LSRImageData().scaledImage @@ -85,8 +82,7 @@ Get the scaled image. #### Signature ```python -def scaledImage(self): - ... +def scaledImage(self): ... ``` @@ -108,8 +104,7 @@ class LSRLayer: name: str, size: tuple[int, int], center: tuple[int, int], - ): - ... + ): ... ``` #### See also @@ -125,8 +120,7 @@ Flatten all of the layers. #### Signature ```python -def flatten(self) -> Image.Image: - ... +def flatten(self) -> Image.Image: ... ``` ### LSRLayer().offsets @@ -142,8 +136,7 @@ Calculate the x, y offset for the top left corner. #### Signature ```python -def offsets(self) -> tuple[int, int]: - ... +def offsets(self) -> tuple[int, int]: ... ``` @@ -169,8 +162,7 @@ been flattened. Defaults to None. ```python def flattenAll( layers: list[LSRImageData], imageDimensions: tuple[int, int] -) -> Image.Image: - ... +) -> Image.Image: ... ``` #### See also @@ -203,8 +195,7 @@ def flattenTwoLayers( layer: LSRImageData, imageDimensions: tuple[int, int], flattenedSoFar: Image.Image | None = None, -) -> Image.Image: - ... +) -> Image.Image: ... ``` #### See also @@ -225,8 +216,7 @@ Render an image with offset to a given size. (deprecated, use renderImageOffset) @deprecated(deprecated_in="2022", removed_in="2023", details="Use renderImageOffset") def rasterImageOffset( image: Image.Image, size: tuple[int, int], offsets: tuple[int, int] = (0, 0) -) -> Image.Image: - ... +) -> Image.Image: ... ``` @@ -248,8 +238,7 @@ Read an lsr file. #### Signature ```python -def read(filename: str) -> LSRImage: - ... +def read(filename: str) -> LSRImage: ... ``` #### See also @@ -269,8 +258,7 @@ Render an image with offset to a given size. ```python def renderImageOffset( image: Image.Image, size: tuple[int, int], offsets: tuple[int, int] = (0, 0) -) -> Image.Image: - ... +) -> Image.Image: ... ``` @@ -289,8 +277,7 @@ Write an lsr image to disk. #### Signature ```python -def write(filename: str, lsrImage: LSRImage): - ... +def write(filename: str, lsrImage: LSRImage): ... ``` #### See also diff --git a/pyproject.toml b/pyproject.toml index bb722ee..2dfca38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pylsr" -version = "2023" +version = "2024" license = "mit" description = "Use this module to read, and write to Apple's Layer Source Representation (LSR) Image format." authors = ["FredHappyface"] @@ -23,16 +23,16 @@ readme = "README.md" [tool.poetry.dependencies] python = "^3.8" -Pillow = "<11,>=10.0.0" +Pillow = "<11,>=10.2.0" deprecation = "<3,>=2.1.0" [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 diff --git a/requirements.txt b/requirements.txt index 1d7ad48..31416cf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -Pillow<11,>=10.0.0 +Pillow<11,>=10.2.0 deprecation<3,>=2.1.0 diff --git a/tests/data/pull4copy.lsr b/tests/data/pull4copy.lsr index 289615b..001b1ca 100644 Binary files a/tests/data/pull4copy.lsr and b/tests/data/pull4copy.lsr differ diff --git a/tests/data/test1copy.lsr b/tests/data/test1copy.lsr index 9b13ef2..9ca5ee4 100644 Binary files a/tests/data/test1copy.lsr and b/tests/data/test1copy.lsr differ diff --git a/tests/data/test3copy.lsr b/tests/data/test3copy.lsr index a329ccd..1a0c50f 100644 Binary files a/tests/data/test3copy.lsr and b/tests/data/test3copy.lsr differ