Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change minimum Python version to 3.12 #725

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hass-NabuCasa Dev",
"image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11",
"image": "mcr.microsoft.com/vscode/devcontainers/python:1-3.12",
"postCreateCommand": "python3 -m pip install -e .[test]",
"postStartCommand": "python3 -m pip install -e .",
"containerUser": "vscode",
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
steps:
- uses: actions/checkout@v4.2.2

- name: Set up Python 3.11
- name: Set up Python 3.12
uses: actions/setup-python@v5.2.0
with:
python-version: "3.11"
cache: 'pip'
python-version: "3.12"
cache: "pip"
cache-dependency-path: pyproject.toml

- name: Install dependencies
Expand All @@ -36,22 +36,16 @@ jobs:

test:
runs-on: ubuntu-latest
name: Run tests with Python ${{ matrix.python-version }}
name: Run tests
needs: lint
strategy:
klejejs marked this conversation as resolved.
Show resolved Hide resolved
matrix:
python-version:
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v4.2.2

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python "3.12"
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
python-version: "3.12"
cache: "pip"
cache-dependency-path: pyproject.toml

- name: Install dependencies
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ classifiers = [
"Topic :: Internet :: Proxy Servers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
Expand All @@ -34,7 +33,7 @@ description = "Home Assistant cloud integration by Nabu Casa, Inc."
license = {text = "GPL v3"}
name = "hass-nabucasa"
readme = "README.md"
requires-python = ">=3.11"
requires-python = ">=3.12"
version = "0.82.0"

[project.optional-dependencies]
Expand Down