Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626116 - app-portage/pfl-2.4-r4: doesn't support python3
Summary: app-portage/pfl-2.4-r4: doesn't support python3
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-25 05:42 UTC by Andrey
Modified: 2018-04-23 18:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python3 pfl version (pfl.py,7.82 KB, text/x-python)
2018-01-10 20:55 UTC, bugs
Details
python3 pfl version with debugging (pfl.py,7.82 KB, text/plain)
2018-04-08 11:36 UTC, bugs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey 2017-07-25 05:42:43 UTC
app-portage/pfl doesn't support python3.
It's the only package on my system requiring portage to be compiled with PYTHON_TARGETS="python2_7".

It would be nice to implement support for python3.

Reproducible: Always



Expected Results:  
Supports Python-3
Comment 1 bugs 2017-10-03 18:53:46 UTC
Hi,
I am on it. But I have to completely rewrite the HTTP handling.

regards
Daniel
Comment 2 bugs 2018-01-10 20:55:32 UTC
Created attachment 514176 [details]
python3 pfl version
Comment 3 bugs 2018-01-10 20:56:59 UTC
I added a python3 version of the pfl collecting tool. Can someone test this in a proxy environment?
Comment 4 Daniel Pielmeier gentoo-dev 2018-01-14 08:28:28 UTC
Hi Daniel, thanks for your effort of porting pfl to python3.

I have tested your code and everything seems to be working fine. Is there anything specific to look for? Do you have a way of checking if the data submitted by the new version is fine?
Comment 5 bugs 2018-04-08 11:36:08 UTC
Created attachment 526844 [details]
python3 pfl version with debugging

before you run pfl manually, execute following:

# touch ~/debugpfl

then run pfl and prepare yourself for a lot of output :)
One of the last line should something like "/www/upload.portagefilelist.de/uploadtest/1523187287-a360ea26-e9dc-4890-88aa-4fb3e2398ef8.pfl.xml validates" which is the most important. It means that the server was able to validate the uploaded XML aganst the XSD schema file.

regards
Daniel
Comment 6 Daniel Pielmeier gentoo-dev 2018-04-08 13:13:08 UTC
Thanks a lot for your effort. I just tested the new version with debugging enabled and everything worked fine.
Comment 7 Daniel Pielmeier gentoo-dev 2018-04-23 18:55:25 UTC
Fixed in Git with pfl-3.0.
Thanks for the report!