Bug 1707998

Summary: python-setuptools_scm fails to build with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-setuptools_scmAssignee: Orion Poplawski <orion>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, igor.raits, orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-setuptools_scm-3.3.3-1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-12 17:27:31 UTC 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:
Bug Depends On:    
Bug Blocks: 1686977    
Attachments:
Description Flags
Full log from Copr none

Description Miro Hrončok 2019-05-08 22:41:34 UTC
Created attachment 1565836 [details]
Full log from Copr

python-setuptools_scm-3.2.0-1.fc31 fails to build with Python 3.8.0a4 due to a DeprecationWarning treated as error:


func = <function parse at 0x7f368cb085c0>

    def getfullargspec(func):
        """Get the names and default values of a callable object's parameters.
    
        A tuple of seven things is returned:
        (args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations).
        'args' is a list of the parameter names.
        'varargs' and 'varkw' are the names of the * and ** parameters or None.
        'defaults' is an n-tuple of the default values of the last n parameters.
        'kwonlyargs' is a list of keyword-only parameter names.
        'kwonlydefaults' is a dictionary mapping names from kwonlyargs to defaults.
        'annotations' is a dictionary mapping parameter names to annotations.
    
        .. deprecated:: 3.8
            Use inspect.signature() instead of inspect.getfullargspec().
    
        Notable differences from inspect.signature():
          - the "self" parameter is always reported, even for bound methods
          - wrapper chains defined by __wrapped__ *not* unwrapped automatically
        """
    
>       warnings.warn("Use inspect.signature() instead of inspect.getfullargspec()",
                      DeprecationWarning, stacklevel=2)
E       DeprecationWarning: Use inspect.signature() instead of inspect.getfullargspec()

Full log attached.

Comment 1 Orion Poplawski 2019-05-09 00:50:18 UTC
I just updated to 3.3.0 in rawhide - can you test that please?  Thanks.

Comment 2 Miro Hrončok 2019-05-09 07:53:32 UTC
Same problem: https://copr.fedorainfracloud.org/coprs/g/python/python3.8/build/906503/

Comment 3 Orion Poplawski 2019-05-12 15:26:03 UTC
Upstream has released 3.3.3 to attempt to fix this.  I've checked that in, please try with that.

Comment 4 Miro Hrončok 2019-05-12 17:27:31 UTC
Thanks!