Search code examples
pythoneggscrapyd

Building an egg of my python project


Can somebody please guide me with step-by-step procedure on how to eggfy my existing python project? The documentation is keep mentioning something about setup.py within a package but I cannot find it in my project...

thank you,


Solution

  • assuming scrapy daemon run on localhost, it should be as simple as:

    cd /root/of/scrapy/project/where/scrapy.cfg/is
    scrapy deploy
    

    otherwise, insert another entry in scrapy.cfg file, for example:

    [deploy:scrapyd2]
    url = http://scrapyd.mydomain.com/api/scrapyd/
    username = john
    password = secret
    

    for more info see scrapyd documentation