Upgrade to python 3.11 (#16948)

This commit is contained in:
Steve Repsher 2023-06-19 13:50:45 -04:00 committed by GitHub
parent e7c8bd4c41
commit 540df024d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.148.1/containers/python-3/.devcontainer/base.Dockerfile # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.148.1/containers/python-3/.devcontainer/base.Dockerfile
FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.10 FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.11
ENV \ ENV \
DEBIAN_FRONTEND=noninteractive \ DEBIAN_FRONTEND=noninteractive \

View File

@ -6,7 +6,7 @@ on:
- cron: "0 1 * * *" - cron: "0 1 * * *"
env: env:
PYTHON_VERSION: "3.10" PYTHON_VERSION: "3.11"
NODE_OPTIONS: --max_old_space_size=6144 NODE_OPTIONS: --max_old_space_size=6144
permissions: permissions:

View File

@ -6,7 +6,7 @@ on:
- published - published
env: env:
PYTHON_VERSION: "3.10" PYTHON_VERSION: "3.11"
NODE_OPTIONS: --max_old_space_size=6144 NODE_OPTIONS: --max_old_space_size=6144
# Set default workflow permissions # Set default workflow permissions
@ -76,7 +76,7 @@ jobs:
- name: Build wheels - name: Build wheels
uses: home-assistant/wheels@2023.04.0 uses: home-assistant/wheels@2023.04.0
with: with:
abi: cp310 abi: cp311
tag: musllinux_1_2 tag: musllinux_1_2
arch: amd64 arch: amd64
wheels-key: ${{ secrets.WHEELS_KEY }} wheels-key: ${{ secrets.WHEELS_KEY }}

View File

@ -11,7 +11,7 @@ readme = "README.md"
authors = [ authors = [
{name = "The Home Assistant Authors", email = "hello@home-assistant.io"} {name = "The Home Assistant Authors", email = "hello@home-assistant.io"}
] ]
requires-python = ">=3.4.0" requires-python = ">=3.10.0"
[project.urls] [project.urls]
"Homepage" = "https://github.com/home-assistant/frontend" "Homepage" = "https://github.com/home-assistant/frontend"

View File

@ -8,9 +8,9 @@ cd "$(dirname "$0")/.."
# Install/upgrade node when inside devcontainer # Install/upgrade node when inside devcontainer
if [[ -n "$DEVCONTAINER" ]]; then if [[ -n "$DEVCONTAINER" ]]; then
nodeCurrent=$(nvm version default || echo "") nodeCurrent=$(nvm version default || :)
nodeLatest=$(nvm version-remote "$(cat .nvmrc)") nodeLatest=$(nvm version-remote "$(cat .nvmrc)")
if [[ -z "$nodeCurrent" ]]; then if [[ -z "$nodeCurrent" || "$nodeCurrent" == "N/A" ]]; then
nvm install nvm install
elif [[ "$nodeCurrent" != "$nodeLatest" ]]; then elif [[ "$nodeCurrent" != "$nodeLatest" ]]; then
nvm install --reinstall-packages-from="$nodeCurrent" --default nvm install --reinstall-packages-from="$nodeCurrent" --default