Allow override of task names #578

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@dansimau
Contributor
dansimau commented Mar 8, 2012

This allows overriding the task name using the name="" argument in @task, which in turn allows the use of Python-reserved words as task names without the need to create an alias eg.:

@task(name="import")
    def _import():
    [...]
@dansimau dansimau Allow override of task name using the name="" argument in @task
This enables the use of Python-reserved words as task names, without the need to create an alias eg.:
    @task(name="import")
        def _import():
        [...]
83d5821
@bitprophet
Member

This is getting the "maintainer needs this now" priority bump!

To do:

  • Move the name kwarg to the end; having it at the start breaks backwards compat for anybody using positional args.
  • Tests
  • Docs
  • Changelog

/me does this now.

@bitprophet bitprophet added a commit that referenced this pull request Oct 19, 2012
@bitprophet bitprophet Docs re #578 1275703
@bitprophet bitprophet added a commit that referenced this pull request Oct 19, 2012
@bitprophet bitprophet Add tests re #578 a01d942
@bitprophet
Member

All set.

@bitprophet bitprophet closed this Oct 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment