wolfi-dev / os

Main package repository for production Wolfi images
Other
829 stars 261 forks source link

FTBFS: py3-jupyterhub-kubespawner #26086

Closed imjasonh closed 1 month ago

imjasonh commented 3 months ago
INFO * Installing packages in isolated environment:
INFO   - hatchling
INFO * Getting build dependencies for wheel...
INFO * Building wheel...
WARN Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in <module>
    main()
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 357, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
WARN                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 271, in build_wheel
WARN     return _build_backend().build_wheel(
WARN            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel
WARN     return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
WARN                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 155, in build
WARN     artifact = version_api[version](directory, **build_data)
WARN                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/builders/wheel.py", line 475, in build_standard
WARN     for included_file in self.recurse_included_files():
WARN                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 176, in recurse_included_files
WARN     yield from self.recurse_selected_project_files()
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 180, in recurse_selected_project_files
WARN     if self.config.only_include:
WARN        ^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/builders/config.py", line 806, in only_include
WARN     only_include = only_include_config.get('only-include', self.default_only_include()) or self.packages
WARN                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/builders/wheel.py", line 260, in default_only_include
WARN     return self.default_file_selection_options.only_include
WARN            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WARN   File "/usr/lib/python3.12/functools.py", line 993, in __get__
WARN     val = self.func(instance)
WARN           ^^^^^^^^^^^^^^^^^^^
WARN   File "/tmp/build-env-g20yjaan/lib/python3.12/site-packages/hatchling/builders/wheel.py", line 248, in default_file_selection_options
WARN     raise ValueError(message)
WARN ValueError: Unable to determine which files to ship inside the wheel using the following heuristics: https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection

WARN The most likely cause of this is that there is no directory that matches the name of your project (jupyterhub_kubespawner).
WARN
WARN At least one file selection option must be defined in the `tool.hatch.build.targets.wheel` table, see: https://hatch.pypa.io/latest/config/build/
WARN
WARN As an example, if you intend to ship a directory named `foo` that resides within a `src` directory located at the root of your project, you can define the following:
WARN
WARN [tool.hatch.build.targets.wheel]
WARN packages = ["src/foo"]
INFO
INFO ERROR Backend subprocess exited when trying to invoke build_wheel
ERRO ERROR: failed to build package. the build environment has been preserved:
INFO   workspace dir: /tmp/melange-workspace-44079447
INFO   guest dir: /tmp/melange-guest-476707566
ERRO failed to build package: unable to run package py3-jupyterhub-kubespawner pipeline: unable to run pipeline: unable to run pipeline: exit status 1

https://cloudlogging.app.goo.gl/aPF7RXfSeg8P7z9DA

philroche commented 1 month ago

Updates in https://github.com/wolfi-dev/os/pull/29890 resolves this build issue.