Bug 1433066 - Build for python3 on EPEL
Summary: Build for python3 on EPEL
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-click
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert Kuska
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-16 17:10 UTC by Orion Poplawski
Modified: 2018-02-20 16:24 UTC (History)
5 users (show)

Fixed In Version: python-click-6.7-6.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-20 16:24:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2017-03-16 17:10:33 UTC
Description of problem:

I'm trying to get python-click to build for python3 on epel7, but running into the following issue with the python3 tests:

_________________________________ test_prompts _________________________________
runner = <click.testing.CliRunner object at 0x3fffa7c7be10>
    def test_prompts(runner):
        @click.command()
        def test():
            if click.confirm('Foo'):
                click.echo('yes!')
            else:
                click.echo('no :(')
    
        result = runner.invoke(test, input='y\n')
>       assert not result.exception
E       assert not RuntimeError('Click will abort further execution because Python 3 was configured to use ASCII as encoding for the envi...SN.utf8, xh_ZA.utf8, yi_US.utf8, yo_NG.utf8, yue_HK.utf8, zh_CN.utf8, zh_HK.utf8, zh_SG.utf8, zh_TW.utf8, zu_ZA.utf8',)
E        +  where RuntimeError('Click will abort further execution because Python 3 was configured to use ASCII as encoding for the envi...SN.utf8, xh_ZA.utf8, yi_US.utf8, yo_NG.utf8, yue_HK.utf8, zh_CN.utf8, zh_HK.utf8, zh_SG.utf8, zh_TW.utf8, zu_ZA.utf8',) = <Result RuntimeError('Click will abort further execution because Python 3 was configured to use ASCII as encoding for ...N.utf8, xh_ZA.utf8, yi_US.utf8, yo_NG.utf8, yue_HK.utf8, zh_CN.utf8, zh_HK.utf8, zh_SG.utf8, zh_TW.utf8, zu_ZA.utf8',)>.exception
tests/test_utils.py:102: AssertionError


https://koji.fedoraproject.org/koji/taskinfo?taskID=18415208


It appears that click has various issues with python3, but the builds seem to work on Fedora.  Is this an issue with python3.4 in EPEL7?

Comment 1 Miro Hrončok 2017-03-17 12:24:28 UTC
See http://click.pocoo.org/5/python3/#python-3-surrogate-handling

Run the tests with LANG=C.utf8

Comment 2 Miro Hrončok 2017-03-17 12:27:12 UTC
Or in case that's not yet in EPEL (I'm not sure), use en_US.utf8.

Comment 3 Orion Poplawski 2017-03-17 15:07:58 UTC
I thought I had tried that, but apparently not.  Any objection to updating it to 6.7 as well?

Comment 4 Miro Hrončok 2017-03-17 15:15:43 UTC
Leaving that up to Robert.

Comment 5 Orion Poplawski 2017-03-17 15:39:16 UTC
https://github.com/pallets/click/blob/master/CHANGES

changes seem minor:

Version 6.7
-----------

(bugfix release; released on January 6th 2017)

- Make `click.progressbar` work with `codecs.open` files. See #637.
- Fix bug in bash completion with nested subcommands. See #639.
- Fix test runner not saving caller env correctly. See #644.
- Fix handling of SIGPIPE. See #626
- Deal with broken Windows environments such as Google App Engine's. See #711.

Version 6.6
-----------

(bugfix release; released on April 4th 2016)

- Fix bug in `click.Path` where it would crash when passed a `-`. See #551.

Version 6.4
-----------

(bugfix release; released on March 24th 2016)

- Fix bug in bash completion where click would discard one or more trailing
arguments. See #471.

Comment 6 Carl George 2017-10-12 21:14:06 UTC
I implemented the spec files changes for this in https://src.fedoraproject.org/rpms/python-click/pull-request/1.  It would still need to be merged back to the epel7 branch after being merged into master of course.  Looking forward to getting this merged so more command line tools can be switched to the python34 stack.

Comment 7 Fedora Update System 2018-02-01 22:24:39 UTC
python-click-6.7-6.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-a36ba75c3f

Comment 8 Fedora Update System 2018-02-02 18:24:56 UTC
python-click-6.7-6.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-a36ba75c3f

Comment 9 Fedora Update System 2018-02-20 16:24:12 UTC
python-click-6.7-6.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


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