cake-0.2.3
توضیحات
Minimalistic Python build tool inspired by Rake
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cake-0.2.3 |
| نام | cake |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alexandru Cepoi |
| ایمیل نویسنده | alex.cepoi@gmail.com |
| آدرس صفحه اصلی | https://github.com/alexcepoi/cake |
| آدرس اینترنتی | https://pypi.org/project/cake/ |
| مجوز | GPLv3 |
It uses a simple python script (Cakefile) located in the project root to define its tasks.
Cake can be run and can run tasks from anywhere within the project.
Features
---------------------------------------------------
* Task descriptions
* Task arguments
* Colored output
Usage
---------------------------------------------------
List all tasks
::
cake
Execute task
::
cake [name] [args]
Example
---------------------------------------------------
::
$ cat Cakefile
from cake.lib import task, path
@task("header information")
def test(value='test'):
""" task description """
print('current dir: %s' % path.current)
print('project dir: %s' % path.root)
print('running with value %s' % value)
::
$ cake
(in /home/alex/work/cake/examples)
cake test # task description
::
$ cake test example
(in /home/alex/work/cake/examples)
** test: header information
current dir: /home/alex/work/cake/examples
project dir: /home/alex/work/cake/examples
running with value example
Install
---------------------------------------------------
::
pip install cake
نحوه نصب
نصب پکیج whl cake-0.2.3:
pip install cake-0.2.3.whl
نصب پکیج tar.gz cake-0.2.3:
pip install cake-0.2.3.tar.gz