From 5b118ff4abb2a158d70f07e182bf7afa620b6cda Mon Sep 17 00:00:00 2001 From: Jordi Llonch Date: Wed, 6 Mar 2013 06:36:23 +1100 Subject: [PATCH] added documentation (experimental feature) --- docs/experimental/index.rst | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/experimental/index.rst b/docs/experimental/index.rst index c84fefb1e..1c019c396 100644 --- a/docs/experimental/index.rst +++ b/docs/experimental/index.rst @@ -16,4 +16,19 @@ it's properly merged) . Use at your own risk. This documentation is a work in progress. Use at your own risk. -*No experimental features at this time* +Add commands using external libraries +------------------------------------- + +You can also add Scrapy commands from an external library by adding `scrapy.commands` section into entry_points in the `setup.py`. + +The following example adds `my_command` command:: + + from setuptools import setup, find_packages + + setup(name='scrapy-mymodule', + entry_points={ + 'scrapy.commands': [ + 'my_command=my_scrapy_module.commands:MyCommand', + ], + }, + )