datasette publish/package --install option, closes #223

Allows you to specify one or more additional packages to be installed,
useful for deploying plugins.
This commit is contained in:
Simon Willison 2018-04-18 07:48:34 -07:00
commit 404fa2252b
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
3 changed files with 54 additions and 10 deletions

View file

@ -197,6 +197,7 @@ def test_temporary_docker_directory_uses_hard_link():
template_dir=None,
plugins_dir=None,
static=[],
install=[],
) as temp_docker:
hello = os.path.join(temp_docker, 'hello')
assert 'world' == open(hello).read()
@ -221,6 +222,7 @@ def test_temporary_docker_directory_uses_copy_if_hard_link_fails(mock_link):
template_dir=None,
plugins_dir=None,
static=[],
install=[],
) as temp_docker:
hello = os.path.join(temp_docker, 'hello')
assert 'world' == open(hello).read()