Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG+1] passing apikey as username is suggested by dash #61

Merged
merged 1 commit into from
Nov 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions shub/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import click
import setuptools # not used in code but needed in runtime, don't remove!
_ = setuptools
_ = setuptools # NOQA

from scrapy.utils.project import inside_project
from scrapy.utils.python import retry_on_eintr
Expand Down Expand Up @@ -63,7 +63,8 @@ def cli(target, project, version, list_targets, debug, egg, build_egg):
target = scrapycfg.get_target(target)
project = scrapycfg.get_project(target, project)
version = scrapycfg.get_version(target, version)
auth = (find_api_key(), '')
apikey = target.get('username') or find_api_key()
auth = (apikey, '')

if egg:
log("Using egg: %s" % egg)
Expand Down