File tree 6 files changed +18
-6
lines changed 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 =
87
87
wheel
88
88
jaraco.path>=3.2.0
89
89
jaraco.envs>=2.2
90
- build[virtualenv]
90
+ build[virtualenv]>=1.0.3
91
91
filelock>=3.4.0
92
- packaging
92
+ packaging>=23.1 # TODO: update once packaging 23.2 is available
93
93
94
94
docs =
95
95
# 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 13
13
14
14
import pytest
15
15
from 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
17
19
18
20
import setuptools # noqa ensure monkey patch to metadata
19
21
from setuptools .dist import Distribution
Original file line number Diff line number Diff line change 5
5
6
6
import pytest
7
7
8
- from packaging .metadata import Metadata
8
+ # TODO: replace with `from packaging.metadata import Metadata` in future versions:
9
+ from ._packaging_compat import Metadata
9
10
10
11
from setuptools import sic , _reqs
11
12
from setuptools .dist import Distribution
Original file line number Diff line number Diff line change 1
1
[testenv]
2
2
deps =
3
3
# 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
6
4
packaging @ git+https://github.com/pypa/packaging@7e68d82
7
5
# ^-- use dev version while we wait for the new release
8
6
setenv =
You can’t perform that action at this time.
0 commit comments