Bug 1614749 - Most setuptools options are not recognized.
Summary: Most setuptools options are not recognized.
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: pyp2rpm
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-10 10:42 UTC by Frank Büttner
Modified: 2019-04-05 03:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.