Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-2188

Unable to read project metadata from pyproject.toml (PEP 621)

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-9.2.0
    • python-setuptools
    • None
    • None
    • None
    • rhel-pt-python
    • ssg_core_services
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      Try to build an rpm package from tar.gz source of an python module.

      Please provide the package NVR for which bug is seen:

      pyproject-rpm-macros-1.6.2-1.el9.noarch

      How reproducible:

      Every time mock try to build it.

      The pyproject.toml file will nor parse correctly, all tags in it are parsed as unknown.

      It can reproduced without the whole rpm build chroot.

      Steps to reproduce

      1.  unpack the module tar.gz
      2.  install the packages "pyproject-rpm-macros python3-packaging python3-toml python3-setuptools_scm"
      3. call "/usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /tmp/pyproject-wheeldir" from the extracted tar ball

      Expected results

      That the pyproject.toml file parsed correct.

      Actual results

      All settings in the file are reads as unknown.

      Hint:

      The same will work on Fedora 37+38.

      On RHEL-9 via pip as an user, the module can also installed via:

      pip install module.tar.gz

       

      To make the debugging easier, I have added the module archive.

              python-maint python-maint
              mdc_fbuettn Frank Büttner
              python-maint python-maint
              bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: