Drop tomli (#97064)
This commit is contained in:
parent
45ec314232
commit
da6802b009
3 changed files with 3 additions and 13 deletions
|
@ -32,7 +32,6 @@ pytest==7.3.1
|
||||||
requests_mock==1.11.0
|
requests_mock==1.11.0
|
||||||
respx==0.20.2
|
respx==0.20.2
|
||||||
syrupy==4.0.8
|
syrupy==4.0.8
|
||||||
tomli==2.0.1;python_version<"3.11"
|
|
||||||
tqdm==4.65.0
|
tqdm==4.65.0
|
||||||
types-atomicwrites==1.4.5.1
|
types-atomicwrites==1.4.5.1
|
||||||
types-croniter==1.0.6
|
types-croniter==1.0.6
|
||||||
|
@ -48,4 +47,3 @@ types-python-slugify==0.1.2
|
||||||
types-pytz==2023.3.0.0
|
types-pytz==2023.3.0.0
|
||||||
types-PyYAML==6.0.12.2
|
types-PyYAML==6.0.12.2
|
||||||
types-requests==2.31.0.1
|
types-requests==2.31.0.1
|
||||||
types-toml==0.10.8.6
|
|
||||||
|
|
|
@ -11,14 +11,11 @@ import re
|
||||||
import sys
|
import sys
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
import tomllib
|
||||||
|
|
||||||
from homeassistant.util.yaml.loader import load_yaml
|
from homeassistant.util.yaml.loader import load_yaml
|
||||||
from script.hassfest.model import Integration
|
from script.hassfest.model import Integration
|
||||||
|
|
||||||
if sys.version_info >= (3, 11):
|
|
||||||
import tomllib
|
|
||||||
else:
|
|
||||||
import tomli as tomllib
|
|
||||||
|
|
||||||
COMMENT_REQUIREMENTS = (
|
COMMENT_REQUIREMENTS = (
|
||||||
"Adafruit-BBIO",
|
"Adafruit-BBIO",
|
||||||
"atenpdu", # depends on pysnmp which is not maintained at this time
|
"atenpdu", # depends on pysnmp which is not maintained at this time
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
"""Package metadata validation."""
|
"""Package metadata validation."""
|
||||||
import sys
|
import tomllib
|
||||||
|
|
||||||
from homeassistant.const import REQUIRED_PYTHON_VER, __version__
|
from homeassistant.const import REQUIRED_PYTHON_VER, __version__
|
||||||
|
|
||||||
from .model import Config, Integration
|
from .model import Config, Integration
|
||||||
|
|
||||||
if sys.version_info >= (3, 11):
|
|
||||||
import tomllib
|
|
||||||
else:
|
|
||||||
import tomli as tomllib
|
|
||||||
|
|
||||||
|
|
||||||
def validate(integrations: dict[str, Integration], config: Config) -> None:
|
def validate(integrations: dict[str, Integration], config: Config) -> None:
|
||||||
"""Validate project metadata keys."""
|
"""Validate project metadata keys."""
|
||||||
|
|
Loading…
Add table
Reference in a new issue