Lets doit read tasks defined using classes, decorated functions or function calls.
Project description
Lets doit read tasks defined using classes, decorated functions or function calls.
A sample dodo.py file:
from letsdoit import TaskBase, task # Define a task using a decorator. @task(file_dep=['dodo.py']) def simple(): print "hi" # By calling a function. compile = task(actions=['cc -c main.c'], file_dep=["main.c", "defs.h"], targets=['main.o'], ) # A class with a run() method class hello(TaskBase): """Hello from Python.""" targets = ['hello.txt'] def run(self): with open(self.targets[0], "a") as output: output.write("Hello world.") # A class with a list of actions. class checker(TaskBase): """Run pyflakes.""" actions = ['pyflakes letsdoit.py'] file_dep = ['letsdoit.py']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
letsdoit-0.1.1.tar.gz
(1.7 kB
view details)
File details
Details for the file letsdoit-0.1.1.tar.gz
.
File metadata
- Download URL: letsdoit-0.1.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d4a103933c17bbb334fda60cdbecd8d359022c08f5ec303d6359288cc5f5132 |
|
MD5 | cff8bb14e7d2e8d5c6137668df0aa045 |
|
BLAKE2b-256 | e54720ecd61ea0952628b1308a426eedacbfe7a9bc3ffa15863d0ab9d8fd5313 |