Skip to content

Commit

Permalink
update dependencies (#9478)
Browse files Browse the repository at this point in the history
Co-authored-by: Randy Döring <[email protected]>
  • Loading branch information
dimbleby and radoering committed Jun 8, 2024
1 parent 2631284 commit d59c6e4
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 478 deletions.
956 changes: 493 additions & 463 deletions poetry.lock

Large diffs are not rendered by default.

26 changes: 15 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ poetry-plugin-export = "^1.8.0"
build = "^1.2.1"
cachecontrol = { version = "^0.14.0", extras = ["filecache"] }
cleo = "^2.1.0"
dulwich = "^0.21.2"
dulwich = "^0.22.1"
fastjsonschema = "^2.18.0"
importlib-metadata = { version = ">=4.4", python = "<3.10" }
installer = "^0.7.0"
keyring = "^24.3.1"
keyring = "^25.1.0"
# packaging uses calver, so version is unclamped
packaging = ">=24.0"
pexpect = "^4.7.0"
Expand All @@ -59,17 +59,21 @@ xattr = { version = "^1.0.0", markers = "sys_platform == 'darwin'" }

[tool.poetry.group.dev.dependencies]
pre-commit = ">=2.10"
# add setuptools for PyCharm
# see https://youtrack.jetbrains.com/issue/PY-48909
# and https://github.com/JetBrains/intellij-community/commit/3f37786ec0bf5066e4527690d1068b5a00680ea3
setuptools = { version = ">=60", python = "<3.10" }

[tool.poetry.group.test.dependencies]
coverage = ">=7.2.0"
deepdiff = "^6.3"
httpretty = "^1.1"
jaraco-classes = "^3.3.1"
pytest = "^8.0"
pytest-cov = "^4.0"
pytest-mock = "^3.9"
pytest-randomly = "^3.12"
pytest-xdist = { version = "^3.1", extras = ["psutil"] }
deepdiff = ">=6.3"
httpretty = ">=1.1"
jaraco-classes = ">=3.3.1"
pytest = ">=8.0"
pytest-cov = ">=4.0"
pytest-mock = ">=3.9"
pytest-randomly = ">=3.12"
pytest-xdist = { version = ">=3.1", extras = ["psutil"] }

[tool.poetry.group.typing.dependencies]
mypy = ">=1.8.0"
Expand Down Expand Up @@ -167,9 +171,9 @@ exclude = [
# python versions.
[[tool.mypy.overrides]]
module = [
'poetry.plugins.plugin_manager',
'poetry.repositories.installed_repository',
'tests.console.commands.self.test_show_plugins',
'tests.repositories.test_installed_repository',
'tests.helpers',
]
warn_unused_ignores = false
Expand Down
2 changes: 1 addition & 1 deletion src/poetry/plugins/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def activate(self, *args: Any, **kwargs: Any) -> None:
def _load_plugin_entry_point(self, ep: metadata.EntryPoint) -> None:
logger.debug("Loading the %s plugin", ep.name)

plugin = ep.load() # type: ignore[no-untyped-call]
plugin = ep.load()

if not issubclass(plugin, (Plugin, ApplicationPlugin)):
raise ValueError(
Expand Down
2 changes: 1 addition & 1 deletion src/poetry/utils/isolated_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def isolated_builder(
pool: RepositoryPool | None = None,
) -> Iterator[ProjectBuilder]:
from build import ProjectBuilder
from pyproject_hooks import quiet_subprocess_runner # type: ignore[import-untyped]
from pyproject_hooks import quiet_subprocess_runner

from poetry.factory import Factory

Expand Down
3 changes: 2 additions & 1 deletion tests/inspection/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from build import BuildBackendException
from build import ProjectBuilder
from packaging.metadata import parse_email
from pkginfo.distribution import NewMetadataVersion # type: ignore[attr-defined]

from poetry.inspection.info import PackageInfo
from poetry.inspection.info import PackageInfoError
Expand Down Expand Up @@ -212,7 +213,7 @@ def test_info_from_wheel_metadata_version_unknown(
/ "demo_metadata_version_unknown-0.1.0-py2.py3-none-any.whl"
)

with pytest.raises(PackageInfoError) as e:
with pytest.warns(NewMetadataVersion), pytest.raises(PackageInfoError) as e:
PackageInfo.from_wheel(path)

assert "Unknown metadata version: 999.3" in str(e.value)
Expand Down
2 changes: 1 addition & 1 deletion tests/repositories/test_installed_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def installed_results(
metadata.PathDistribution(src_dir / "pendulum" / "pendulum.egg-info"),
metadata.PathDistribution(
zipfile.Path( # type: ignore[arg-type]
str(site_purelib / "foo-0.1.0-py3.8.egg"),
site_purelib / "foo-0.1.0-py3.8.egg",
"EGG-INFO",
)
),
Expand Down

0 comments on commit d59c6e4

Please sign in to comment.