root/scrapy/__init__.py

Revision 2307:d5d6fb275ee7, 1.0 kB (checked in by Pablo Hoffman <pablo@…>, 4 hours ago)

Bumped version to 0.10

Line 
1"""
2Scrapy - a screen scraping framework written in Python
3"""
4
5version_info = (0, 10, 0, '')
6__version__ = "0.10"
7
8import sys, os, warnings
9
10if sys.version_info < (2,5):
11    print "Scrapy %s requires Python 2.5 or above" % __version__
12    sys.exit(1)
13
14# ignore noisy twisted deprecation warnings
15warnings.filterwarnings('ignore', category=DeprecationWarning, module='twisted')
16
17# prevents noisy (and innocent) dropin.cache errors when loading spiders from
18# egg files using the old Spider Manager. TODO: Remove for Scrapy 0.11
19from twisted.python.zippath import ZipPath
20ZipPath.setContent = lambda x, y: None
21
22# monkey patches to fix external library issues
23from scrapy.xlib import twisted_250_monkeypatches, urlparse_monkeypatches
24
25# optional_features is a set containing Scrapy optional features
26optional_features = set()
27
28try:
29    import OpenSSL
30except ImportError:
31    pass
32else:
33    optional_features.add('ssl')
34
35try:
36    import boto
37except ImportError:
38    pass
39else:
40    optional_features.add('boto')
Note: See TracBrowser for help on using the browser.