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

RFE: python-setuptools to support file: in install_requires stanza in setup.cfg

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.5
    • python-setuptools
    • None
    • No
    • None
    • rhel-pt-python
    • ssg_core_services
    • 5
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • All
    • None

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

      I'm trying to build the python-steampunk-spotter package on EPEL-9.

      What is the impact of this issue to you?

      I'm unable to build the above package without patching it.

      Please provide the package NVR for which the bug is seen:

      python3-setuptools-53.0.0-13.el9.noarch

      How reproducible is this bug?:

      Always.

      Steps to reproduce

      1. Download python-pyahocorasick src.rpm from koji and the other two from review requests: #2283064 and #2283066.
      2. mock -r epel-9-x86_64 --postinstall python-pyahocorasick-2.1.0-4.fc42.src.rpm
      3. mock -r epel-9-x86_64 --postinstall python-detect-secrets-1.5.0-1.fc41.src.rpm 
      4. mock --no-clean -r epel-9-x86_64 python-steampunk-spotter-3.3.0-1.fc41.src.rpm

      Expected results

      Successful package build.

      Actual results

      [...]
      File "/usr/lib/python3.9/site-packages/pkg_resources/vendor/packaging/requirements.py", line 100, in __init_
          raise InvalidRequirement(
      pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at "': requir'": Expected stringEnd

      Additional information

      Support for file: references in install_requires was apparently added in setuptools v62.6.0.

              python-maint python-maint
              dm27408 Dominik Mierzejewski
              python-maint python-maint
              bot rhel-cs-apps-subsystem-qe bot rhel-cs-apps-subsystem-qe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: