File tree Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Expand file tree Collapse file tree 6 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1+ Update test dependency on ``build==1.0.3 `` and
2+ add fallback for ``packaging==23.1 `` (regarding ``Metadata `` validation).
Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ testing-integration =
8787 wheel
8888 jaraco.path>=3.2.0
8989 jaraco.envs>=2.2
90- build[virtualenv]
90+ build[virtualenv]>=1.0.3
9191 filelock>=3.4.0
92- packaging
92+ packaging>=23.1 # TODO: update once packaging 23.2 is available
9393
9494docs =
9595 # upstream
Original file line number Diff line number Diff line change 1+ from packaging import __version__ as packaging_version
2+
3+ if tuple (packaging_version .split ("." )) >= ("23" , "2" ):
4+ from packaging .metadata import Metadata
5+ else :
6+ # Just pretend it exists while waiting for release...
7+ from unittest .mock import MagicMock
8+
9+ Metadata = MagicMock ()
Original file line number Diff line number Diff line change 1313
1414import pytest
1515from ini2toml .api import Translator
16- from packaging .metadata import Metadata
16+
17+ # TODO: replace with `from packaging.metadata import Metadata` in future versions
18+ from .._packaging_compat import Metadata
1719
1820import setuptools # noqa ensure monkey patch to metadata
1921from setuptools .dist import Distribution
Original file line number Diff line number Diff line change 55
66import pytest
77
8- from packaging .metadata import Metadata
8+ # TODO: replace with `from packaging.metadata import Metadata` in future versions:
9+ from ._packaging_compat import Metadata
910
1011from setuptools import sic , _reqs
1112from setuptools .dist import Distribution
Original file line number Diff line number Diff line change 11[testenv]
22deps =
33 # Ideally all the dependencies should be set as "extras"
4- build[virtualenv] @ git+https://github.com/pypa/build@59c1f87
5- # ^-- pypa/build#630, use dev version while we wait for the new release
64 packaging @ git+https://github.com/pypa/packaging@7e68d82
75 # ^-- use dev version while we wait for the new release
86setenv =
You can’t perform that action at this time.
0 commit comments