datasette/datasette
Simon Willison db1e6bc182
--version-note for datasette, datasette publish and datasette package
This is a relatively obscure new command-line argument that helps solve the
problem of showing accurate version information in deployed instances of
Datasette even if they were deployed directly from source code.

You can pass --version-note to datasette publish and package and it will then
in turn be passed to datasette when it starts:

    datasette --version-note=hello fixtures.db

Now if you visit /-/versions.json you will see this:

    {
        "datasette": {
            "note": "hello",
            "version": "0+unknown"
        },
        "python": {
            "full": "3.6.5 (default, Jun  6 2018, 19:19:24) \n[GCC 6.3.0 20170516]",
            "version": "3.6.5"
        },
        ...
    }

I plan to use this in some Travis CI configuration, refs #313
2018-06-17 14:19:39 -07:00
..
static Hide sort select on larger screens, closes #300 2018-05-31 07:43:06 -07:00
templates Basic CSV export, refs #266 2018-06-14 23:51:23 -07:00
views ?_labels= and ?_label=COL to expand foreign keys in JSON/CSV 2018-06-16 15:18:57 -07:00
__init__.py Move version info back to separate module 2018-05-22 12:35:21 -07:00
_version.py Add version number support with Versioneer 2018-05-22 12:35:21 -07:00
app.py --version-note for datasette, datasette publish and datasette package 2018-06-17 14:19:39 -07:00
cli.py --version-note for datasette, datasette publish and datasette package 2018-06-17 14:19:39 -07:00
hookspecs.py New plugin hooks: extra_css_urls() and extra_js_urls() 2018-04-17 20:12:21 -07:00
inspect.py Refactor inspect logic 2018-05-22 07:03:06 -07:00
utils.py --version-note for datasette, datasette publish and datasette package 2018-06-17 14:19:39 -07:00
version.py Move version info back to separate module 2018-05-22 12:35:21 -07:00