Skip to content

Commit

Permalink
update dockerfile to include systemd lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jblance authored Jul 4, 2024
1 parent bdee376 commit 21461f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM python:slim
FROM python:3.12

# RUN pip install mppsolar
RUN pip install --upgrade pip
RUN python -V
RUN python -c 'import platform;print(platform.machine())'
RUN pip install https://github.com/mosquito/cysystemd/releases/download/1.6.2/cysystemd-1.6.2-cp312-cp312-manylinux_2_28_x86_64.whl
COPY . /mpp-solar/
RUN pip install /mpp-solar/
RUN pip install /mpp-solar/
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.10,<4.00"
python = "^3.12"
paho-mqtt = ">=1.6,<2.0.0"
pyserial = ">3"
pydantic = ">=1.8.0"

# Extra dependencies
bluepy = { version = "^1.3.0", optional = true }
cysystemd = { version = ">=1.6.0", optional = true }
# paho-mqtt = { version = ">=1.6", optional = true }
pymongo = { version = ">=4.6.1", optional = true }
psycopg2-binary = { version = ">=2.9.9", optional = true }
pymodbus = { version = "^3.6.4", optional = true }
pymodbus = { version = ">=3.6.1", optional = true }
cysystemd = [
{ optional = true, url = "https://github.com/mosquito/cysystemd/releases/download/1.6.2/cysystemd-1.6.2-cp312-cp312-manylinux_2_28_aarch64.whl", markers = "platform_machine == 'aarch64'"},
{ optional = true, url = "https://github.com/mosquito/cysystemd/releases/download/1.6.2/cysystemd-1.6.2-cp312-cp312-manylinux_2_28_x86_64.whl", markers = "platform_machine == 'x86_64'" },
]

[tool.poetry.extras]
ble = ["bluepy"]
Expand Down

0 comments on commit 21461f9

Please sign in to comment.