-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pydantic to 2.x and use compatibility layer
Use v2's compatibility layer for a simple upgrade path for now.
- Loading branch information
Showing
14 changed files
with
485 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,87 @@ | ||
[tool.poetry] | ||
name = "mytoyota" | ||
description = "Python client for Toyota Connected Services." | ||
authors = ["Simon Grud Hansen <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
version = "0.0.0" | ||
packages = [ | ||
{include = "mytoyota"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
keywords = [ | ||
"Toyota", | ||
"Car", | ||
"MYT", | ||
] | ||
homepage = "https://github.com/DurgNomis-drol/mytoyota" | ||
repository = "https://github.com/DurgNomis-drol/mytoyota" | ||
|
||
[tool.poetry.urls] | ||
"Bug Tracker" = "https://github.com/DurgNomis-drol/mytoyota/issues" | ||
"Release Notes" = "https://github.com/DurgNomis-drol/mytoyota/releases" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
langcodes = "^3.1" | ||
httpx = ">=0.18.1" | ||
arrow = "^1.1" | ||
importlib-metadata = "^7.0.1" | ||
pyjwt = "^2.8.0" | ||
pydantic = "^1.10.0" | ||
hishel = "^0.0.19" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pre-commit = "^3.0.0" | ||
pre-commit-hooks = "^4.5.0" | ||
ruff = "^0.1.9" | ||
codespell = "^2.0.0" | ||
pytest = "^7.2.0" | ||
pytest-pretty = "^1.2.0" | ||
pytest-asyncio = "^0.21.1" | ||
pytest-httpx = "^0.28.0" | ||
|
||
[tool.ruff] | ||
select = [ | ||
# Ruff specific | ||
"RUF", | ||
# Pylint | ||
"PL", | ||
# Pyflakes | ||
"F", | ||
# pep8-naming | ||
"N", | ||
# Pycodestyle | ||
"E", | ||
"W", | ||
"D", | ||
# flake8-2020 | ||
"YTT", | ||
# flake8-async | ||
"ASYNC", | ||
# flake8-bugbear | ||
"B", | ||
# flake8-unused-arguments | ||
"ARG", | ||
# flake8-commas | ||
"COM", | ||
# Isort | ||
"I" | ||
] | ||
extend-ignore = ["PLR2004", "D203", "D213", "COM812"] | ||
line-length = 99 | ||
fix = true | ||
|
||
[tool.poetry-dynamic-versioning] | ||
enable = true | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] | ||
build-backend = "poetry_dynamic_versioning.backend" | ||
[tool.poetry] | ||
name = "mytoyota" | ||
description = "Python client for Toyota Connected Services." | ||
authors = ["Simon Grud Hansen <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
version = "0.0.0" | ||
packages = [ | ||
{include = "mytoyota"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
keywords = [ | ||
"Toyota", | ||
"Car", | ||
"MYT", | ||
] | ||
homepage = "https://github.com/DurgNomis-drol/mytoyota" | ||
repository = "https://github.com/DurgNomis-drol/mytoyota" | ||
|
||
[tool.poetry.urls] | ||
"Bug Tracker" = "https://github.com/DurgNomis-drol/mytoyota/issues" | ||
"Release Notes" = "https://github.com/DurgNomis-drol/mytoyota/releases" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
langcodes = "^3.1" | ||
httpx = ">=0.18.1" | ||
arrow = "^1.1" | ||
importlib-metadata = "^7.0.1" | ||
pyjwt = "^2.8.0" | ||
pydantic = "^2.10.5" | ||
hishel = "^0.0.19" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pre-commit = "^3.0.0" | ||
pre-commit-hooks = "^4.5.0" | ||
ruff = "^0.1.9" | ||
codespell = "^2.0.0" | ||
pytest = "^7.2.0" | ||
pytest-pretty = "^1.2.0" | ||
pytest-asyncio = "^0.21.1" | ||
pytest-httpx = "^0.28.0" | ||
|
||
[tool.ruff] | ||
select = [ | ||
# Ruff specific | ||
"RUF", | ||
# Pylint | ||
"PL", | ||
# Pyflakes | ||
"F", | ||
# pep8-naming | ||
"N", | ||
# Pycodestyle | ||
"E", | ||
"W", | ||
"D", | ||
# flake8-2020 | ||
"YTT", | ||
# flake8-async | ||
"ASYNC", | ||
# flake8-bugbear | ||
"B", | ||
# flake8-unused-arguments | ||
"ARG", | ||
# flake8-commas | ||
"COM", | ||
# Isort | ||
"I" | ||
] | ||
extend-ignore = ["PLR2004", "D203", "D213", "COM812"] | ||
line-length = 99 | ||
fix = true | ||
|
||
[tool.poetry-dynamic-versioning] | ||
enable = true | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] | ||
build-backend = "poetry_dynamic_versioning.backend" |