Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#7268 closed (duplicate)

Have a consistent handling of Django scripts for upstream distributors

Reported by: Raphaël Hertzog <hertzog@…> Owned by: nobody
Component: Tools Version: master
Severity: Keywords:
Cc: gav@… Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Hello, I'm one of the debian maintainer of python-django and have some suggestions.

It would be nice if all the scripts in django/bin/ could:

  • be named consistently "django-<something>" so that they can be installed in /usr/bin/ without polluting the namespace (the manual pages in docs/man need to be renamed too)
  • all have the standard shebang line "#!/usr/bin/env python" (django/bin/profiling/gather_profile_stats.py lacks it)
  • be made executable by default (add the svn:executable property or make sure that setup.py add the executable bits)

Currently Debian already installs django-admin in /usr/bin together with the associated manual page. If the other scripts were renamed, we could so the same and have django-make-messages on the $PATH instead of hidden deep in the standard python hierarchy. BTW, I attach a patch for extras/django_bash_completion that also accept "djando-admin" as name for the django-admin.py script.

Thanks for considering those issues that matters mainly for distributors.

Attachments (1)

02_bash_completion.diff (1.4 KB) - added by Raphael Hertzog <hertzog@…> 7 years ago.
Make bash completion file recognize "django-admin" command

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by Raphael Hertzog <hertzog@…>

Make bash completion file recognize "django-admin" command

comment:1 Changed 7 years ago by anonymous

  • Cc gav@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by Simon Greenhill

  • Has patch set
  • Summary changed from Have a consistent handling of Django scripts to Have a consistent handling of Django scripts for upstream distributors
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 7 years ago by adrian

(In [7658]) Added shebang line to bin/profiling/gather_profile_stats.py. Refs #7268

comment:4 Changed 7 years ago by russellm

(In [7690]) Refs #7268 -- Added django-admin as an alias in the django-bash-completion script. Thanks, Raphael Hertzog <hertzog@…>

comment:5 Changed 7 years ago by russellm

(In [7691]) Refs #7268 -- Added svn:executable flag for the Bash completion script.

comment:6 Changed 7 years ago by russellm

  • Has patch unset
  • milestone set to 1.0 alpha
  • Triage Stage changed from Ready for checkin to Design decision needed

There is one outstanding part to this ticket - renaming of scripts and man pages to have a common prefix. This would be a backwards incompatible change, so we need to make a decision pre-v1. Moving to Design Decision Required with a version tag of 1.0-alpha to remind us to discuss this at a sprint.

comment:7 Changed 7 years ago by jezdez

FYI, I intend to move most of the scripts in django/bin to django.core.management.commands as discussed in #5522 (which has patches and docs).

comment:8 Changed 7 years ago by russellm

  • Resolution set to duplicate
  • Status changed from new to closed

Ok; Closing remaining parts of ticket in favour of #5522.

comment:9 Changed 4 years ago by jacob

  • milestone 1.0 alpha deleted

Milestone 1.0 alpha deleted

Note: See TracTickets for help on using tickets.
Back to Top