Bug 2220224
Summary: | F39FailsToInstall: python3-flake8 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Fedora Fails To Install <fti-bugs> |
Component: | python-flake8 | Assignee: | Ali Erdinc Koroglu <aekoroglu> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | aekoroglu, awilliam, me, mrunge, mtasaka, python-packagers-sig, sgallagh |
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: | 2023-07-14 18:19:09 UTC | Type: | --- |
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: | 2220424 | ||
Bug Blocks: | 2135404, 2168845, 2219974, 2220004, 2220045, 2220072, 2220080, 2220101, 2220130, 2220132, 2220168, 2220175, 2220177, 2220185, 2220194, 2220205, 2220214, 2220225, 2220226, 2220227, 2220228, 2220229, 2220230, 2220235, 2220254, 2220267, 2220284, 2220296, 2220307, 2220314, 2220346, 2220357, 2220369, 2220386, 2220390, 2220404, 2220435, 2220456, 2220457, 2220464, 2220497, 2220523, 2220529, 2220543 |
Description
Fedora Fails To Install
2023-07-05 19:11:52 UTC
New flake8 6.0.0 version requires pycodestyle >= 2.10 and pyflakes >= 3 I've built pycodestyle 2.10 from git (e8d84098da10d013ee686027e174814dbe4dd908), I did not use this commit (https://github.com/PyCQA/pycodestyle/pull/1154/commits/6fddf7399d70627c46d1cc82bb3c02da2d708ec4) because tokenize function cause problems. I also disabled some tests due to ans.Str problem on flake8 (https://src.fedoraproject.org/rpms/python-flake8/pull-request/12#_1__16) PRs: pycodestyle 2.10.0 : https://src.fedoraproject.org/rpms/python-pycodestyle/pull-request/7 pyflake 3.0.1 : https://src.fedoraproject.org/rpms/pyflakes/pull-request/16 flake8 6.0.0 : https://src.fedoraproject.org/rpms/python-flake8/pull-request/12 Until now I was able to built those packages: https://copr.fedorainfracloud.org/coprs/aekoroglu/python-312/builds/ I don't like the idea of disabling the tests on flake8, it would be better to fix the problem with ast.Str being deprecated. That needs fixing in pyflakes. ...ahh, now I see: that's what is fixed by https://github.com/PyCQA/pyflakes/commit/ad5e15f4a3011ccc9a34c06555fac58e3e09d3a1 . I've now backported that in pyflakes. However, the flake8 tests are now failing because I backported 6fddf7399d70627c46d1cc82bb3c02da2d708ec4 ("3.12: format specs are not an error") to pycodestyle, and that changes the signature of missing_whitespace, which flake8 imports... I will look at all this tomorrow if nobody gets to it before me. Sorry for diving in a bit two-footed here! https://koji.fedoraproject.org/koji/taskinfo?taskID=103361131 provides a 6.0.0 which works with Python 3.12 and passes all tests, thanks to the backport of https://github.com/PyCQA/pyflakes/commit/ad5e15f4a3011ccc9a34c06555fac58e3e09d3a1 in pyflakes and two minor patches to flake8 - https://github.com/PyCQA/flake8/issues/1844 . |