Scrapy, a fast high-level web crawling & scraping framework for Python.
nicer deploy versions for git repos if tags are available
Artem Bogomyagkov7685cb14a4eb
diff --git a/scrapy/commands/deploy.py b/scrapy/commands/deploy.pyindex 082c46455..52661c051 100644--- a/scrapy/commands/deploy.py+++ b/scrapy/commands/deploy.py@@ -150,7 +150,7 @@ def _get_version(target, opts):p = Popen(['hg', 'tip', '--template', '{rev}'], stdout=PIPE)return 'r%s' % p.communicate()[0]elif version == 'GIT':- p = Popen(['git', 'rev-parse', 'HEAD'], stdout=PIPE)+ p = Popen(['git', 'describe', '--always'], stdout=PIPE)return '%s' % p.communicate()[0].strip('\n')elif version:return version