Skip to content

Conversation

@ShahanaFarooqui
Copy link
Collaborator

Note: Some plugins, such as mkdocs-macros-plugin, can retrieve Git details, but they offer limited flexibility in terms of information placement, styling, and formatting. A better approach was to create a custom hook and override the header.

@ShahanaFarooqui
Copy link
Collaborator Author

@cdecker The test run 57096784776 failed with error:

DEBUG /tmp/setup-uv-cache/builds-v0/.tmpVrViWa/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
DEBUG !!
DEBUG 
DEBUG         ********************************************************************************
DEBUG         Please consider removing the following classifiers in favor of a SPDX license expression:
DEBUG 
DEBUG         License :: OSI Approved :: MIT License
DEBUG 
DEBUG         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
DEBUG         ********************************************************************************
DEBUG 
DEBUG !!
DEBUG   self._finalize_license_expression()
DEBUG Traceback (most recent call last):
DEBUG   File "<string>", line 11, in <module>
DEBUG   File "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/build.py", line 83, in build_editable
DEBUG     return os.path.basename(next(builder.build(directory=wheel_directory, versions=["editable"])))
DEBUG                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEBUG   File "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 157, in build
DEBUG     artifact = version_api[version](directory, **build_data)
DEBUG                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEBUG   File "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/wheel.py", line 522, in build_editable
DEBUG     return self.build_editable_detection(directory, **build_data)
DEBUG            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
DEBUG   File "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/wheel.py", line 583, in build_editable_detection
DEBUG     for included_file in self.recurse_forced_files(self.get_forced_inclusion_map(build_data)):
DEBUG   File "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 239, in recurse_forced_files
DEBUG     raise FileNotFoundError(msg)
DEBUG FileNotFoundError: Forced include not found: /home/runner/work/greenlight/greenlight/libs/gl-sdk/glsdk/libglsdk.so
DEBUG Released lock at `/tmp/setup-uv-cache/sdists-v9/editable/b70e3064c8570e3f/.lock`
DEBUG Released lock at `/tmp/setup-uv-cache/sdists-v9/pypi/protobuf3/0.2.1/.lock`
DEBUG Released lock at `/tmp/setup-uv-cache/sdists-v9/editable/a0024d0771b72f39/.lock`
DEBUG Released lock at `/tmp/setup-uv-cache/sdists-v9/editable/5aea48547e200a0d/.lock`
DEBUG Released lock at `/tmp/setup-uv-cache/sdists-v9/editable/062f972f50999c24/.lock`
DEBUG Released lock at `/tmp/setup-uv-cache/sdists-v9/editable/2a0da1427afcb095/.lock`
  × Failed to build `gl-sdk @
  │ file:///home/runner/work/greenlight/greenlight/libs/gl-sdk`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `hatchling.build.build_editable` failed (exit status: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 11, in <module>
        File
      "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/build.py",
      line 83, in build_editable
          return os.path.basename(next(builder.build(directory=wheel_directory,
      versions=["editable"])))
      
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File
      "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py",
      line 157, in build
          artifact = version_api[version](directory, **build_data)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File
      "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/wheel.py",
      line 522, in build_editable
          return self.build_editable_detection(directory, **build_data)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File
      "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/wheel.py",
      line 583, in build_editable_detection
          for included_file in
      self.recurse_forced_files(self.get_forced_inclusion_map(build_data)):
        File
      "/tmp/setup-uv-cache/builds-v0/.tmpVDJdFi/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py",
      line 239, in recurse_forced_files
          raise FileNotFoundError(msg)
      FileNotFoundError: Forced include not found:
      /home/runner/work/greenlight/greenlight/libs/gl-sdk/glsdk/libglsdk.so

      hint: This usually indicates a problem with the package or the build
      environment.
DEBUG Released lock at `/home/runner/work/greenlight/greenlight/.venv/.lock`
DEBUG Released lock at `/tmp/setup-uv-cache/.lock`
Error: Process completed with exit code 1.

Do I need to add a separate gl-sdk build step in the GitHub Action? As far as I can tell, it should already be included via the Cargo workspace, but the CI is still failing.

@cdecker
Copy link
Collaborator

cdecker commented Dec 4, 2025

Most likely you ran into #642, I merged that and will rebase this asap.

Note: Some plugins, such as mkdocs-macros-plugin, can retrieve Git details, but they offer limited flexibility in terms of information placement, styling, and formatting. A better approach was to create a custom hook and override the header.
@ShahanaFarooqui
Copy link
Collaborator Author

Rebase didn't fix the issue. Test run after rebase 19932116926 also failed with the same error.

@cdecker cdecker merged commit 06701e2 into Blockstream:main Dec 4, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants