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 b186507 commit a5defc4
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 33 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 - 2023/08/31

- Update deps
Expand Down
39 changes: 13 additions & 26 deletions documentation/reference/pylsr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,8 +44,7 @@ Flatten all of the layers.
#### Signature

```python
def flatten(self) -> Image.Image:
...
def flatten(self) -> Image.Image: ...
```


Expand All @@ -68,8 +66,7 @@ class LSRImageData:
scale: str = "1x",
idiom: str = "universal",
offsets: tuple[int, int] = (0, 0),
):
...
): ...
```

### LSRImageData().scaledImage
Expand All @@ -85,8 +82,7 @@ Get the scaled image.
#### Signature

```python
def scaledImage(self):
...
def scaledImage(self): ...
```


Expand All @@ -108,8 +104,7 @@ class LSRLayer:
name: str,
size: tuple[int, int],
center: tuple[int, int],
):
...
): ...
```

#### See also
Expand All @@ -125,8 +120,7 @@ Flatten all of the layers.
#### Signature

```python
def flatten(self) -> Image.Image:
...
def flatten(self) -> Image.Image: ...
```

### LSRLayer().offsets
Expand All @@ -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]: ...
```


Expand All @@ -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
Expand Down Expand Up @@ -203,8 +195,7 @@ def flattenTwoLayers(
layer: LSRImageData,
imageDimensions: tuple[int, int],
flattenedSoFar: Image.Image | None = None,
) -> Image.Image:
...
) -> Image.Image: ...
```

#### See also
Expand All @@ -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: ...
```


Expand All @@ -248,8 +238,7 @@ Read an lsr file.
#### Signature

```python
def read(filename: str) -> LSRImage:
...
def read(filename: str) -> LSRImage: ...
```

#### See also
Expand All @@ -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: ...
```


Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Pillow<11,>=10.0.0
Pillow<11,>=10.2.0
deprecation<3,>=2.1.0
Binary file modified tests/data/pull4copy.lsr
Binary file not shown.
Binary file modified tests/data/test1copy.lsr
Binary file not shown.
Binary file modified tests/data/test3copy.lsr
Binary file not shown.

0 comments on commit a5defc4

Please sign in to comment.