Skip to content

Commit 742e0f2

Browse files
Merge pull request #3 from consbio/update-dependency
Updated to python ^3.8 & Pillow ^9.5
2 parents 551e8cd + 08c1bf7 commit 742e0f2

File tree

7 files changed

+245
-191
lines changed

7 files changed

+245
-191
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ permissions:
88
contents: read
99

1010
jobs:
11-
deploy:
11+
publish:
1212
runs-on: ubuntu-22.04
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Set up Python
1616
uses: actions/setup-python@v3
1717
with:
18-
python-version: "3.7"
18+
python-version: "3.8"
1919
- name: Install dependencies
2020
run: |
2121
sudo apt install -y proj-bin

.github/workflows/test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
3+
name: Test
4+
5+
on:
6+
push:
7+
branches: ["main"]
8+
pull_request:
9+
branches: ["main"]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-22.04
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python 3.8
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "3.8"
23+
- name: Install dependencies
24+
run: |
25+
sudo apt-get install -y proj-bin
26+
python -m pip install --upgrade pip
27+
pip install .
28+
- name: Test
29+
run: |
30+
python setup.py test

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.cache/
33
.coverage
44
.tox/
5+
.idea
56
__pycache__/
67
/build/
78
/dist/

clients/tests/images_tests.py

+19-18
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ def test_stack_images_vertically(self):
239239

