From b830c239cd668fdd4e633a642f0cd38b81ab0ee2 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Tue, 9 Aug 2022 09:52:36 +0100 Subject: [PATCH] General update to Python v3.9, etc. --- Dockerfile | 2 +- get_data.py | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8e4a891..a0eb4e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8-slim-buster +FROM python:3.9-slim-bullseye # Keeps Python from generating .pyc files in the container ENV PYTHONDONTWRITEBYTECODE 1 diff --git a/get_data.py b/get_data.py index 91d5f32..a6bd457 100644 --- a/get_data.py +++ b/get_data.py @@ -7,7 +7,7 @@ from socket import gaierror from typing import TypedDict import bluetooth._bluetooth as bluez # type: ignore[import] -import paho.mqtt.publish as publish # type: ignore[import] +from paho.mqtt import publish # type: ignore[import] from bluetooth_utils.bluetooth_utils import ( # type: ignore[import] disable_le_scan, diff --git a/requirements.txt b/requirements.txt index eed4c9f..8b75210 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ paho-mqtt -pybluez +pybluez @ git+https://github.com/pybluez/pybluez.git#egg=pybluez