kopia lustrzana https://github.com/dgtlmoon/changedetection.io
Upgrade to Python 3.11 from 3.10, add faster prebuilt "wheels" for rPi devices, upgrade cryptography security library
rodzic
cc147be76e
commit
90b357f457
|
@ -3,7 +3,7 @@
|
||||||
# @NOTE! I would love to move to 3.11 but it breaks the async handler in changedetectionio/content_fetchers/puppeteer.py
|
# @NOTE! I would love to move to 3.11 but it breaks the async handler in changedetectionio/content_fetchers/puppeteer.py
|
||||||
# If you know how to fix it, please do! and test it for both 3.10 and 3.11
|
# If you know how to fix it, please do! and test it for both 3.10 and 3.11
|
||||||
|
|
||||||
ARG PYTHON_VERSION=3.10
|
ARG PYTHON_VERSION=3.11
|
||||||
|
|
||||||
FROM python:${PYTHON_VERSION}-slim-bookworm as builder
|
FROM python:${PYTHON_VERSION}-slim-bookworm as builder
|
||||||
|
|
||||||
|
@ -26,7 +26,8 @@ WORKDIR /install
|
||||||
|
|
||||||
COPY requirements.txt /requirements.txt
|
COPY requirements.txt /requirements.txt
|
||||||
|
|
||||||
RUN pip install --target=/dependencies -r /requirements.txt
|
# --extra-index-url https://www.piwheels.org/simple is for cryptography module to be prebuilt (or rustc etc needs to be installed)
|
||||||
|
RUN pip install --extra-index-url https://www.piwheels.org/simple --target=/dependencies -r /requirements.txt
|
||||||
|
|
||||||
# Playwright is an alternative to Selenium
|
# Playwright is an alternative to Selenium
|
||||||
# Excluded this package from requirements.txt to prevent arm/v6 and arm/v7 builds from failing
|
# Excluded this package from requirements.txt to prevent arm/v6 and arm/v7 builds from failing
|
||||||
|
|
|
@ -41,10 +41,8 @@ apprise~=1.8.0
|
||||||
# use v1.x due to https://github.com/eclipse/paho.mqtt.python/issues/814
|
# use v1.x due to https://github.com/eclipse/paho.mqtt.python/issues/814
|
||||||
paho-mqtt>=1.6.1,<2.0.0
|
paho-mqtt>=1.6.1,<2.0.0
|
||||||
|
|
||||||
# This mainly affects some ARM builds, which unlike the other builds ignores "ARG CRYPTOGRAPHY_DONT_BUILD_RUST=1"
|
# Requires extra wheel for rPi
|
||||||
# so without this pinning, the newer versions on ARM will forcefully try to build rust, which results in "rust compiler not found"
|
cryptography~=42.0.8
|
||||||
# (introduced once apprise became a dep)
|
|
||||||
cryptography~=3.4
|
|
||||||
|
|
||||||
# Used for CSS filtering
|
# Used for CSS filtering
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
|
Ładowanie…
Reference in New Issue