Simon Willison
bd39cb4805
Use service-specific image ID for Cloud Run deploys, refs #2036
2023-03-08 12:25:55 -08:00
Simon Willison
9676b2deb0
Upgrade Docker images to Python 3.11, closes #1853
2022-10-25 12:04:53 -07:00
Simon Willison
82167105ee
--min-instances and --max-instances Cloud Run publish options, closes #1779
2022-08-14 10:07:30 -07:00
Simon Willison
080d4b3e06
Switch to python:3.10.6-slim-bullseye for datasette publish - refs #1768
2022-08-14 08:49:14 -07:00
Tim Sherratt
3001e1e394
Add timeout option to Cloudrun build ( #1717 )
...
* Add timeout option for build phase
* Make the --timeout setting optional
* Add test for --timeout setting
Thanks, @wragge
2022-04-24 07:03:08 -07:00
Simon Willison
a1f3830356
--cpu option for datasette publish cloudrun, closes #1420
2021-08-03 22:20:50 -07:00
Simon Willison
ff253f5242
Replace all uses of runner.isolated_filesystem, refs #1406
2021-07-31 11:49:08 -07:00
Simon Willison
b46856391d
pytest.mark.serial for any test using isolated_filesystem(), refs #1406
2021-07-30 16:46:41 -07:00
Simon Willison
e55cd9dc3f
Try passing a directory to isolated_filesystem(), refs #1406
2021-07-29 18:16:58 -07:00
Simon Willison
2b1c535c12
pytest.mark.serial for any test using isolated_filesystem(), refs #1406
2021-07-29 17:44:16 -07:00
Konstantin Baikov
8e18c79431
Use context manager instead of plain open ( #1211 )
...
Context manager with open closes the files after usage.
When the object is already a pathlib.Path i used read_text
write_text functions
In some cases pathlib.Path.open were used in context manager,
it is basically the same as builtin open.
Thanks, Konstantin Baikov!
2021-03-11 08:15:49 -08:00
Simon Willison
faa76390a0
Fixed bug introduced in e1efa9b7
, refs #1178
2021-01-07 16:01:01 -08:00
Simon Willison
97fb10c17d
Applied Black, refs #1178
2021-01-06 10:22:20 -08:00
Simon Willison
e1efa9b7a3
force_https_urls on for publish cloudrun, refs #1178
2021-01-06 10:13:34 -08:00
Simon Willison
37d18a5bce
datasette publish cloudrun --apt-get-install, closes #1110
2020-11-24 19:05:35 -08:00
Simon Willison
30e64c8d3b
Use f-strings in place of .format()
...
Code transformed like so:
pip install flynt
flynt .
black .
2020-11-15 15:24:22 -08:00
Simon Willison
a648bb82ba
Upgrade to Black 20.8b1, closes #958
2020-09-02 15:24:55 -07:00
Simon Willison
98632f0a87
--secret command for datasette publish
...
Closes #787
2020-06-11 09:02:03 -07:00
Simon Willison
d349d57cdf
Smarter merging of metadata and extra_metadata, closes #724
2020-04-10 11:34:09 -07:00
Simon Willison
6717c719dd
--metadata accepts YAML as well as JSON - closes #713
2020-04-02 12:30:53 -07:00
Simon Willison
e1a817411a
Bump to click 7.1.1 to fix flaky tests
2020-03-21 18:47:51 -07:00
Simon Willison
ddd11b3ddd
--memory option for publish cloudrun, refs #694
2020-03-05 17:34:36 -06:00
Katie McLaughlin
34d77d780f
gcloud run is now GA, s/beta// ( #660 )
...
Thanks, @glasnt
2020-01-21 15:28:11 -08:00
Simon Willison
d977fbadf7
datasette publish uses python:3.8 base Docker image, closes #629
2019-11-11 22:03:09 -08:00
Simon Willison
83fc5165ac
Improved UI for publish cloudrun, closes #608
2019-11-07 18:48:39 -08:00
Simon Willison
3e864b1625
Use --platform=managed for publish cloudrun, closes #587
2019-10-17 14:51:45 -07:00
Simon Willison
973f8f139d
--plugin-secret option for datasette publish
...
Closes #543
Also added new --show-files option to publish now and publish cloudrun - handy for debugging.
2019-07-07 19:06:31 -07:00
Simon Willison
35d6ee2790
Apply black to everything, enforce via unit tests ( #449 )
...
I've run the black code formatting tool against everything:
black tests datasette setup.py
I also added a new unit test, in tests/test_black.py, which will fail if the code does not
conform to black's exacting standards.
This unit test only runs on Python 3.6 or higher, because black itself doesn't run on 3.5.
2019-05-03 22:15:14 -04:00
Romain Primet
75a21fc2a1
datasette publish cloudrun ( #434 ) - thanks, @rprimet
...
New publish subcommand that publishes using the
new Google Cloud Run platform.
datasette publish cloudrun database.db
2019-05-03 09:59:01 -04:00