>>> On Tue, Sep 18, 2018 at 03:14:41PM +0200, Miro Hrončok
>>>> Is anyone willing to look into automating this? Write a spec
I wrote something that mostly seems to work:
../pyrenamer/depython2ize.py -b -d python-alchimia python-gzipstream \
python-ivi python-pdfkit python-simpleparse python-walkdir \
python-XStatic-Jasmine python-yourls ...
>>>> - removing python2- and python- BRs
>>>> - removing %package -n python2 and it's metadata, description
>>>> - removing all %py2_build, %py2_install or their older manual
>>>> - removing python2 tests from %check
>>>> - (sometimes) removing %py3dir or python3 dir pushd/popd dance
yes (by default, can be disabled with a switch)
>>>> - (sometimes) removing with_python3 conditionals as they make no
The workflow is to first calls it with just -bd for review, and then with -bwn
to actually commit.
I tested it for packages from $(bugzilla query --blocked=1625773 -s NEW).
For the ones that are called python-* it seems to work, and quite a lot
of them even build fine. Sometimes manual fixups will be necessary (e.g.
when the py2 directories or files are referenced from %build in non-trivial
For packages with generic names it doesn't work because python2 subpackage
detection is broken. Should be relatively easy to fix. I'll work on that
tomorrow, so please just ignore them for now.
PTAL. Let me know what bits are missing or buggy.
python-XStatic-* packages have a lot of remaining mvs with
python2_sitelib involved. e.g. python-XStatic-Jasmine,