python packaging

Elan Ruusamäe glen at pld-linux.org
Mon Jun 20 14:58:11 CEST 2016


so, what way we should do the package naming?

1. egg name
2. python module name [*]
3. upstream tarball name
4. pld own convention

[*] this is said to be the recommendation in template-specs

reality is that we have no consistency, the package naming is from any 
of the four choices:

the results vary from name letter cases (South vs south), separators (_ 
vs -), name itself (picklefield module vs django_picklefield egg)


[~/relup/python-django-contact-form(1.1) (master)⚡] ➔ grep -n 
'^%{py_sitescriptdir}' ~/all-specs/python-django[-_]*.spec
/home/users/glen/all-specs/python-django-assets.spec:59:%{py_sitescriptdir}/django_assets
/home/users/glen/all-specs/python-django-assets.spec:60:%{py_sitescriptdir}/django_assets-%{version}-py*.egg-info

/home/users/glen/all-specs/python-django-celery.spec:54:%{py_sitescriptdir}/djcelery
/home/users/glen/all-specs/python-django-celery.spec:56:%{py_sitescriptdir}/django_celery-%{version}-*.egg-info

/home/users/glen/all-specs/python-django-evolution.spec:70:%{py_sitescriptdir}/django_evolution
/home/users/glen/all-specs/python-django-evolution.spec:72:%{py_sitescriptdir}/django_evolution-%{version}-*.egg-info

/home/users/glen/all-specs/python-django-picklefield.spec:56:%{py_sitescriptdir}/picklefield
/home/users/glen/all-specs/python-django-picklefield.spec:58:%{py_sitescriptdir}/django_picklefield-%{version}-*.egg-info/

/home/users/glen/all-specs/python-django-pipeline.spec:58:%{py_sitescriptdir}/pipeline/*.py[co]
/home/users/glen/all-specs/python-django-pipeline.spec:59:%{py_sitescriptdir}/pipeline/compilers/*.py[co]
/home/users/glen/all-specs/python-django-pipeline.spec:60:%{py_sitescriptdir}/pipeline/compressors/*.py[co]
/home/users/glen/all-specs/python-django-pipeline.spec:61:%{py_sitescriptdir}/pipeline/conf/*.py[co]
/home/users/glen/all-specs/python-django-pipeline.spec:62:%{py_sitescriptdir}/pipeline/jinja2/*.py[co]
/home/users/glen/all-specs/python-django-pipeline.spec:63:%{py_sitescriptdir}/pipeline/templates
/home/users/glen/all-specs/python-django-pipeline.spec:64:%{py_sitescriptdir}/pipeline/templatetags/*.py[co]
/home/users/glen/all-specs/python-django-pipeline.spec:65:%{py_sitescriptdir}/django_pipeline*.egg-info

/home/users/glen/all-specs/python-django-profiles.spec:44:%{py_sitescriptdir}/profiles/*.py[co]
/home/users/glen/all-specs/python-django-profiles.spec:45:%{py_sitescriptdir}/django_profiles-%{version}-py*.egg-info

/home/users/glen/all-specs/python-django-registration.spec:59:%{py_sitescriptdir}/registration/*.py[co]
/home/users/glen/all-specs/python-django-registration.spec:60:%{py_sitescriptdir}/registration/backends
/home/users/glen/all-specs/python-django-registration.spec:61:%{py_sitescriptdir}/registration/management
/home/users/glen/all-specs/python-django-registration.spec:63:%{py_sitescriptdir}/django_registration-%{version}-py*.egg-info

/home/users/glen/all-specs/python-django-skypehub.spec:38:%{py_sitescriptdir}/skypehub
/home/users/glen/all-specs/python-django-skypehub.spec:40:%{py_sitescriptdir}/django_skypehub-%{version}-*.egg-info

/home/users/glen/all-specs/python-django-south.spec:46:%{py_sitescriptdir}/south
/home/users/glen/all-specs/python-django-south.spec:48:%{py_sitescriptdir}/South-*.egg-info

/home/users/glen/all-specs/python-django-voting.spec:45:%{py_sitescriptdir}/voting/*.py[co]
/home/users/glen/all-specs/python-django-voting.spec:46:%{py_sitescriptdir}/voting/migrations
/home/users/glen/all-specs/python-django-voting.spec:47:%{py_sitescriptdir}/voting/templatetags
/home/users/glen/all-specs/python-django-voting.spec:48:%{py_sitescriptdir}/django_voting-%{version}-py*.egg-info

/home/users/glen/all-specs/python-django_extensions.spec:108:%{py_sitescriptdir}/%{module}
/home/users/glen/all-specs/python-django_extensions.spec:109:%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info

/home/users/glen/all-specs/python-django_profile.spec:53:%{py_sitescriptdir}/userprofile

/home/users/glen/all-specs/python-django_reversion.spec:59:%{py_sitescriptdir}/%{module}
/home/users/glen/all-specs/python-django_reversion.spec:60:%{py_sitescriptdir}/django_reversion-%{version}-*.egg-info

/home/users/glen/all-specs/python-django_tagging.spec:44:%{py_sitescriptdir}/%{module}/*.py[co]
/home/users/glen/all-specs/python-django_tagging.spec:45:%{py_sitescriptdir}/%{module}/templatetags
/home/users/glen/all-specs/python-django_tagging.spec:46:%{py_sitescriptdir}/django_tagging-%{version}-py*.egg-info

[~/relup/python-django-contact-form(1.1) (master)⚡] ➔

-- 
glen



More information about the pld-devel-en mailing list