Skip to content

Commit 3658e0f

Browse files
authored
Merge pull request #256 from my8100/release_v160
Release v1.6.0 and use scrapydweb_settings_v11.py
2 parents ca6200d + 321a7d5 commit 3658e0f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+64
-10
lines changed

HISTORY.md

Lines changed: 7 additions & 0 deletions

scrapydweb/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .__version__ import __url__, __version__
1414
from .common import handle_metadata
1515
from .models import Metadata, db
16-
from .vars import PYTHON_VERSION, SQLALCHEMY_BINDS, SQLALCHEMY_DATABASE_URI
16+
from .vars import PYTHON_VERSION, SCRAPY_VERSION, SCRAPYD_VERSION, SQLALCHEMY_BINDS, SQLALCHEMY_DATABASE_URI
1717
# from .utils.scheduler import scheduler
1818

1919

@@ -54,6 +54,8 @@ def internal_server_error(error):
5454
python_version=PYTHON_VERSION,
5555
scrapydweb_version=__version__,
5656
logparser_version=LOGPARSER_VERSION,
57+
scrapy_version=SCRAPY_VERSION,
58+
scrapyd_version=SCRAPYD_VERSION,
5759
scrapyd_servers_amount=len(current_app.config.get('SCRAPYD_SERVERS', []))
5860
)
5961
return render_template('500.html', **kwargs), 500
@@ -308,6 +310,8 @@ def inject_variable():
308310
GITHUB_URL=__url__,
309311
PYTHON_VERSION=PYTHON_VERSION,
310312
SCRAPYDWEB_VERSION=__version__,
313+
SCRAPY_VERSION=SCRAPY_VERSION,
314+
SCRAPYD_VERSION=SCRAPYD_VERSION,
311315

312316
# static_css_common=url_for(STATIC, filename='%s/css/common.css' % VERSION),
313317
static_css_dropdown=url_for(STATIC, filename='%s/css/dropdown.css' % VERSION),

scrapydweb/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22

33
__title__ = 'scrapydweb'
4-
__version__ = '1.5.2'
4+
__version__ = '1.6.0'
55
__author__ = 'my8100'
66
__author_email__ = '[email protected]'
77
__url__ = 'https://github.com/my8100/scrapydweb'

scrapydweb/default_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
('username', 'password', 'localhost', '6801', 'group'),
5252
]
5353

54+
# The default is True, set it to False to skip checking connectivity of scrapyd at startup.
55+
CHECK_SCRAPYD_SERVERS = True
5456

5557
# It's recommended to update the three options below
5658
# if both ScrapydWeb and one of your Scrapyd servers run on the same machine.

scrapydweb/run.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ def parse_args(config):
183183
help="current: ENABLE_AUTH = %s, append '--disable_auth' to disable basic auth for web UI" % ENABLE_AUTH
184184
)
185185

186+
CHECK_SCRAPYD_SERVERS = config.get('CHECK_SCRAPYD_SERVERS', True)
187+
parser.add_argument(
188+
'-dc', '--disable_check_scrapyd',
189+
action='store_true',
190+
help="current: CHECK_SCRAPYD_SERVERS = %s, append '--disable_check_scrapyd' skip checking connectivity of scrapyd" % CHECK_SCRAPYD_SERVERS
191+
)
192+
186193
ENABLE_LOGPARSER = config.get('ENABLE_LOGPARSER', False)
187194
parser.add_argument(
188195
'-dlp', '--disable_logparser',
@@ -240,6 +247,8 @@ def update_app_config(config, args):
240247
# action='store_true': default False
241248
if args.disable_auth:
242249
config['ENABLE_AUTH'] = False
250+
if args.disable_check_scrapyd:
251+
config['CHECK_SCRAPYD_SERVERS'] = False
243252
if args.disable_logparser:
244253
config['ENABLE_LOGPARSER'] = False
245254
if args.switch_scheduler_state:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)