Bug 1614749

Summary: Most setuptools options are not recognized.
Product: [Fedora] Fedora EPEL Reporter: Frank Büttner <bugzilla>
Component: pyp2rpmAssignee: Kevin Fenzi <kevin>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: kevin, mcyprian, rkuska
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frank Büttner 2018-08-10 10:42:20 UTC
Description of problem:
When using setuptools for the build/install process most fields in the spec file are get empty.

Version-Release number of selected component (if applicable):
pyp2rpm-2.0.0-4.el7.noarch


How reproducible:
Use setuptools for setup.py

Steps to Reproduce:
1. call python3 setup.py sdist
2. feed pyp2rpm with the tar file

Actual results:
Many fields the the spec file are empty or set as "TODO:".

Expected results:
Filed out fields in the spec file for which an entry in the setup.py exists.


Additional info:
Sample:
from setuptools import setup, find_packages
import sys

def main(argv):
        setup(
                name="FOO",
                version="0.1.0",
                packages=find_packages(),
                scripts=["foo"],
                install_requires=[
                        "ldap3>=2.5.1",
                        "email-validator>=1.0.3",
                        "python-nss>=1.0.1"
                ],
                author="FOO",
                author_email="FOO",
                description="FOO",
                long_description="FOO",
                license="GPLv3",
                keywords="one word no",
                url="what ever",
        )
        return 0

if __name__ == "__main__":
        sys.exit(main(sys.argv))

The the spec file, the fields License, Source0 is empty and Summary, URL, description are filled with TODO:"

Comment 1 Frank Büttner 2018-08-13 05:33:13 UTC
pyp2rpm-3.3.2 from pip3 repo solve it.

Comment 2 Kevin Fenzi 2018-08-28 22:56:11 UTC
Can you try this one: 
https://koji.fedoraproject.org/koji/taskinfo?taskID=29356621

If that doesn't work, I'll look at going up to 3.3.2...

Comment 3 Frank Büttner 2018-08-29 07:43:09 UTC
I will test it next week, when I'm back from holiday.

Comment 4 Frank Büttner 2018-09-03 06:44:49 UTC
Yes it will fix it.