[opensuse-packaging] Correctly naming a python package
Dear all, I had the need for a little python bindings package, that is available in pypi as lxc-python2. https://pypi.python.org/pypi/lxc-python2 https://github.com/lxc/python2-lxc As this is required for setting up lxc containers via ansible, I guess this might be useful in factory. But what would be the correct name for the package? python-lxc-python2 python2-lxc-python2 python2-lxc ... Johannes P.S.: The bindings themselves have not changed for a long time, so this should be easy to maintain...
Hi, The convention is to use `python[version]-[pypi-name]`. So in your case it's `python-lxc-python2` for py2 and `python3-lxc-python2` for py3. This looks quite ugly in your case, but using the pypi package name is the most useful convention. Hope this helps. Sebastian On 01/24/2017 07:59 PM, Johannes Kastl wrote:
Dear all,
I had the need for a little python bindings package, that is available in pypi as lxc-python2.
https://pypi.python.org/pypi/lxc-python2 https://github.com/lxc/python2-lxc
As this is required for setting up lxc containers via ansible, I guess this might be useful in factory. But what would be the correct name for the package?
python-lxc-python2 python2-lxc-python2 python2-lxc ...
Johannes
P.S.: The bindings themselves have not changed for a long time, so this should be easy to maintain...
-- python programming - mail server - photo - video - https://sebix.at cryptographic key at https://sebix.at/DC9B463B.asc and on public keyservers
Current naming convention is python-<pypi-name>. python-lxc-python2 sounds stupid, but would match.... Schöne Grüße Axel Braun -- Written from cell phone - excuses for typos Am 24. Januar 2017 19:59:46 MEZ schrieb Johannes Kastl <mail@ojkastl.de>:
Dear all,
I had the need for a little python bindings package, that is available in pypi as lxc-python2.
https://pypi.python.org/pypi/lxc-python2 https://github.com/lxc/python2-lxc
As this is required for setting up lxc containers via ansible, I guess this might be useful in factory. But what would be the correct name for the package?
python-lxc-python2 python2-lxc-python2 python2-lxc ...
Johannes
P.S.: The bindings themselves have not changed for a long time, so this should be easy to maintain... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dear Axel, dear Sebastian, On 24.01.17 20:20 Axel Braun wrote:
Current naming convention is python-<pypi-name>. python-lxc-python2 sounds stupid, but would match....
Thanks for the confirmation. I was not sure if the naming should be python2-lxc... as this is a python2-only package, as far as I can see. Johannes
On 01/24/2017 08:46 PM, Johannes Kastl wrote:
I was not sure if the naming should be python2-lxc... as this is a python2-only package, as far as I can see.
Yes, currently the default is still python2 and `python-` still implicitly means python2. Sebastian -- python programming - mail server - photo - video - https://sebix.at cryptographic key at https://sebix.at/DC9B463B.asc and on public keyservers
On 24.01.17 19:59 Johannes Kastl wrote:
I had the need for a little python bindings package, that is available in pypi as lxc-python2.
https://pypi.python.org/pypi/lxc-python2 https://github.com/lxc/python2-lxc
As this is required for setting up lxc containers via ansible, I guess this might be useful in factory. But what would be the correct name for the package?
I just sr'ed this to devel:languages:python, please feel free to comment or point out weak spots. SR 452476 https://build.opensuse.org/request/show/452476 Thanks in advance, Johannes
On 25.01.17 19:27 Johannes Kastl wrote:
Superseded by 452579. I added a changes-file and cleaned the spec file with spec-cleaner. Johannes
participants (3)
-
Axel Braun
-
Johannes Kastl
-
Sebastian