Skip to content

Commit 0665175

Browse files
committed
removed some obsolete remaining code related to sqlite support in scrapy
1 parent 68c1c98 commit 0665175

File tree

5 files changed

+0
-27
lines changed

5 files changed

+0
-27
lines changed

docs/topics/commands.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ structure by default, similar to this::
3535
spider1.py
3636
spider2.py
3737
...
38-
.scrapy/
39-
scrapy.db
4038

4139
The directory where the ``scrapy.cfg`` file resides is known as the *project
4240
root directory*. That file contains the name of the python module that defines
@@ -45,12 +43,6 @@ the project settings. Here is an example::
4543
[settings]
4644
default = myproject.settings
4745

48-
By default, Scrapy projects use a SQLite_ database to store persistent runtime
49-
data of the project, such as the spider queue (the list of spiders that are
50-
scheduled to run). By default, this SQLite database is stored in the *project
51-
data directory* which, by default, is the ``.scrapy`` directory inside the
52-
project root directory mentioned above.
53-
5446
Using the ``scrapy`` tool
5547
=========================
5648

@@ -466,5 +458,3 @@ commands for your Scrapy project.
466458
Example::
467459

468460
COMMANDS_MODULE = 'mybot.commands'
469-
470-
.. _SQLite: http://en.wikipedia.org/wiki/SQLite

docs/topics/settings.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -883,18 +883,6 @@ Example::
883883

884884
SPIDER_MODULES = ['mybot.spiders_prod', 'mybot.spiders_dev']
885885

886-
.. setting:: SQLITE_DB
887-
888-
SQLITE_DB
889-
---------
890-
891-
Default: ``'scrapy.db'``
892-
893-
The location of the project SQLite database, used for storing the spider queue
894-
and other persistent data of the project. If a relative path is given, is taken
895-
relative to the project data dir. For more info see:
896-
:ref:`topics-project-structure`.
897-
898886
.. setting:: STATS_CLASS
899887

900888
STATS_CLASS

scrapy/settings/default_settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@
246246

247247
SPIDER_MODULES = []
248248

249-
SQLITE_DB = 'scrapy.db'
250-
251249
STATS_CLASS = 'scrapy.statscol.MemoryStatsCollector'
252250
STATS_ENABLED = True
253251
STATS_DUMP = True

scrapyd/environ.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ def get_environment(self, message, slot):
2727
env['SCRAPY_JOB'] = message['_job']
2828
if project in self.settings:
2929
env['SCRAPY_SETTINGS_MODULE'] = self.settings[project]
30-
dbpath = os.path.join(self.dbs_dir, '%s.db' % project)
31-
env['SCRAPY_SQLITE_DB'] = dbpath
3230
env['SCRAPY_LOG_FILE'] = self._get_log_file(message)
3331
return env
3432

scrapyd/tests/test_environ.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ def test_get_environment_with_eggfile(self):
2929
self.assertEqual(env['SCRAPY_SLOT'], '3')
3030
self.assertEqual(env['SCRAPY_SPIDER'], 'myspider')
3131
self.assertEqual(env['SCRAPY_JOB'], 'ID')
32-
self.assert_(env['SCRAPY_SQLITE_DB'].endswith('mybot.db'))
3332
self.assert_(env['SCRAPY_LOG_FILE'].endswith(os.path.join('mybot', 'myspider', 'ID.log')))
3433
self.failIf('SCRAPY_SETTINGS_MODULE' in env)

0 commit comments

Comments
 (0)