Source: python-hatch-requirements-txt Version: 0.4.1-2 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20241228 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules binary > dh binary --with python3 --buildsystem=pybuild > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > dh_auto_build -O--buildsystem=pybuild > I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" > module > I: pybuild base:311: python3.13 -m build --skip-dependency-check > --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13 > * Building wheel... > Successfully built hatch_requirements_txt-0.4.1-py3-none-any.whl > I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with > "installer" module > I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" > module > I: pybuild base:311: python3.12 -m build --skip-dependency-check > --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12 > * Building wheel... > Successfully built hatch_requirements_txt-0.4.1-py3-none-any.whl > I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with > "installer" module > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; > python3.13 -m pytest tests > [1m============================= test session starts > ==============================[0m > platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 > Test session started at 06:46:50 > rootdir: /<<PKGBUILDDIR>> > configfile: tox.ini > plugins: regressions-2.5.0+ds, timeout-2.3.1, cov-5.0.0, typeguard-4.4.1, > datadir-1.4.1+ds > timeout: 300.0s > timeout method: signal > timeout func_only: False > collected 62 items > > tests/test_errors.py > [32m.[0m[32m.[0m[32m.[0m[32m.[0m[33mx[0m[33mx[0m[32m.[0m[32m.[0m[33mx[0m[33mx[0m[33mX[0m[33mX[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[33m > [ 45%][0m > tests/test_metadata.py > [31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[33ms[0m[33ms[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31m > [100%][0m > > =================================== FAILURES > =================================== > [31m[1m____________________ test_build_with_filename[build_wheel] > _____________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_with_filename_build0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_filename(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > filename = "requirements.txt" > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"The 'filename' option in > \[tool.hatch.metadata.hooks.requirements_txt] is deprecated. Please instead > use the list 'files'" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:77: NewMetadataVersion > [31m[1m____________________ test_build_with_filename[build_sdist] > _____________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_with_filename_build1') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_filename(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > filename = "requirements.txt" > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"The 'filename' option in > \[tool.hatch.metadata.hooks.requirements_txt] is deprecated. Please instead > use the list 'files'" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:77: NewMetadataVersion > [31m[1m_______________________ test_build_comments[build_wheel] > _______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_comments_build_whee0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_comments(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > > [tool.hatch.metadata] > allow-direct-references = true > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "Foo", > "bar", > "# fizz", > "baz>1 # this is a comment", > "pip@ > https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:101: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd591e50> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_______________________ test_build_comments[build_sdist] > _______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_comments_build_sdis0') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_comments(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > > [tool.hatch.metadata] > allow-direct-references = true > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "Foo", > "bar", > "# fizz", > "baz>1 # this is a comment", > "pip@ > https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:101: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd591810> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m__________________ test_build_pip_compile_style[build_wheel] > ___________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_pip_compile_style_b0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_pip_compile_style(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "--index http://localhost:3141", > "alembic==1.9.1 \\", > " > --hash=sha256:a9781ed0979a20341c2cbb56bd22bd8db4fc1913f955e705444bd3a97c59fa32 > \\", > " > --hash=sha256:f9f76e41061f5ebe27d4fe92600df9dd612521a7683f904dab328ba02cffa5a2", > "hatch-requirements-txt", > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:125: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd591310> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m__________________ test_build_pip_compile_style[build_sdist] > ___________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_pip_compile_style_b1') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_pip_compile_style(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "--index http://localhost:3141", > "alembic==1.9.1 \\", > " > --hash=sha256:a9781ed0979a20341c2cbb56bd22bd8db4fc1913f955e705444bd3a97c59fa32 > \\", > " > --hash=sha256:f9f76e41061f5ebe27d4fe92600df9dd612521a7683f904dab328ba02cffa5a2", > "hatch-requirements-txt", > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:125: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd590f50> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_____________________ test_build_unspecified[build_wheel] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_unspecified_build_w0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_unspecified(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > # files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"Please explicitly specify 'files' in > \[tool.hatch.metadata.hooks.requirements_txt]. Defaulting to > \['requirements.txt'] is deprecated" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:142: NewMetadataVersion > [31m[1m_____________________ test_build_unspecified[build_sdist] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_unspecified_build_s0') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_unspecified(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > # files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"Please explicitly specify 'files' in > \[tool.hatch.metadata.hooks.requirements_txt]. Defaulting to > \['requirements.txt'] is deprecated" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:142: NewMetadataVersion > [31m[1m______________________ test_build_with_files[build_wheel] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_with_files_build_wh0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_files(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements1.txt", "requirements2.txt"] > """ > (tmp_pathplus / "requirements1.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > (tmp_pathplus / "requirements2.txt").write_lines(["beep", "bop", > "boop"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:157: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd584770> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m______________________ test_build_with_files[build_sdist] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_with_files_build_sd0') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_files(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements1.txt", "requirements2.txt"] > """ > (tmp_pathplus / "requirements1.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > (tmp_pathplus / "requirements2.txt").write_lines(["beep", "bop", > "boop"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:157: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd584050> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m________________ test_build_files_in_subdirectory[build_wheel] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_files_in_subdirecto0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_files_in_subdirectory(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements/dev.txt", "requirements/docs.txt", > "requirements/tests.txt"] > """ > reqs_subdir = tmp_pathplus / "requirements" > reqs_subdir.maybe_make() > (reqs_subdir / "dev.txt").write_lines(["pre-commit"]) > (reqs_subdir / "docs.txt").write_lines(["mkdocs"]) > (reqs_subdir / "tests.txt").write_lines(["pytest"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:173: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd9cd370> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m________________ test_build_files_in_subdirectory[build_sdist] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_build_files_in_subdirecto1') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_files_in_subdirectory(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements/dev.txt", "requirements/docs.txt", > "requirements/tests.txt"] > """ > reqs_subdir = tmp_pathplus / "requirements" > reqs_subdir.maybe_make() > (reqs_subdir / "dev.txt").write_lines(["pre-commit"]) > (reqs_subdir / "docs.txt").write_lines(["mkdocs"]) > (reqs_subdir / "tests.txt").write_lines(["pytest"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:173: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd7c5b50> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_______________ test_not_dynamic_no_explicit_files[build_wheel] > ________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_not_dynamic_no_explicit_f0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_no_explicit_files(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace('dynamic = > ["dependencies"]', '') > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:209: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd465370> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_______________ test_not_dynamic_no_explicit_files[build_sdist] > ________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_not_dynamic_no_explicit_f1') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_no_explicit_files(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace('dynamic = > ["dependencies"]', '') > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:209: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd59e690> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m______________ test_not_dynamic_project_dependencies[build_wheel] > ______________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_not_dynamic_project_depen0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_project_dependencies(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', 'dependencies = ["foo", > "bar", "baz>1"]' > ) > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:227: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd59c380> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m______________ test_not_dynamic_project_dependencies[build_sdist] > ______________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_not_dynamic_project_depen1') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_project_dependencies(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', 'dependencies = ["foo", > "bar", "baz>1"]' > ) > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:227: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd59ecf0> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_________________ test_using_project_dependencies[build_wheel] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_using_project_dependencie0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_dependencies(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', """ > dynamic = [] > dependencies = ["foo", "bar"] > """ > ) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:356: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd577b50> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_________________ test_using_project_dependencies[build_sdist] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_using_project_dependencie1') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_dependencies(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', """ > dynamic = [] > dependencies = ["foo", "bar"] > """ > ) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:356: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd577950> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m____________ test_using_project_deps_and_optional_deps[build_wheel] > ____________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_using_project_deps_and_op0') > build_func = <function build_wheel at 0x7f85bd7f6ca0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_deps_and_optional_deps(tmp_pathplus: PathPlus, > build_func: Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', > """ > dynamic = ["optional-dependencies"] > dependencies = ["foo", "bar"] > """ > ) + """ > [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] > crypto = ["requirements-crypto.txt"] > """ > (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", > "cryptography"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:374: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f85bd610350> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m____________ test_using_project_deps_and_optional_deps[build_sdist] > ____________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-47/test_using_project_deps_and_op1') > build_func = <function build_sdist at 0x7f85bd7f6b60> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_deps_and_optional_deps(tmp_pathplus: PathPlus, > build_func: Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', > """ > dynamic = ["optional-dependencies"] > dependencies = ["foo", "bar"] > """ > ) + """ > [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] > crypto = ["requirements-crypto.txt"] > """ > (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", > "cryptography"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:374: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f85bd577050> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > ============================= slowest 25 durations > ============================= > 0.02s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_missing_requirements_txt[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_not_dynamic_but_files_defined[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_missing_invalid_requirements[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_with_filename[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_with_files[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_unspecified[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_no_files_or_filename_deprecation[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_comments[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_files_in_subdirectory[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_pip_compile_style[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_filename_deprecation[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_not_dynamic_but_filename_defined[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_with_files[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_files_in_subdirectory[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_with_filename[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_unspecified[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_comments[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_build_pip_compile_style[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_not_dynamic_but_files_defined[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_filename_deprecation[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_not_dynamic_project_dependencies[build_wheel] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_errors.py::test_no_files_or_filename_deprecation[build_sdist] > 0.01s call > .pybuild/cpython3_3.13/build/tests/test_metadata.py::test_using_project_dependencies[build_wheel] > [36m[1m=========================== short test summary info > ============================[0m > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_filename[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_filename[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_comments[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_comments[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_pip_compile_style[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_pip_compile_style[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_unspecified[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_unspecified[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_files[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_files[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_files_in_subdirectory[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_files_in_subdirectory[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_no_explicit_files[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_no_explicit_files[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_project_dependencies[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_project_dependencies[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_dependencies[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_dependencies[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_deps_and_optional_deps[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_deps_and_optional_deps[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31m======== [31m[1m20 failed[0m, [32m34 passed[0m, [33m2 skipped[0m, > [33m4 xfailed[0m, [33m2 xpassed[0m[31m in 0.78s[0m[31m ========[0m > E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests > I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; > python3.12 -m pytest tests > [1m============================= test session starts > ==============================[0m > platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 > Test session started at 06:46:51 > rootdir: /<<PKGBUILDDIR>> > configfile: tox.ini > plugins: regressions-2.5.0+ds, timeout-2.3.1, cov-5.0.0, typeguard-4.4.1, > datadir-1.4.1+ds > timeout: 300.0s > timeout method: signal > timeout func_only: False > collected 62 items > > tests/test_errors.py > [32m.[0m[32m.[0m[32m.[0m[32m.[0m[33mx[0m[33mx[0m[32m.[0m[32m.[0m[33mx[0m[33mx[0m[33mX[0m[33mX[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[33m > [ 45%][0m > tests/test_metadata.py > [31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[33ms[0m[33ms[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[31mF[0m[31mF[0m[31mF[0m[31mF[0m[31m > [100%][0m > > =================================== FAILURES > =================================== > [31m[1m____________________ test_build_with_filename[build_wheel] > _____________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_with_filename_build0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_filename(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > filename = "requirements.txt" > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"The 'filename' option in > \[tool.hatch.metadata.hooks.requirements_txt] is deprecated. Please instead > use the list 'files'" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:77: NewMetadataVersion > [31m[1m____________________ test_build_with_filename[build_sdist] > _____________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_with_filename_build1') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_filename(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > filename = "requirements.txt" > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"The 'filename' option in > \[tool.hatch.metadata.hooks.requirements_txt] is deprecated. Please instead > use the list 'files'" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:77: NewMetadataVersion > [31m[1m_______________________ test_build_comments[build_wheel] > _______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_comments_build_whee0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_comments(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > > [tool.hatch.metadata] > allow-direct-references = true > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "Foo", > "bar", > "# fizz", > "baz>1 # this is a comment", > "pip@ > https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:101: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a129f88f0> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_______________________ test_build_comments[build_sdist] > _______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_comments_build_sdis0') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_comments(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > > [tool.hatch.metadata] > allow-direct-references = true > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "Foo", > "bar", > "# fizz", > "baz>1 # this is a comment", > "pip@ > https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686" > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:101: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a12b69d00> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m__________________ test_build_pip_compile_style[build_wheel] > ___________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_pip_compile_style_b0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_pip_compile_style(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "--index http://localhost:3141", > "alembic==1.9.1 \\", > " > --hash=sha256:a9781ed0979a20341c2cbb56bd22bd8db4fc1913f955e705444bd3a97c59fa32 > \\", > " > --hash=sha256:f9f76e41061f5ebe27d4fe92600df9dd612521a7683f904dab328ba02cffa5a2", > "hatch-requirements-txt", > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:125: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a12b69400> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m__________________ test_build_pip_compile_style[build_sdist] > ___________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_pip_compile_style_b1') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_pip_compile_style(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines([ > "--index http://localhost:3141", > "alembic==1.9.1 \\", > " > --hash=sha256:a9781ed0979a20341c2cbb56bd22bd8db4fc1913f955e705444bd3a97c59fa32 > \\", > " > --hash=sha256:f9f76e41061f5ebe27d4fe92600df9dd612521a7683f904dab328ba02cffa5a2", > "hatch-requirements-txt", > ]) > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:125: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a12b58560> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_____________________ test_build_unspecified[build_wheel] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_unspecified_build_w0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_unspecified(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > # files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"Please explicitly specify 'files' in > \[tool.hatch.metadata.hooks.requirements_txt]. Defaulting to > \['requirements.txt'] is deprecated" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:142: NewMetadataVersion > [31m[1m_____________________ test_build_unspecified[build_sdist] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_unspecified_build_s0') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_unspecified(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > # files = ["requirements.txt"] > """ > (tmp_pathplus / "requirements.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > > deprecation_warning_msg = r"Please explicitly specify 'files' in > \[tool.hatch.metadata.hooks.requirements_txt]. Defaulting to > \['requirements.txt'] is deprecated" > > with pytest.warns(DeprecationWarning, match=deprecation_warning_msg): > [1m[31mE pkginfo.distribution.NewMetadataVersion: New metadata version > (2.4) higher than latest supported version: parsing as 2.3[0m > > [1m[31mtests/test_metadata.py[0m:142: NewMetadataVersion > [31m[1m______________________ test_build_with_files[build_wheel] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_with_files_build_wh0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_files(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements1.txt", "requirements2.txt"] > """ > (tmp_pathplus / "requirements1.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > (tmp_pathplus / "requirements2.txt").write_lines(["beep", "bop", > "boop"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:157: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a12b58860> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m______________________ test_build_with_files[build_sdist] > ______________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_with_files_build_sd0') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_with_files(tmp_pathplus: PathPlus, build_func: Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements1.txt", "requirements2.txt"] > """ > (tmp_pathplus / "requirements1.txt").write_lines(["Foo", "bar", "# > fizz", "baz>1"]) > (tmp_pathplus / "requirements2.txt").write_lines(["beep", "bop", > "boop"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:157: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a12b6b620> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m________________ test_build_files_in_subdirectory[build_wheel] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_files_in_subdirecto0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_files_in_subdirectory(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements/dev.txt", "requirements/docs.txt", > "requirements/tests.txt"] > """ > reqs_subdir = tmp_pathplus / "requirements" > reqs_subdir.maybe_make() > (reqs_subdir / "dev.txt").write_lines(["pre-commit"]) > (reqs_subdir / "docs.txt").write_lines(["mkdocs"]) > (reqs_subdir / "tests.txt").write_lines(["pytest"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:173: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a12b6a090> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m________________ test_build_files_in_subdirectory[build_sdist] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_build_files_in_subdirecto1') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_build_files_in_subdirectory(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header + """ > [tool.hatch.metadata.hooks.requirements_txt] > files = ["requirements/dev.txt", "requirements/docs.txt", > "requirements/tests.txt"] > """ > reqs_subdir = tmp_pathplus / "requirements" > reqs_subdir.maybe_make() > (reqs_subdir / "dev.txt").write_lines(["pre-commit"]) > (reqs_subdir / "docs.txt").write_lines(["mkdocs"]) > (reqs_subdir / "tests.txt").write_lines(["pytest"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:173: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a129f8200> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_______________ test_not_dynamic_no_explicit_files[build_wheel] > ________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_not_dynamic_no_explicit_f0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_no_explicit_files(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace('dynamic = > ["dependencies"]', '') > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:209: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a12b68bc0> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_______________ test_not_dynamic_no_explicit_files[build_sdist] > ________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_not_dynamic_no_explicit_f1') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_no_explicit_files(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace('dynamic = > ["dependencies"]', '') > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:209: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a12b69cd0> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m______________ test_not_dynamic_project_dependencies[build_wheel] > ______________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_not_dynamic_project_depen0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_project_dependencies(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', 'dependencies = ["foo", > "bar", "baz>1"]' > ) > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:227: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a12b5bb90> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m______________ test_not_dynamic_project_dependencies[build_sdist] > ______________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_not_dynamic_project_depen1') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_not_dynamic_project_dependencies(tmp_pathplus: PathPlus, > build_func: Callable): > > dist_dir = tmp_pathplus / "dist" > dist_dir.maybe_make() > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', 'dependencies = ["foo", > "bar", "baz>1"]' > ) > (tmp_pathplus / "README.md").touch() > (tmp_pathplus / "LICENSE").touch() > (tmp_pathplus / "demo").maybe_make() > (tmp_pathplus / "demo" / "__init__.py").touch() > > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:227: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a12aeea20> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_________________ test_using_project_dependencies[build_wheel] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_using_project_dependencie0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_dependencies(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', """ > dynamic = [] > dependencies = ["foo", "bar"] > """ > ) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:356: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a129f8fe0> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m_________________ test_using_project_dependencies[build_sdist] > _________________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_using_project_dependencie1') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_dependencies(tmp_pathplus: PathPlus, build_func: > Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', """ > dynamic = [] > dependencies = ["foo", "bar"] > """ > ) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:356: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a12b59310> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m____________ test_using_project_deps_and_optional_deps[build_wheel] > ____________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_using_project_deps_and_op0') > build_func = <function build_wheel at 0x7f9a12e0b2e0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_deps_and_optional_deps(tmp_pathplus: PathPlus, > build_func: Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', > """ > dynamic = ["optional-dependencies"] > dependencies = ["foo", "bar"] > """ > ) + """ > [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] > crypto = ["requirements-crypto.txt"] > """ > (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", > "cryptography"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:374: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:59: in get_pkginfo > info = pkginfo.Wheel(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/wheel.py[0m:15: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.wheel.Wheel object at 0x7f9a12fd8860> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > [31m[1m____________ test_using_project_deps_and_optional_deps[build_sdist] > ____________[0m > > tmp_pathplus = > PosixPathPlus('/tmp/pytest-of-user42/pytest-48/test_using_project_deps_and_op1') > build_func = <function build_sdist at 0x7f9a12e0b1a0> > > @pytest.mark.parametrize("build_func", [build_wheel, build_sdist]) > def test_using_project_deps_and_optional_deps(tmp_pathplus: PathPlus, > build_func: Callable): > > pyproject_toml = pyproject_toml_header.replace( > 'dynamic = ["dependencies"]', > """ > dynamic = ["optional-dependencies"] > dependencies = ["foo", "bar"] > """ > ) + """ > [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] > crypto = ["requirements-crypto.txt"] > """ > (tmp_pathplus / "requirements-crypto.txt").write_lines(["PyJWT", > "cryptography"]) > > info = get_pkginfo(tmp_pathplus, build_func, pyproject_toml) > > [1m[31mtests/test_metadata.py[0m:374: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > [1m[31mtests/test_metadata.py[0m:61: in get_pkginfo > info = pkginfo.SDist(dist_file) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/sdist.py[0m:45: in __init__ > self.extractMetadata() > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:160: in > extractMetadata > self.parse(data) > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:191: in > parse > for header_name, attr_name, multiple in self._getHeaderAttrs(): > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ > > self = <pkginfo.sdist.SDist object at 0x7f9a12a1c140> > > def _getHeaderAttrs(self): > found = HEADER_ATTRS.get(self.metadata_version) > > if found is None: > try: > v_tuple = _version_tuple(self.metadata_version) > except ValueError: > warnings.warn(UnknownMetadataVersion(self.metadata_version)) > return () > if v_tuple > MAX_METADATA_VERSION: > > warnings.warn(NewMetadataVersion(self.metadata_version)) > [1m[31mE pkginfo.distribution.NewMetadataVersion: New > metadata version (2.4) higher than latest supported version: parsing as > 2.3[0m > > [1m[31m/usr/lib/python3/dist-packages/pkginfo/distribution.py[0m:175: > NewMetadataVersion > ============================= slowest 25 durations > ============================= > 0.02s call > .pybuild/cpython3_3.12/build/tests/test_errors.py::test_missing_requirements_txt[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_with_files[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_errors.py::test_not_dynamic_but_files_defined[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_unspecified[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_comments[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_with_filename[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_errors.py::test_no_files_or_filename_deprecation[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_files_in_subdirectory[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_unspecified[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_errors.py::test_filename_deprecation[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_pip_compile_style[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_errors.py::test_not_dynamic_but_filename_defined[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_comments[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_with_files[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_with_filename[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_files_in_subdirectory[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_parse_requirements[iter(a)] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_build_pip_compile_style[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_using_project_deps_and_optional_deps[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_using_project_dependencies[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_not_dynamic_project_dependencies[build_wheel] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_not_dynamic_no_explicit_files[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_errors.py::test_filename_deprecation[build_sdist] > 0.01s call > .pybuild/cpython3_3.12/build/tests/test_metadata.py::test_not_dynamic_no_explicit_files[build_wheel] > [36m[1m=========================== short test summary info > ============================[0m > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_filename[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_filename[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_comments[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_comments[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_pip_compile_style[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_pip_compile_style[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_unspecified[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_unspecified[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_files[build_wheel][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_with_files[build_sdist][0m - > pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_files_in_subdirectory[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_build_files_in_subdirectory[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_no_explicit_files[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_no_explicit_files[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_project_dependencies[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_not_dynamic_project_dependencies[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_dependencies[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_dependencies[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_deps_and_optional_deps[build_wheel][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31mFAILED[0m > tests/test_metadata.py::[1mtest_using_project_deps_and_optional_deps[build_sdist][0m > - pkginfo.distribution.NewMetadataVersion: New metadata version (2.4) higher > ... > [31m======== [31m[1m20 failed[0m, [32m34 passed[0m, [33m2 skipped[0m, > [33m4 xfailed[0m, [33m2 xpassed[0m[31m in 0.91s[0m[31m ========[0m > E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest tests > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 > 3.12" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2024/12/28/python-hatch-requirements-txt_0.4.1-2_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241228;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241228&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.