Fixes: https://pagure.io/koji/issue/890
For correct work you'll need F28 and/or
python3-cheetach python3-mod_wsgi
I'm planning to attach spec change with such requires AND conflicts with hub rpm as it supports only py2 for now.
1 new commit added
I would suggest using C.UTF-8 here.
C.UTF-8
Makes sense, I've added en_US there because of proposed default in https://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIDaemonProcess.html
rebased onto d33f64d9140a4f1f7997d2da8f682adfe3da6cb6
rebased onto 3fe66d34be8f3f27add2291c56c261acf9c2f091
rebased
Requires: python2-cheetah
This breaks on rhel6/7. Does python2-cheetah in Fedora provide python-cheetah? If so, we could leave the req alone here, if not, we'll need more %if lines.
%package -n python2-%{name}-web
I'm slightly concerned about renaming the -web subpackage without providing the old name.
Is there a reason we can't just build the hub only as Python 3 when it's possible?
rebased onto 85f4a71a39e5cbbb82b8e8db1dbf1cd829b52e52
new commit should solve both issues
4 new commits added
update provides/requires
use C.UTF-8 lang as default
Web UI python3 changes
spec changes for python[23]-koji-web
Why are we building both?! We should just have non-API components build one way or the other.
Good point, but don't we force users (e.g. in older Fedora) to have py3 mod_wsgi even if they've other apps which requires py2? mod_wsgi_python3 can't run in save httpd as mod_wsgi.
mod_wsgi
mod_wsgi_python3
Good point, but don't we force users (e.g. in older Fedora) to have py3 mod_wsgi even if they've other apps which require py2? mod_wsgi_python3 can't run in save httpd as mod_wsgi.
My suggestion is to just switch to Python 3 for Fedora 29+. There's an ongoing mass removal for Python 2 packages anyway.
rebased onto e9fce625c4523f06b39f1422327b3743f470ae3d
Rebased and retested, still works correctly.
I'm concerned about the upgrade path here. The koji-web rpm is renamed to python2-koji-web. The macro seems to automatically provide python-koji-web, but not koji-web. Nothing tells rpm that this package should replace the old koji-web.
Is there a reason we should provide both in this case? It's a web interface application. It'd probably be better to just change it to use Python 3 for fedora, and keep Python 2 for RHEL 6/7.
The code changes themselves generally look ok
macro for py3-only systems
An interesting point. You could almost make the same argument for the hub.
Part of the concern is simple caution. Providing both allows a fallback option, and more flexibility for instances to time their transition.
Is there a reason we should provide both in this case? It's a web interface application. It'd probably be better to just change it to use Python 3 for fedora, and keep Python 2 for RHEL 6/7. An interesting point. You could almost make the same argument for the hub. Part of the concern is simple caution. Providing both allows a fallback option, and more flexibility for instances to time their transition.
An interesting point. You could almost make the same argument for the hub. Part of the concern is simple caution. Providing both allows a fallback option, and more flexibility for instances to time their transition.
I don't think the concern is warranted. Moreover, we're not going to have much choice soon for Fedora and Mageia (and RHEL 8) anyway. The extra complexity is just not worth it, and to some extent, making it a switch that's activated for everything except RHEL < 8 will help force us make the Python 3 support better.
rebased onto 744216061adf22390e1195ec73b890f62a7950b8
rebased onto 6572dc1414d33c1c334a04fde40e6d09b1e7a921
5 new commits added
rebased onto 861f99b576e5639b596a50aff2813e7a154dfeea
properly obsolete koji-web
Similar to #921, the spec changes aren't quite where I want them, but I'll create a follow up to address that.
Merging this with a manual rebase (a few spec adjustments to account for the changes in 921)
Commit d54063d6 fixes this pull-request
Pull-Request has been merged by mikem
Fixes: https://pagure.io/koji/issue/890
For correct work you'll need F28 and/or
python3-cheetach
python3-mod_wsgi
I'm planning to attach spec change with such requires AND conflicts with hub rpm as it supports only py2 for now.