Proposal: naming convention for Python 3 packages and subpackages
Toshio Kuratomi
a.badger at gmail.com
Fri Oct 30 01:50:17 UTC 2009
On Thu, Oct 29, 2009 at 06:27:35PM -0400, David Malcolm wrote:
>
> Current naming conventions for Python packages are in
> https://fedoraproject.org/wiki/Packaging/NamingGuidelines#Addon_Packages_.28python_modules.29
>
> I rather like the idea of standardizing on a "python3-" prefix for _all_
> Python 3 module packages and subpackages, even if this leads to
> inconsistencies with their counterparts in the python 2 stack. It would
> make the "threeness" of the packages stand out more.
>
> (NB: I hope that we'll eventually be in a place where we can cut over
> embedders and users of python (e.g. gedit, gdb, mod_python etc) from 2
> to 3; I'm _not_ suggesting we do anything to their names. Obviously
> such a move is a long way off)
>
+1 to this section
mod_python is something we might have to consider differently than the other
packages in your example set since it's going to be running end user
created code.
> > This seems fine even though it's a bit redundant: python3-pygtk2 and
> > python3-pygpgme.
>
> We could combine:
> - the "always use a python3-" rule I invented just above (ahem) and
> - the "When in doubt, use the name of the module that you type to
> import it in a script" advice from the python module guidelines.
>
> This would make the above examples be "python3-gtk" and "python3-gpgme"
>
I'm tentatively for this. My hesitation comes since I know maintainers
already question the module name portion of the Guidelines. But they still
have a choice... it's just going to appear a bit funnier:
python3-pygtk2 or python3-gtk, their choice.
There are also modules where there's ony one choice:
python3-pycurl
It's fine though.
> > What to do with things that have python in their suffix:
> > gstreamer-python => gstreamer-python3? Or python3-gstreamer? Or
> > python3-gstreamer-python? Most of these are subpackages of existing
> > packages.
>
> Again, following the combination of the two rules above:
> "python3-gstreamer"
>
+1
I wish that all the python2 bindings followed this scheme as well.
> > A cornercase is the gnome-python2 package. These are python bindings to
> > gnome2. gnome-python2 is the upstream name. For python3, do we want
> > python3-gnome-python2, python3-gnome2, python3-gnome-python2 ?
> >From my reading of "rpm -qi gnome-python2", the upstream name is
> "gnome-python", so perhaps "python3-gnome" is the thing to use here?
>
> Thoughts?
>
Sounds good. Write it up and lets get it approved.
-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-python-devel-list/attachments/20091029/1e84b8d0/attachment.sig>
More information about the Fedora-python-devel-list
mailing list