"datasette publish heroku" improvements

* Fixed bug where --title= didn't work if -m not provided
* Now using Python 3.6.6 instead of Python 3.6.3
This commit is contained in:
Simon Willison 2018-07-25 22:43:01 -07:00
commit 1fb518618c
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52

View file

@ -406,7 +406,7 @@ def temporary_heroku_directory(
if metadata_content:
open('metadata.json', 'w').write(json.dumps(metadata_content, indent=2))
open('runtime.txt', 'w').write('python-3.6.3')
open('runtime.txt', 'w').write('python-3.6.6')
if branch:
install = ['https://github.com/simonw/datasette/archive/{branch}.zip'.format(
@ -434,7 +434,7 @@ def temporary_heroku_directory(
extras.extend(['--plugins-dir', 'plugins/'])
if version_note:
extras.extend(['--version-note', version_note])
if metadata:
if metadata_content:
extras.extend(['--metadata', 'metadata.json'])
if extra_options:
extras.extend(extra_options.split())