Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Ott <[email protected]>
  • Loading branch information
DerOetzi committed Nov 30, 2024
1 parent 1bdf3e3 commit f6cfcc9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
"image": "mcr.microsoft.com/devcontainers/python:1-3.12",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
python-version:
- '3.10'
- '3.11'
- '3.12'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -119,13 +120,13 @@ jobs:
core/dist
- name: Publish package to pypi
if: ${{github.event_name == 'release' && matrix.python-version == '3.11'}}
if: ${{github.event_name == 'release' && matrix.python-version == '3.12'}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: core/dist/

- name: Publish assets to github
if: ${{github.event_name == 'release' && matrix.python-version == '3.11'}}
if: ${{github.event_name == 'release' && matrix.python-version == '3.12'}}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ github.token }}
Expand Down
2 changes: 2 additions & 0 deletions core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
keywords="smart home, machine learning, house automation",
packages=packages,
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11 AS buildimage
FROM python:3.12 AS buildimage

WORKDIR /learninghouse

Expand All @@ -16,7 +16,7 @@ RUN python3 -m venv /venv && \
--extra-index-url https://www.piwheels.org/simple \
-r requirements.txt

FROM python:3.11-slim
FROM python:3.12-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
Expand Down

0 comments on commit f6cfcc9

Please sign in to comment.