240240
TEST_PNG_BASE64 = (
241241
# Generated from test.png with quality:100 and optimize:True
242-
b"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAADFBMVEXf39/"
243-
b"Nzc3Ozs4DAwN3qhFrAAAAIUlEQVR42mNgyATDLAYsjFA0yLASKodgwKUQrGFhDowBAB/QMmr7D/cBAAAAAElFTkSuQmCC"
242+
b"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAACVBMVEXf39/"
243+
b"Nzc3Ozs5AK8nSAAAAIUlEQVR42mNgyATDLAYsjFA0yLASKodgwKUQrGFhDowBAB/QMmr7D/cBAAAAAElFTkSuQmCC"
244244
)
245245
TEST_PNG_BYTES = (
246246
# Generated from test.png with quality:100 and optimize:True
247247
b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00 \x00\x00\x00 \x02\x03\x00\x00\x00\x0e\x14\x92g\x00\x00\x00"
248-
b"\x0cPLTE\xdf\xdf\xdf\xcd\xcd\xcd\xce\xce\xce\x03\x03\x03w\xaa\x11k\x00\x00\x00!IDATx\xdac`\xc8\x04\xc3,\x06,"
248+
b"\tPLTE\xdf\xdf\xdf\xcd\xcd\xcd\xce\xce\xce@+\xc9\xd2\x00\x00\x00!IDATx\xdac`\xc8\x04\xc3,\x06,"
249249
b"\x8cP4\xc8\xb0\x12*\x87`\xc0\xa5\x10\xacaa\x0e\x8c\x01\x00\x1f"
250250
b"\xd02j\xfb\x0f\xf7\x01\x00\x00\x00\x00IEND\xaeB`\x82"
251251
)
@@ -274,24 +274,25 @@ def test_stack_images_vertically(self):
274274
b"H1/s7fxo/4+v9nb+NAB/x9f7O38aP+Pr/AGdv40f8fP8As7fxo/4+v9nb+NAB/wAfX+zt/Gj/AI+v9nb+NH/H1/s7fxo/4+v9nb+PWgD/2Q=="
275275
)
276276
TEST_JPG_BYTES = (
277-
b"\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xdb\x00C\x00\x01\x01\x01\x01\x01\x01"
277+
b"\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xdb\x00C\x00\x01\x01\x01\x01\x01\x01\x01"
278278
b"\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01"
279279
b"\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01"
280-
b"\x01\x01\xff\xdb\x00C\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01"
280+
b"\x01\xff\xdb\x00C\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01"
281281
b"\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01"
282-
b'\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\xff\xc0\x00\x11\x08\x00 \x00 \x03\x01"\x00\x02\x11'
283-
b"\x01\x03\x11\x01\xff\xc4\x00\x16\x00\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\n"
284-
b'\xff\xc4\x00&\x10\x00\x00\x04\x04\x07\x01\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x01\x13\x12\x14\x05\x03"Bc'
285-
b"\x156t\x94Q\x11$\x061a\xff\xc4\x00\x14\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
286-
b"\xff\xc4\x00\x14\x11\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xda\x00\x0c\x03\x01"
287-
b"\x00\x02\x11\x03\x11\x00?\x00\xd5\x96\xba\xf7\xf5\x0b\xca\xc3\xc1\x10\xfb\x8f\x7f\xfd\xf8\xca\x19L\xf1\x16e\x88"
288-
b'\xaak\xae\xa1yXo\x8f}\xc3(e3\xc4Y\x96"\xa6\xba\xea\x17\x95\x86\xf8\xf7\xdc2\x86S<E\x99b*k\xae\xa1yXo\x8f}\xc3(e3'
289-
b'\xc4Y\x96"\xa0k\xae\xa1yXo\x8f}\xc3(e3\xc4Y\x96"\xaa\x02?\x9c\x8f\xa1\xe4,aa\xbe=\xf7\x0c\xa1\x94\xcf\x11fX\x8a'
290-
b'\xa6\xba\xea\x17\x95\x86\xf8\xf7\xdc2\x86S<E\x99b*k\xae\xa1yXo\x8f}\xc3(e3\xc4Y\x96"\xa0k\xae\xa1yXo\x8f}\xc3(e3'
291-
b'\xc4Y\x96"\xa6\xba\xea\x17\x95\x86\xf8\xf7\xdc2\x86S<E\x99b*\xa2\x03\xf9\xc8\xf8>B\xc6\x16\x1b\xe3\xdfp\xca\x19L'
292-
b'\xf1\x16e\x88\xaak\xae\xa1yXo\x8f}\xc3(e3\xc4Y\x96"\xa0k\xae\xa1yXo\x8f}\xc3(e3\xc4Y\x96"\xa6\xba\xea\x17\x95'
293-
b'\x86\xf8\xf7\xdc2\x86S<E\x99b*k\xae\xa1yXo\x8f}\xc3(e3\xc4Y\x96"\xab\xae\xbc\xfdB\xf2\xb0\xf4\x00~\xe3\xdf\xff'
294-
b"\x00>2\x86S<E\x99b*\x0f\xff\xd9"
282+
b'\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\xff\xc0\x00\x11\x08\x00 \x00 \x03\x01"\x00\x02\x11\x01\x03'
283+
b"\x11\x01\xff\xc4\x00\x16\x00\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\n\xff\xc4"
284+
b'\x00&\x10\x00\x00\x04\x04\x07\x01\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x01\x12\x13\x14\x03\x05"B\x11\x156Qct'
285+
b"\x94$\x061a\xff\xc4\x00\x14\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc4\x00"
286+
b"\x14\x11\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xda\x00\x0c\x03\x01\x00\x02\x11"
287+
b"\x03\x11\x00?\x00\xd5\x96\xba\xc7\xf5+\xca\xc3\x01\x10\xfb\x97\x7f\xfd\xf8\xd2\x18L\xf9\x0e\xa5\x84\xaak\xad"
288+
b"\xa5yXw\x97}\xe3Ha3\xe4:\x96\x12\xa6\xba\xdaW\x95\x87yw\xde4\x86\x13>C\xa9a*k\xad\xa5yXw\x97}\xe3Ha3\xe4:\x96\x12"
289+
b"\xa0k\xad\xa5yXw\x97}\xe3Ha3\xe4:\x96\x12\xaa\x02?\x9c\x8e!\x84\xacea\xde]\xf7\x8d!\x84\xcf\x90\xeaXJ\xa6\xba"
290+
b"\xdaW\x95\x87yw\xde4\x86\x13>C\xa9a*k\xad\xa5yXw\x97}\xe3Ha3\xe4:\x96\x12\xa0k\xad\xa5yXw\x97}\xe3Ha3\xe4:\x96"
291+
b"\x12\xa6\xba\xdaW\x95\x87yw\xde4\x86\x13>C\xa9a*\xa2\x03\xf9\xc8\xe08J\xc6V\x1d\xe5\xdfx\xd2\x18L\xf9\x0e\xa5\x84"
292+
b"\xaak\xad\xa5yXw\x97}\xe3Ha3\xe4:\x96\x12\xa0k\xad\xa5yXw\x97}\xe3Ha3\xe4:\x96\x12\xa6\xba\xdaW\x95\x87yw\xde4"
293+
b"\x86\x13>C\xa9a*k\xad\xa5yXw\x97}\xe3Ha3\xe4:\x96\x12\xab\xae\xb0\xfdJ\xf2\xb0\xc4\x00~\xe5\xdf\xff\x00>4\x86"
294+
b"\x13>C\xa9a*\x0f\xff\xd9"
295+
295296
)
296297
TEST_STACKED_JPG = (
297298
b"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0"

0 commit comments

Comments
 (0)