Skip to content

Commit

Permalink
chore: update dependencies and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Jan 4, 2025
1 parent d9f1914 commit d22a6da
Show file tree
Hide file tree
Showing 8 changed files with 772 additions and 692 deletions.
1,441 changes: 756 additions & 685 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Changelog = "https://python-poetry.org/history/"
[tool.poetry.dependencies]
python = "^3.9"

poetry-core = { git = "https://github.com/python-poetry/poetry-core.git", branch = "main" }
poetry-core = "2.0.0"
build = "^1.2.1"
cachecontrol = { version = "^0.14.0", extras = ["filecache"] }
cleo = "^2.1.0"
Expand Down Expand Up @@ -72,6 +72,7 @@ pytest-cov = ">=4.0"
pytest-mock = ">=3.9"
pytest-randomly = ">=3.12"
pytest-xdist = { version = ">=3.1", extras = ["psutil"] }
urllib3 = "<2.3" # see https://github.com/gabrielfalcao/HTTPretty/issues/484

[tool.poetry.group.typing.dependencies]
mypy = ">=1.8.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/console/commands/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import pytest

from deepdiff import DeepDiff
from deepdiff.diff import DeepDiff
from poetry.core.pyproject.exceptions import PyProjectError

from poetry.config.config_source import ConfigSource
Expand Down
8 changes: 7 additions & 1 deletion tests/inspection/test_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import contextlib
import shutil
import uuid

Expand Down Expand Up @@ -210,7 +211,12 @@ def test_info_from_wheel_metadata_versions(
fixture_dir("distributions")
/ f"demo_metadata_version_{version}-0.1.0-py2.py3-none-any.whl"
)
info = PackageInfo.from_wheel(path)
with (
pytest.warns(NewMetadataVersion)
if version == "299"
else contextlib.nullcontext()
):
info = PackageInfo.from_wheel(path)
demo_check_info(info)
assert info._source_type == "file"
assert info._source_url == path.resolve().as_posix()
Expand Down
2 changes: 1 addition & 1 deletion tests/masonry/builders/test_editable_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pytest

from cleo.io.null_io import NullIO
from deepdiff import DeepDiff
from deepdiff.diff import DeepDiff
from poetry.core.constraints.version import Version
from poetry.core.masonry.metadata import Metadata
from poetry.core.packages.package import Package
Expand Down
2 changes: 1 addition & 1 deletion tests/test_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest

from cleo.io.buffered_io import BufferedIO
from deepdiff import DeepDiff
from deepdiff.diff import DeepDiff
from packaging.utils import canonicalize_name
from poetry.core.constraints.version import Version
from poetry.core.constraints.version import parse_constraint
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_dependency_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pytest

from deepdiff import DeepDiff
from deepdiff.diff import DeepDiff

from poetry.inspection.info import PackageInfo
from poetry.utils.dependency_specification import RequirementsParser
Expand Down
4 changes: 3 additions & 1 deletion tests/utils/test_password_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import contextlib
import logging
import os

Expand Down Expand Up @@ -54,7 +55,8 @@ def test_get_http_auth(
with_simple_keyring: None,
dummy_keyring: DummyBackend,
) -> None:
dummy_keyring.set_password("poetry-repository-foo", username, password)
with contextlib.nullcontext() if username else pytest.warns(DeprecationWarning):
dummy_keyring.set_password("poetry-repository-foo", username, password)
config.auth_config_source.add_property("http-basic.foo", {"username": username})
manager = PasswordManager(config)

Expand Down

0 comments on commit d22a6da

Please sign in to comment.