Bug 2221959

Summary: python-flask-httpauth fails to build with Sphinx 7.x
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-flask-httpauthAssignee: Javier Peña <jpena>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: fti-bugs, jpena
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: 2024-06-14 08:11:08 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: 2231791, 2260875, 2260877, 2188968, 2244836    

Description Karolina Surma 2023-07-11 11:52:51 UTC
python-flask-httpauth fails to build with Sphinx 7.x in Fedora 39 (currently Rawhide).

The issue detected:
```
+ /usr/bin/python3 setup.py build_sphinx -b html

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'build_sphinx'
```

Sphinx 7 has removed the setuptools integration (see: https://github.com/sphinx-doc/sphinx/pull/11363).
`setup.py` has been long deprecated and projects are encouraged to migrate away from using it.


For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/doc-stack/package/python-flask-httpauth/

You can test you package in mock running:

$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/doc-stack/fedora-rawhide-x86_64/ --no-clean your.src.rpm
$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/doc-stack/fedora-rawhide-x86_64/ shell

We'd like to include Sphinx 7 in Fedora 39.
Let us know here if you have any questions. Thank you!

Comment 1 Fedora Release Engineering 2023-08-16 07:18:59 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 2 Karolina Surma 2024-06-12 15:01:49 UTC
*** Bug 2291701 has been marked as a duplicate of this bug. ***

Comment 3 Javier Peña 2024-06-14 08:11:08 UTC
Fixed in Rawhide via  https://koji.fedoraproject.org/koji/taskinfo?taskID=119000624