From fd11c08b999ab9cc188ad1c933a6e19953912c6b Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 10 Oct 2023 16:30:39 -0400 Subject: [PATCH] build: update python dependencies The latest version of several dependencies has deprecated Python 3.7. Update Moonraker's requirements so that the latest version is installed without breaking existing installations. Signed-off-by: Eric Callahan --- pyproject.toml | 9 ++++++--- scripts/moonraker-requirements.txt | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d6b03cf..4e4f20d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,12 +6,15 @@ authors = [ {name = "Eric Callahan", email = "arksine.code@gmail.com"}, ] dependencies = [ - "tornado==6.2.0", + "tornado==6.2.0 ; python_version=='3.7'", + "tornado==6.3.3 ; python_version>='3.8'", "pyserial==3.4", "pyserial-asyncio==0.6", - "pillow==9.3.0", + "pillow==9.5.0 ; python_version=='3.7'", + "pillow==10.0.1 ; python_version>='3.8'", "lmdb==1.4.1", - "streaming-form-data==1.11.0", + "streaming-form-data==1.11.0 ; python_version=='3.7'", + "streaming-form-data==1.13.0 ; python_version>='3.8'", "distro==1.8.0", "inotify-simple==1.3.5", "libnacl==1.8.0", diff --git a/scripts/moonraker-requirements.txt b/scripts/moonraker-requirements.txt index d2c1515..aac04a2 100644 --- a/scripts/moonraker-requirements.txt +++ b/scripts/moonraker-requirements.txt @@ -1,10 +1,13 @@ # Python dependencies for Moonraker -tornado==6.2.0 +tornado==6.2.0 ; python_version=='3.7' +tornado==6.3.3 ; python_version>='3.8' pyserial==3.4 pyserial-asyncio==0.6 -pillow==9.3.0 +pillow==9.5.0 ; python_version=='3.7' +pillow==10.0.1 ; python_version>='3.8' lmdb==1.4.1 -streaming-form-data==1.11.0 +streaming-form-data==1.11.0 ; python_version=='3.7' +streaming-form-data==1.13.0 ; python_version>='3.8' distro==1.8.0 inotify-simple==1.3.5 libnacl==1.8.0