Skip to content

deps: rm pydantic uppper version bound #725

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies = [
"marshmallow>=3.15.0", # TODO: To be removed
"packaging>=21.0",
"psutil~=6.1.0",
"pydantic>=2.6.0,<2.10.0",
"pydantic>=2.6.0",
"requests", # TODO: To be replaced by httpx or aiohttp
"httpx",
"tenacity",
Expand Down
4 changes: 2 additions & 2 deletions safety/safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from packaging.specifiers import SpecifierSet
from packaging.utils import canonicalize_name
from packaging.version import parse as parse_version, Version
from pydantic.json import pydantic_encoder
from pydantic_core import to_jsonable_python
from filelock import FileLock

from safety_schemas.models import Ecosystem, FileType
Expand Down Expand Up @@ -174,7 +174,7 @@ def fetch_database_url(

telemetry_data = {
'telemetry': json.dumps(build_telemetry_data(telemetry=telemetry),
default=pydantic_encoder)}
default=to_jsonable_python)}

try:
r = session.get(url=url, timeout=REQUEST_TIMEOUT,
Expand Down