Bug 2220224

Summary: F39FailsToInstall: python3-flake8
Product: [Fedora] Fedora Reporter: Fedora Fails To Install <fti-bugs>
Component: python-flake8Assignee: Ali Erdinc Koroglu <aekoroglu>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: 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
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

Your package (python-flake8) Fails To Install in Fedora 39:

can't install python3-flake8:
  - nothing provides python(abi) = 3.11 needed by python3-flake8-5.0.3-2.fc38.noarch
  - nothing provides (python3.11dist(mccabe) < 0.8~~ with python3.11dist(mccabe) >= 0.7) needed by python3-flake8-5.0.3-2.fc38.noarch
  - nothing provides (python3.11dist(pyflakes) < 2.6~~ with python3.11dist(pyflakes) >= 2.5) needed by python3-flake8-5.0.3-2.fc38.noarch
  
If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.


If you don't react accordingly to the policy for FTBFS/FTI bugs (https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/), your package may be orphaned in 8+ weeks.


P.S. The data was generated solely from koji buildroot, so it might be newer than the latest compose or the content on mirrors. To reproduce, use the koji/local repo only, e.g. in mock:

    $ mock -r fedora-39-x86_64 --config-opts mirrored=False install python3-flake8


P.P.S. If this bug has been reported in the middle of upgrading multiple dependent packages, please consider using side tags: https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/#updating-inter-dependent-packages

Thanks!

Comment 1 Ali Erdinc Koroglu 2023-07-12 06:40:45 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/

Comment 2 Adam Williamson 2023-07-14 02:48:38 UTC
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!

Comment 3 Adam Williamson 2023-07-14 18:19:09 UTC
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 .