Skip to content

Commit d1b9128

Browse files
committed
Merge branch 'master' into import-module
2 parents 10e22aa + fa245af commit d1b9128

16 files changed

+17
-204
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ matrix:
55
exclude:
66
- env: TRAVISBUG="#1027"
77
include:
8-
- python: "2.6"
9-
env: BUILDENV=lucid
108
- python: "2.7"
119
env: BUILDENV=precise
1210
- python: "2.7"

.travis/requirements-lucid.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ http://scrapy.org
2121
Requirements
2222
============
2323

24-
* Python 2.6 or up
24+
* Python 2.7
2525
* Works on Linux, Windows, Mac OSX, BSD
2626

2727
Install

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Source: scrapy-SUFFIX
22
Section: python
33
Priority: optional
44
Maintainer: Scrapinghub Team <[email protected]>
5-
Build-Depends: debhelper (>= 7.0.50), python (>=2.6), python-twisted, python-w3lib, python-lxml
5+
Build-Depends: debhelper (>= 7.0.50), python (>=2.7), python-twisted, python-w3lib, python-lxml
66
Standards-Version: 3.8.4
77
Homepage: http://scrapy.org/
88

docs/faq.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ comparing `jinja2`_ to `Django`_.
2929
What Python versions does Scrapy support?
3030
-----------------------------------------
3131

32-
Scrapy runs in Python 2.6 and 2.7.
32+
Scrapy is supported under Python 2.7 only.
33+
Python 2.6 support was dropped starting at Scrapy 0.20.
3334

34-
Does Scrapy work with Python 3.0?
35+
Does Scrapy work with Python 3?
3536
---------------------------------
3637

37-
No, and there are no plans to port Scrapy to Python 3.0 yet. At the moment,
38-
Scrapy works with Python 2.6 and 2.7.
38+
No, but there are plans to support Python 3.3+.
39+
At the moment, Scrapy works with Python 2.7.
3940

4041
.. seealso:: :ref:`faq-python-versions`.
4142

docs/intro/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pre-requisites
99

1010
The installation steps assume that you have the following things installed:
1111

12-
* `Python`_ 2.6 or 2.7
12+
* `Python`_ 2.7
1313
* `lxml`_. Most Linux distributions ships prepackaged versions of lxml. Otherwise refer to http://lxml.de/installation.html
1414
* `OpenSSL`_. This comes preinstalled in all operating systems except Windows (see :ref:`intro-install-platform-notes`)
1515
* `pip`_ or `easy_install`_ Python package managers

docs/news.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Release notes
1212
- Dropped libxml2 selectors backend
1313
- Dropped support for multiple selectors backends, sticking to lxml only
1414
- Selector Unified API with support for CSS expressions (:issue:`395` and :issue:`426`)
15+
- Dropped Python 2.6 support
1516

1617
0.18.4 (released 2013-10-10)
1718
----------------------------

docs/topics/ubuntu.rst

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ those in Ubuntu, and more stable too since they're continuously built from
1212
fixes.
1313

1414
To use the packages, just add the following line to your
15-
``/etc/apt/sources.list``, and then run ``aptitude update`` and ``aptitude
16-
install scrapy-0.13``::
15+
``/etc/apt/sources.list``, and then run ``aptitude update`` and
16+
``apt-get install scrapy-0.18``::
1717

1818
deb http://archive.scrapy.org/ubuntu DISTRO main
1919

@@ -22,8 +22,7 @@ with command::
2222

2323
lsb_release -cs
2424

25-
Supported Ubuntu releases are: ``karmic``, ``lucid``, ``maverick``, ``natty``,
26-
``oneiric``, ``precise``, ``quantal``, ``raring``.
25+
Supported Ubuntu releases are: ``precise``, ``quantal``, ``raring``.
2726

2827
For Ubuntu Raring (13.04)::
2928

@@ -37,26 +36,6 @@ For Ubuntu Precise (12.04)::
3736

3837
deb http://archive.scrapy.org/ubuntu precise main
3938

40-
For Ubuntu Oneiric (11.10)::
41-
42-
deb http://archive.scrapy.org/ubuntu oneiric main
43-
44-
For Ubuntu Natty (11.04)::
45-
46-
deb http://archive.scrapy.org/ubuntu natty main
47-
48-
For Ubuntu Maverick (10.10)::
49-
50-
deb http://archive.scrapy.org/ubuntu maverick main
51-
52-
For Ubuntu Lucid (10.04)::
53-
54-
deb http://archive.scrapy.org/ubuntu lucid main
55-
56-
For Ubuntu Karmic (9.10)::
57-
58-
deb http://archive.scrapy.org/ubuntu karmic main
59-
6039
.. warning:: Please note that these packages are updated frequently, and so if
6140
you find you can't download the packages, try updating your apt package
6241
lists first, e.g., with ``apt-get update`` or ``aptitude update``.

scrapy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
import sys, os, warnings
1010

11-
if sys.version_info < (2, 6):
12-
print("Scrapy %s requires Python 2.6 or above" % __version__)
11+
if sys.version_info < (2, 7):
12+
print("Scrapy %s requires Python 2.7" % __version__)
1313
sys.exit(1)
1414

1515
# ignore noisy twisted deprecation warnings

scrapy/tests/test_downloadermiddleware_httpproxy.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ def test_proxy_already_seted(self):
6363

6464

6565
def test_no_proxy(self):
66-
if sys.version_info < (2, 6):
67-
raise SkipTest('no_proxy is not supported in python < 2.6')
6866
os.environ['http_proxy'] = http_proxy = 'https://proxy.for.http:3128'
6967
mw = HttpProxyMiddleware()
7068

scrapy/utils/datatypes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"""
77

88
import copy
9-
10-
from scrapy.utils.py27 import OrderedDict
9+
from collections import OrderedDict
1110

1211

1312
class MultiValueDictKeyError(KeyError):
@@ -57,7 +56,7 @@ def __copy__(self):
5756
return self.__class__(dict.items(self))
5857

5958
def __deepcopy__(self, memo=None):
60-
if memo is None:
59+
if memo is None:
6160
memo = {}
6261
result = self.__class__()
6362
memo[id(self)] = result

scrapy/utils/py26.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

scrapy/utils/py27.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

scrapy/xlib/ordereddict.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def is_not_module(filename):
104104
'scripts': scripts,
105105
'classifiers': [
106106
'Programming Language :: Python',
107-
'Programming Language :: Python :: 2.6',
108107
'Programming Language :: Python :: 2.7',
109108
'License :: OSI Approved :: BSD License',
110109
'Operating System :: OS Independent',

tox.ini

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py26, py27, lucid, precise, trunk
7+
envlist = py27, precise, trunk
88

99
[testenv]
1010
deps =
1111
-r{toxinidir}/.travis/requirements-latest.txt
1212
commands =
1313
{toxinidir}/bin/runtests.sh []
1414

15-
[testenv:lucid]
16-
basepython = python2.6
17-
deps =
18-
-r{toxinidir}/.travis/requirements-lucid.txt
19-
2015
[testenv:precise]
2116
basepython = python2.7
2217
deps =

0 commit comments

Comments
 (0)