Skip to content

Commit

Permalink
pass default paths as strings [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Oct 24, 2019
1 parent 80e2e5b commit 4b42380
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dev/tasks/crossbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,11 +1049,11 @@ def send(self, smtp_user, smtp_password, smtp_server, smtp_port):
@click.option('--github-token', '-t', default=None,
help='OAuth token for GitHub authentication')
@click.option('--arrow-path', '-a',
type=click.Path(exists=True), default=DEFAULT_ARROW_PATH,
type=click.Path(exists=True), default=str(DEFAULT_ARROW_PATH),
help='Arrow\'s repository path. Defaults to the repository of '
'this script')
@click.option('--queue-path', '-q',
type=click.Path(exists=True), default=DEFAULT_QUEUE_PATH,
type=click.Path(exists=True), default=str(DEFAULT_QUEUE_PATH),
help='The repository path used for scheduling the tasks. '
'Defaults to crossbow directory placed next to arrow')
@click.option('--queue-remote', '-qr', default=None,
Expand All @@ -1080,7 +1080,7 @@ def crossbow(ctx, github_token, arrow_path, queue_path, queue_remote,

@crossbow.command()
@click.option('--changelog-path', '-c', type=click.Path(exists=True),
default=DEFAULT_ARROW_PATH / 'CHANGELOG.md',
default=str(DEFAULT_ARROW_PATH / 'CHANGELOG.md'),
help='Path of changelog to update')
@click.option('--arrow-version', '-v', default=None,
help='Set target version explicitly')
Expand Down Expand Up @@ -1253,7 +1253,8 @@ def report(obj, job_name, sender_name, sender_email, recipient_email,

@crossbow.command()
@click.argument('job-name', required=True)
@click.option('-t', '--target-dir', default=DEFAULT_ARROW_PATH / 'packages',
@click.option('-t', '--target-dir',
default=str(DEFAULT_ARROW_PATH / 'packages'),
type=click.Path(file_okay=False, dir_okay=True),
help='Directory to download the build artifacts')
@click.pass_obj
Expand Down

0 comments on commit 4b42380

Please sign in to comment.