Skip to content

Commit

Permalink
Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
amitfin committed Feb 2, 2024
1 parent dbefdde commit 8293b96
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "patch",
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",
"postCreateCommand": "scripts/setup",
"forwardPorts": [8123],
"portsAttributes": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: "Set up Python"
uses: actions/[email protected]
with:
python-version: "3.11"
python-version: "3.12"
cache: "pip"

- name: "Install requirements"
Expand Down
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The contents of this file is based on https://github.com/home-assistant/core/blob/dev/pyproject.toml

target-version = "py311"
target-version = "py312"

select = [
"B007", # Loop control variable {name} not used within loop body
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ All files must exist (e.g. `base/name`, etc') inside the Home Assistant Core env

The `destination` directory can use the following variables as a prefix:

1. `site-packages`: path to the location of Python libraries (e.g. `/usr/local/lib/python3.11/site-packages`).
1. `site-packages`: path to the location of Python libraries (e.g. `/usr/local/lib/python3.12/site-packages`).
2. `homeassistant`: path to the `homeassistant` directory, i.e. `/usr/src/homeassistant/homeassistant` (the 2nd `/homeassistant` is not a mistake. There is `homeassistant` directory under the root.)

## Install
Expand All @@ -63,7 +63,7 @@ Home Assistant restart is required once the integration files are copied (either
Home Assistant can run in different configurations. A common one is Home Assistant Operating System, which will be used in the explanation below. In this configuration Home Assistant Core runs as a container. The 2 most relevant directories are:

1. `/usr/src/homeassistant`: this is the place with Home Assistant files built from the [Core repository](https://github.com/home-assistant/core). The variable `homeassistant` can be used as a prefix in the `destination` parameter and it will be resolved to `/usr/src/homeassistant/homeassistant` (the 2nd `/homeassistant` is not a mistake. There is `homeassistant` directory under the root.)
2. `/usr/local/lib/python3.11/site-packages`: this is the place where Python libraries are installed. (Note: `python3.11` will be changed when Home Assistant upgrades its Python version.) The variable `site-packages` can be used as a prefix in the `destination` parameter and it will be resolved automatically.
2. `/usr/local/lib/python3.12/site-packages`: this is the place where Python libraries are installed. (Note: `python3.12` will be changed when Home Assistant upgrades its Python version.) The variable `site-packages` can be used as a prefix in the `destination` parameter and it will be resolved automatically.

It’s possible to explore the environment along with the file system structure and content by:

Expand Down

0 comments on commit 8293b96

Please sign in to comment.