dev-python/hatchling versions 1.9.0 and 1.10.0 fail to build on a system with dev-python/pathspec-0.9.0-r1 (latest stable on AMD64): (...) * Building the wheel for hatch-hatchling-v1.10.0/backend via hatchling.ouroboros gpep517 build-wheel --backend hatchling.ouroboros --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend-python3_10/wheel 2022-09-19 15:52:03,094 gpep517 INFO Building wheel via backend hatchling.ouroboros Traceback (most recent call last): File "/usr/lib/python-exec/python3.10/gpep517", line 4, in <module> sys.exit(main()) File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 322, in main return func(args) File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 122, in build_wheel print(build_wheel_impl(args, args.wheel_dir), file=out) File "/usr/lib/python3.10/site-packages/gpep517/__main__.py", line 105, in build_wheel_impl wheel_name = backend.build_wheel(str(wheel_dir), args.config_json) File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/ouroboros.py", line 71, in build_wheel return os.path.basename(next(builder.build(wheel_directory, ['standard']))) File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/builders/plugin/interface.py", line 144, in build artifact = version_api[version](directory, **build_data) File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/builders/wheel.py", line 312, in build_standard for included_file in self.recurse_included_files(): File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/builders/plugin/interface.py", line 166, in recurse_included_files yield from self.recurse_explicit_files(self.config.only_include) File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/builders/plugin/interface.py", line 231, in recurse_explicit_files if self.config.include_path(relative_file_path, explicit=True, is_package=is_package): File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/builders/config.py", line 81, in include_path and not self.path_is_excluded(relative_path) File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/builders/config.py", line 93, in path_is_excluded if self.exclude_spec is None: File "/var/tmp/portage/dev-python/hatchling-1.10.0/work/hatch-hatchling-v1.10.0/backend/src/hatchling/builders/config.py", line 188, in exclude_spec self.__exclude_spec = pathspec.GitIgnoreSpec.from_lines(all_exclude_patterns) AttributeError: module 'pathspec' has no attribute 'GitIgnoreSpec' * ERROR: dev-python/hatchling-1.10.0::gentoo failed (compile phase): * Wheel build failed * (...) Adding ~amd64 to dev-python/pathspec (so that version 0.10.1 gets installed) makes it possible to build hatchling. Reproducible: Always
we're sorry about the problem. Upstream's keeping the dependencies in a file with non-standard name, so our usual greps have missed it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd8ea1accb3327187b4884894cd24039fd30658e commit fd8ea1accb3327187b4884894cd24039fd30658e Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-09-20 05:50:37 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-09-20 05:56:36 +0000 dev-python/hatchling: Fix pathspec dep Closes: https://bugs.gentoo.org/871885 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../hatchling/{hatchling-1.10.0.ebuild => hatchling-1.10.0-r1.ebuild} | 2 +- .../hatchling/{hatchling-1.9.0.ebuild => hatchling-1.9.0-r1.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)