Simon Willison
62c08d0d71
Revert "Travis should now deploy new tags to PyPI if tests pass"
...
This reverts commit d39b2e357e
.
It failed with this error: https://travis-ci.org/simonw/datasette/jobs/375398977
Uploading distributions to https://upload.pypi.org/legacy/
Uploading datasette-0.21-py3-none-any.whl
100% 182k/182k [00:00<00:00, 694kB/s]
HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/
2018-05-05 20:22:21 -03:00
Simon Willison
403211de63
Release Datasette 0.21
2018-05-05 20:15:38 -03:00
Simon Willison
d39b2e357e
Travis should now deploy new tags to PyPI if tests pass
2018-05-05 20:15:05 -03:00
Simon Willison
801381b765
Default tests to using a longer timelimit
...
Every now and then a test will fail in Travis CI on Python 3.5 because it hit
the default 20ms SQL time limit.
Test fixtures now default to a 200ms time limit, and we only use the 20ms time
limit for the specific test that tests query interruption. This should make
our tests on Python 3.5 in Travis much more stable.
2018-05-05 19:44:32 -03:00
Simon Willison
1259b8ac0b
Support _search_COLUMN=text searches, closes #237
2018-05-05 19:33:08 -03:00
Simon Willison
4d6a568d6c
Unit tests for _search= feature, refs #237
2018-05-05 19:01:14 -03:00
Simon Willison
ca290719ed
Show version on /-/plugins page, closes #248
2018-05-04 15:04:33 -03:00
Simon Willison
d4da4c92c8
?_size=max option, closes #249
2018-05-04 15:03:40 -03:00
Simon Willison
bb87cf8730
Added /-/versions and /-/versions.json, closes #244
...
Sample output:
{
"python": {
"version": "3.6.3",
"full": "3.6.3 (default, Oct 4 2017, 06:09:38) \n[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]"
},
"datasette": {
"version": "0.20"
},
"sqlite": {
"version": "3.23.1",
"extensions": {
"json1": null,
"spatialite": "4.3.0a"
}
}
}
2018-05-03 11:09:27 -03:00
Simon Willison
690736436b
Bump up time limit for test_paginate_tables_and_views
...
It was intermittently failing in Travis CI on Python 3.5:
https://travis-ci.org/simonw/datasette/jobs/373713476
2018-05-01 17:20:39 -07:00
Simon Willison
349e262bb1
Renamed ?_sql_time_limit_ms= to ?_timelimit, closes #242
2018-05-01 17:20:39 -07:00
Simon Willison
a4cc5dc813
New ?_shape=array option + tweaks to _shape, closes #245
...
* Default is now ?_shape=arrays (renamed from lists)
* New ?_shape=array returns an array of objects as the root object
* Changed ?_shape=object to return the object as the root
* Updated docs
2018-05-01 17:20:39 -07:00
Simon Willison
2565d623af
?_shape=array experimental feature
2018-05-01 17:20:39 -07:00
Simon Willison
aa954382c3
FTS tables now detected by inspect(), closes #240
2018-04-28 17:04:32 -07:00
Simon Willison
f188ceaa2a
New ?_size=XXX querystring parameter for table view, closes #229
...
Also added documentation for all of the _special arguments.
Plus deleted some duplicate logic implementing _group_count.
2018-04-25 21:47:12 -07:00
Simon Willison
4504d5160b
If max_returned_rows==page_size, increment max_returned_rows
...
Fixes #230 , where if the two were equal pagination didn't work correctly.
2018-04-25 21:04:12 -07:00
Simon Willison
02ee31c8b4
New hidden: True option for table metadat, closes #239
2018-04-25 20:42:57 -07:00
Simon Willison
d3a0069c54
Hide idx_* tables if spatialite detected, closes #228
2018-04-25 20:25:21 -07:00
Simon Willison
db7a57a9a6
Added class=rows-and-columns to custom query results table
2018-04-25 20:24:22 -07:00
Simon Willison
7f44d31782
Link to register-of-members-interests tutorial
2018-04-25 10:40:48 -07:00
Simon Willison
00ab954300
Added CSS class rows-and-columns to main table
2018-04-23 18:31:32 -07:00
Simon Willison
f3f4295712
label_column now defined on the table-being-linked-to, fixes #234
2018-04-22 13:46:18 -07:00
Simon Willison
f27cabbaf3
label_column option in metadata.json - closes #234
2018-04-22 10:53:16 -07:00
Simon Willison
ea0a761303
Link to documentation from README
2018-04-20 17:20:56 -07:00
lsb
a971718d2a
Fix a typo ( #232 )
2018-04-20 17:19:07 -07:00
Simon Willison
05bdf53358
Added missing hyphen
2018-04-20 14:15:13 -07:00
Simon Willison
ae02e9f4ac
Added datasette-cluster-map blog entry to news
2018-04-20 14:14:35 -07:00
Simon Willison
3a5d7951ce
Added Datasette 0.20 to news
2018-04-20 07:36:29 -07:00
Simon Willison
72a7ae6859
Datasette 0.20: static assets and templates for plugins
2018-04-20 07:32:02 -07:00
Simon Willison
e2750c7cc0
Add col-X classes to HTML table on custom query page
2018-04-19 08:36:14 -07:00
Simon Willison
1e4c295012
Fixed out-dated template in documentation
2018-04-18 22:57:31 -07:00
Simon Willison
b52171db1e
Plugins can now bundle custom templates, closes #224
...
Refs #14
2018-04-18 22:50:27 -07:00
Simon Willison
b55809a1e2
Added /-/metadata /-/plugins /-/inspect, closes #225
2018-04-18 22:25:22 -07:00
Simon Willison
6e28ed447f
Thanks to #214 JavaScript is no longer 'soon'
2018-04-18 08:17:20 -07:00
Simon Willison
7581320823
Documentation for --install option, refs #223
2018-04-18 08:05:06 -07:00
Simon Willison
404fa2252b
datasette publish/package --install option, closes #223
...
Allows you to specify one or more additional packages to be installed,
useful for deploying plugins.
2018-04-18 07:55:36 -07:00
Simon Willison
2b344f6a34
Ran black against datasette/cli.py
...
https://pypi.org/project/black/
cli.py was getting a bit untidy due to all of the heavily annotated
click function methods - used black to clean it up and make it
easier to read.
2018-04-18 07:52:17 -07:00
Simon Willison
f8f818711b
Formatting tweak
2018-04-17 21:30:58 -07:00
Simon Willison
4be6deb947
Fix for plugins in Python 3.5 ( #222 )
...
ModuleNotFoundError is not a thing in Python 3.5, so catch KeyError/ImportError instead.
2018-04-17 20:24:20 -07:00
Simon Willison
1c36d07dd4
New plugin hooks: extra_css_urls() and extra_js_urls()
...
Closes #214
2018-04-17 20:12:21 -07:00
Simon Willison
ca588b6a30
Fixed example HTML in CSS docs
2018-04-17 19:35:03 -07:00
Simon Willison
0bb483ca5b
/-/static-plugins/PLUGIN_NAME/ now serves static/ from plugins
...
Refs #214
2018-04-17 19:32:48 -07:00
Simon Willison
a5792a8c61
<th> now gets class="col-X" - plus added col-X documentation
...
Refs #209
2018-04-17 19:11:54 -07:00
Simon Willison
dfb87d012c
Use to_css_class for table cell column classes
...
This ensures that columns with spaces in the name will still
generate usable CSS class names. Refs #209
2018-04-17 18:19:21 -07:00
Russ Garrett
136a70d887
Add column name classes to <td>s, make PK bold
2018-04-17 18:13:02 -07:00
Russ Garrett
0f782dd8df
Additional test asserts
2018-04-17 18:13:02 -07:00
Russ Garrett
4586aa506a
Don't duplicate simple primary keys in the link column
...
When there's a simple (single-column) primary key, it looks weird to
duplicate it in the link column.
This change removes the second PK column and treats the link column as
if it were the PK column from a header/sorting perspective.
2018-04-17 18:13:02 -07:00
Russ Garrett
b231d4243d
Correct escaping for HTML display of row links
2018-04-17 18:13:02 -07:00
Simon Willison
aaf59db570
Longer time limit for test_paginate_compound_keys
...
It was failing intermittently in Travis - see #209
2018-04-17 18:09:48 -07:00
Simon Willison
5ebc7137d7
Use application/octet-stream for downloadable databses
...
I'd also like to send the Content-Length here but that's not currently
possible in Sanic - see bug report here:
https://github.com/channelcat/sanic/issues/1194
2018-04-17 17:31:54 -07:00