I am working on packaging up a git tool that is written in Python (git-revise: https://github.com/mystor/git-revise), and was wondering if the "python3-%{name}" applies to tools like this, e.g. ones that are written in Python but are designed for use on their own instead of as an importable module (since this creates a /usr/bin/git-revise launcher).
Thanks, -Ian
On Fri, 1 May 2020, Ian McInerney wrote:
I am working on packaging up a git tool that is written in Python (git-revise: https://github.com/mystor/git-revise), and was wondering if the "python3-%{name}" applies to tools like this, e.g. ones that are written in Python but are designed for use on their own instead of as an importable module (since this creates a /usr/bin/git-revise launcher). Thanks,
Generally, no. The python3- naming policy applies only to libraries/modules. See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_naming
Scott
Thanks. I had seen that part of the policies, but I wasn't sure what counted as a "module" (I don't work with Python much and so I didn't know if the fact there were items installed into the site packages directory or an egg-info made it count as a module).
-Ian
On Fri, May 1, 2020 at 3:30 PM Scott Talbert swt@techie.net wrote:
On Fri, 1 May 2020, Ian McInerney wrote:
I am working on packaging up a git tool that is written in Python (git-revise: https://github.com/mystor/git-revise), and was wondering
if the
"python3-%{name}" applies to tools like this, e.g. ones that are written
in
Python but are designed for use on their own instead of as an importable module (since this creates a /usr/bin/git-revise launcher). Thanks,
Generally, no. The python3- naming policy applies only to libraries/modules. See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_naming
Scott
On Friday, 1 May 2020 15.45.23 WEST Ian McInerney wrote:
Thanks. I had seen that part of the policies, but I wasn't sure what counted as a "module" (I don't work with Python much and so I didn't know if the fact there were items installed into the site packages directory or an egg-info made it count as a module).
-Ian
OTHO this is available through pypi: https://pypi.org/project/git-revise/%5B1]
and you can create a python module.
Basically your question applies to the name of the srpm. Since it can have a python3 subpackage. :-)
In the case of nikola I opted to name it python-nikola, with a subpackage called nikola that has the binary and the module is in pyhton3-nikola.
At the same I find it handy if a package is available at pypi to be available as python3- <pypiname>.
Regards,
python-devel@lists.fedoraproject.org