Skip to content

Commit

Permalink
Support python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ol-iver committed Feb 10, 2024
1 parent 1ab584e commit b6c7b83
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Verify version
run: |
python -m pip install setuptools
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

name: Testing Python ${{ matrix.python-version }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion denonavr/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
import time
import xml.etree.ElementTree as ET
from collections import defaultdict
from collections.abc import Hashable
from io import BytesIO
from typing import (
Awaitable,
Callable,
Coroutine,
DefaultDict,
Dict,
Hashable,
List,
Optional,
Set,
Expand Down
3 changes: 2 additions & 1 deletion denonavr/audyssey.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"""

import logging
from typing import Hashable, List, Optional
from collections.abc import Hashable
from typing import List, Optional

import attr

Expand Down
3 changes: 2 additions & 1 deletion denonavr/foundation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import asyncio
import logging
import xml.etree.ElementTree as ET
from collections.abc import Hashable
from copy import deepcopy
from typing import Dict, Hashable, List, Optional, Union
from typing import Dict, List, Optional, Union

import attr
import httpx
Expand Down
3 changes: 2 additions & 1 deletion denonavr/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

import asyncio
import logging
from collections.abc import Hashable
from copy import deepcopy
from typing import Dict, Hashable, List, Optional, Set, Tuple
from typing import Dict, List, Optional, Set, Tuple

import attr
import httpx
Expand Down
3 changes: 2 additions & 1 deletion denonavr/soundmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

import asyncio
import logging
from collections.abc import Hashable
from copy import deepcopy
from typing import Dict, Hashable, List, Optional
from typing import Dict, List, Optional

import attr

Expand Down
3 changes: 2 additions & 1 deletion denonavr/tonecontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

import logging
import time
from typing import Hashable, Optional
from collections.abc import Hashable
from typing import Optional

import attr

Expand Down
3 changes: 2 additions & 1 deletion denonavr/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"""

import logging
from typing import Hashable, Optional, Union
from collections.abc import Hashable
from typing import Optional, Union

import attr

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.7"
dependencies = [
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[tox]
envlist = py37,py38,py39,py310,py311,pylint,lint,format
envlist = py37,py38,py39,py310,py311,py312,pylint,lint,format
skip_missing_interpreters = True

[testenv:format]
basepython = python3.11
basepython = python3.12
deps =
-r{toxinidir}/test-requirements.txt
commands =
python -m isort denonavr/. tests/. --check --verbose
python -m black denonavr tests --check --verbose

[testenv:pylint]
basepython = python3.11
basepython = python3.12
deps =
-r{toxinidir}/test-requirements.txt
commands=python -m pylint denonavr tests

[testenv:lint]
basepython = python3.11
basepython = python3.12
deps =
-r{toxinidir}/test-requirements.txt
commands =
Expand Down

0 comments on commit b6c7b83

Please sign in to comment.