Upstream, this software supports Python 3. Please provide a Python 3 package for Fedora. According to the Python packaging guidelines [0], software must be packaged for Python 3 if upstream supports it. The guidelines give detailed information on how to do this, and even provide an example spec file [1]. The current best practice is to provide subpackages for the two Python versions (called "Common SRPM" in the guidelines). Alternatively, if nothing depends on your Python2 package, you can just switch to Python 3 entirely. It's fine to do this in Rawhide only. If anything is unclear, or if you need any kind of assistance with the porting, you can ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy to help! [0] https://fedoraproject.org/wiki/Packaging:Python [1] https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec_file
Petr, please can you point me to a package similar to this one that already ships python3 sub-package? Do i need to rename the package by adding the python- prefix? Thank you!
Some spec file examples: [0][1]. There are numerous others at fedora dist-git [2]. Checking various different cases especially in newest packages that follow the guidelines is a good strategy. Adding the python prefix would also be a good change from various perspectives, most python packages use that. Please refer to [4] regarding the renaming process. If you have any more questions do not hesitate to ask. [0] http://pkgs.fedoraproject.org/cgit/rpms/python-inifile.git/plain/python-inifile.spec [1] http://pkgs.fedoraproject.org/cgit/rpms/python-argh.git/plain/python-argh.spec [2] http://pkgs.fedoraproject.org/cgit/rpms/ [3] https://fedoraproject.org/wiki/Package_Renaming_Process
Actually, since pg_view is a tool, not a Python library others would import, you can just switch to Python 3 entirely. After you update to the newest upstream release of pg_view, switch the shebang to /usr/bin/python3. Let me know if that doesn't work.
And, the python2-/python3- prefix is only necessary for libraries, so there's no need to rename the package.
Thank you for the useful info. I have updated pg_view to the latest release and for rawhide i have changed the shebang to /usr/bin/python3 as suggested by Petr.
Yipee! Thanks for your help!