Bug 1592062 - python3-backports-ssl_match_hostname please rebuild in f28
Summary: python3-backports-ssl_match_hostname please rebuild in f28
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-backports-ssl_match_hostname
Version: 28
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Carl George
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-16 15:53 UTC by Luis Bazan
Modified: 2018-07-06 13:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-17 03:31:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Luis Bazan 2018-06-16 15:53:50 UTC
Please rebuild in fedora 28

Best!

Comment 1 Carl George 2018-06-17 03:22:04 UTC
I think there is some confusion here.

This component/SRPM/spec is only for EPEL [1].  It's purpose is to provide a python34-backports-ssl_match_hostname subpackage in EPEL's Python3 stack [2].  An alternate name for the component/SRPM/spec is required because python-backports-ssl_match_hostname exists in RHEL.  Bugs for the Fedora package should be directed at the python-backports-ssl_match_hostname component/SRPM/spec.

[1]: https://src.fedoraproject.org/rpms/python3-backports-ssl_match_hostname/blob/master/f/dead.package
[2]: https://fedoraproject.org/wiki/User:Bkabrda/EPEL7_Python3

Comment 2 Carl George 2018-06-17 03:31:10 UTC
However, your request is invalid.  The backports.ssl_match_hostname module is a backport of the match_hostname function from Python 3.5's ssl module to previous versions of Python.  Fedora's python-backports-ssl_match_hostname has a python2-backports-ssl_match_hostname subpackage for Python 2.7 (which is older than 3.6).  Adding a python3-backports-ssl_match_hostname subpackage doesn't make sense because that function is already included in Fedora's python3 standard library (3.6).  It does makes sense for EPEL's python34 (3.4).

Any Python code that claims to requires this module should instead use a try/except to attempt to import it from the standard library first.

    try:
        from ssl import match_hostname
    except:
        from backports.ssl_match_hostname import match_hostname

Comment 3 Luis Bazan 2018-07-06 13:50:14 UTC
Thanks Carl George

Best!


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