From ff96f186e7b961f909e8cfa1929ecfe9a78ab78d Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Thu, 28 Nov 2024 09:47:16 +0100 Subject: [PATCH 1/2] upgrade python dependency to 3.13 * .devcontainer/devcontainer.json: * .github/workflows/automatic_generation.yml: * .github/workflows/generate_package.yml: * .github/workflows/make_release.yml: * .github/workflows/publish.yml: * .github/workflows/pytest.yml: * setup.py: --- .devcontainer/devcontainer.json | 2 +- .github/workflows/automatic_generation.yml | 6 +++--- .github/workflows/generate_package.yml | 2 +- .github/workflows/make_release.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/pytest.yml | 2 +- setup.py | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 737b8d1..10ad2b6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,4 +1,4 @@ { - "image": "mcr.microsoft.com/devcontainers/python:3.12", + "image": "mcr.microsoft.com/devcontainers/python:3.13", "postCreateCommand": "pip3 install -r requirements_generate.txt" } diff --git a/.github/workflows/automatic_generation.yml b/.github/workflows/automatic_generation.yml index 8c6c804..f0249a4 100644 --- a/.github/workflows/automatic_generation.yml +++ b/.github/workflows/automatic_generation.yml @@ -21,7 +21,7 @@ jobs: - name: setup python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: install dependencies run: pip install -r requirements_generate.txt - name: Install phacc for current versions @@ -59,7 +59,7 @@ jobs: if: needs.generate_package.outputs.need_to_release == 'true' strategy: matrix: - python-version: ['3.12'] + python-version: ['3.13'] steps: - name: checkout repo content uses: actions/checkout@v4 @@ -126,7 +126,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/generate_package.yml b/.github/workflows/generate_package.yml index f0eecd9..7c7e91a 100644 --- a/.github/workflows/generate_package.yml +++ b/.github/workflows/generate_package.yml @@ -13,7 +13,7 @@ jobs: - name: setup python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: install dependencies run: pip install -r requirements_generate.txt - name: Install phacc for current versions diff --git a/.github/workflows/make_release.yml b/.github/workflows/make_release.yml index f40a2dd..8379a61 100644 --- a/.github/workflows/make_release.yml +++ b/.github/workflows/make_release.yml @@ -51,7 +51,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2792423..369c710 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,7 +10,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index f21f915..40ccf33 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.12"] + python-version: ["3.13"] steps: - uses: actions/checkout@v4 diff --git a/setup.py b/setup.py index b8df607..ce1650f 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ version=__version__, packages=find_packages(where="src"), package_dir={"": "src"}, - python_requires=">=3.12", + python_requires=">=3.13", install_requires=requirements, license="MIT license", url="https://github.com/MatthewFlamm/pytest-homeassistant-custom-component", @@ -33,7 +33,7 @@ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", - "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Software Development :: Testing", ], entry_points={"pytest11": ["homeassistant = pytest_homeassistant_custom_component.plugins"]}, From 0c30ea0950411240f0b87766b64ef212b6619340 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 29 Nov 2024 09:10:46 +0100 Subject: [PATCH 2/2] Also test with 3.12 * .github/workflows/automatic_generation.yml: * .github/workflows/pytest.yml: * setup.py: --- .github/workflows/automatic_generation.yml | 2 +- .github/workflows/pytest.yml | 2 +- setup.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automatic_generation.yml b/.github/workflows/automatic_generation.yml index f0249a4..d92f7a2 100644 --- a/.github/workflows/automatic_generation.yml +++ b/.github/workflows/automatic_generation.yml @@ -59,7 +59,7 @@ jobs: if: needs.generate_package.outputs.need_to_release == 'true' strategy: matrix: - python-version: ['3.13'] + python-version: ['3.12', '3.13'] steps: - name: checkout repo content uses: actions/checkout@v4 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 40ccf33..ee22b1d 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.13"] + python-version: ["3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/setup.py b/setup.py index ce1650f..b8df607 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ version=__version__, packages=find_packages(where="src"), package_dir={"": "src"}, - python_requires=">=3.13", + python_requires=">=3.12", install_requires=requirements, license="MIT license", url="https://github.com/MatthewFlamm/pytest-homeassistant-custom-component", @@ -33,7 +33,7 @@ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", - "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Testing", ], entry_points={"pytest11": ["homeassistant = pytest_homeassistant_custom_component.plugins"]},