https://github.com/pydoit/doit-plugin-sample
`doit` Command plugin sample
https://github.com/pydoit/doit-plugin-sample
Last synced: 11 months ago
JSON representation
`doit` Command plugin sample
- Host: GitHub
- URL: https://github.com/pydoit/doit-plugin-sample
- Owner: pydoit
- Created: 2015-04-08T19:54:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-08T19:55:30.000Z (about 11 years ago)
- Last Synced: 2025-03-02T22:45:19.697Z (about 1 year ago)
- Language: Python
- Size: 117 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A sample command plugin for [doit](http://pydoit.org).
## setuptools integration
If you install this module using setuptools/pip,
`doit` will auto-load the plugin on its execution.
```
pip install git+https://github.com/pydoit/doit-plugin-sample.git
```
Note that in the plugin `setup.py` the entry-point group should
be `doit.` followed by the plugin category name, in this case `COMMAND`.
```
entry_points = {
'doit.COMMAND': [
'plug_sample = doit_sample_cmd:SampleCmd'
]
},
```
## local plugins
It is also possible to just put this module anywhere in your `PYTHONPATH`
and enable it by adding the following lines into you `doit.cfg` file:
```
[COMMAND]
plug_sample = doit_sample_cmd:SampleCmd
```