Uploaded image for project: 'Red Hat Enterprise Linux AI'
  1. Red Hat Enterprise Linux AI
  2. RHELAI-3063

[python-wheel-build/fromager] Add `fromager.hooks` for pre-built wheels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Fromager
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      [2802297044] Upstream Reporter: Christian Heimes
      Upstream description:

      Fromager has a `post_build` hook that gets called when a sdist and wheel have been built. In downstream we use the hook to upload sdist and wheel to an internal package index. Currently, Fromager does not have a hook to deal with pre-built wheels. There is no way to automatically upload pre-built wheels to an internal package index.

      Hook name: `pre_built`, `pre_built_wheel`, or similar
      Signature: similar to `post_build` hook, but without `sdist_filename` argument

      ```
      def pre_built_wheel(
      ctx: context.WorkContext,
      req: Requirement,
      dist_name: str,
      dist_version: str,
      wheel_filename: pathlib.Path,
      ) -> None:
      pass
      ```

              cheimes@redhat.com Christian Heimes
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: