Simon Willison
30e5f0e67c
Documented internals used by datasette-hashed-urls
...
Closes #1663
2022-03-17 14:30:02 -07:00
dependabot[bot]
77a904fea1
Update pytest requirement from <7.1.0,>=5.2.2 to >=5.2.2,<7.2.0 ( #1656 )
...
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest ) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...7.1.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-15 11:03:01 -07:00
Simon Willison
a35393b29c
Tilde encoding ( #1659 )
...
Closes #1657
Refs #1439
2022-03-15 11:01:57 -07:00
Simon Willison
c10cd48baf
Min pytest-asyncio of 0.17
...
So that the asyncio_mode in pytest.ini does not produce
a warning on older versions of that library.
2022-03-15 08:43:47 -07:00
Simon Willison
645381a5ed
Add code of conduct again
...
Refs #1658
2022-03-15 08:38:42 -07:00
Simon Willison
77e718c3ff
Revert "Fix bug with percentage redirects, close #1650"
...
This reverts commit c85d669de3
.
Refs #1658
2022-03-15 08:37:31 -07:00
Simon Willison
5a353a32b9
Revert "Fixed tests for urlsafe_components, refs #1650"
...
This reverts commit bb499942c1
.
Refs #1658
2022-03-15 08:37:14 -07:00
Simon Willison
239aed1820
Revert "Code of conduct, refs #1654"
...
This reverts commit c5791156d9
.
Refs #1658
2022-03-15 08:36:42 -07:00
Simon Willison
c5791156d9
Code of conduct, refs #1654
2022-03-07 14:04:10 -08:00
Simon Willison
bb499942c1
Fixed tests for urlsafe_components, refs #1650
2022-03-07 11:33:31 -08:00
Simon Willison
c85d669de3
Fix bug with percentage redirects, close #1650
2022-03-07 11:26:08 -08:00
Simon Willison
020effe47b
Preserve query string in % to - redirects, refs #1650
2022-03-07 08:18:07 -08:00
Simon Willison
d714c67d65
asyncio_mode = strict to avoid pytest warnings
2022-03-07 08:09:15 -08:00
Simon Willison
644d25d1de
Redirect old % URLs to new - encoded URLs, closes #1650
...
Refs #1439
2022-03-07 08:01:42 -08:00
Simon Willison
1baa030eca
Switch to dash encoding for table/database/row-pk in paths
...
* Dash encoding functions, tests and docs, refs #1439
* dash encoding is now like percent encoding but with dashes
* Use dash-encoding for row PKs and ?_next=, refs #1439
* Use dash encoding for table names, refs #1439
* Use dash encoding for database names, too, refs #1439
See also https://simonwillison.net/2022/Mar/5/dash-encoding/
2022-03-07 07:38:29 -08:00
Dan Peterson
de810f49cc
Add /opt/homebrew to where spatialite extension can be found ( #1649 )
...
Helps homebrew on Apple Silicon setups find spatialite without needing
a full path.
Similar to #1114
Thanks, @danp
2022-03-06 11:39:15 -08:00
David Larlet
0499f174c0
Typo in docs about default redirect status code ( #1589 )
2022-03-05 17:58:31 -08:00
dependabot[bot]
7b78279b93
Update pytest-timeout requirement from <2.1,>=1.4.2 to >=1.4.2,<2.2 ( #1602 )
...
Updates the requirements on [pytest-timeout](https://github.com/pytest-dev/pytest-timeout ) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-timeout/releases )
- [Commits](https://github.com/pytest-dev/pytest-timeout/compare/1.4.2...2.1.0 )
---
updated-dependencies:
- dependency-name: pytest-timeout
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-05 17:41:49 -08:00
dependabot[bot]
73f2d25f70
Update asgiref requirement from <3.5.0,>=3.2.10 to >=3.2.10,<3.6.0 ( #1610 )
...
Updates the requirements on [asgiref](https://github.com/django/asgiref ) to permit the latest version.
- [Release notes](https://github.com/django/asgiref/releases )
- [Changelog](https://github.com/django/asgiref/blob/main/CHANGELOG.txt )
- [Commits](https://github.com/django/asgiref/compare/3.2.10...3.5.0 )
---
updated-dependencies:
- dependency-name: asgiref
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-05 17:30:27 -08:00
dependabot[bot]
b21839dd1a
Update pytest requirement from <6.3.0,>=5.2.2 to >=5.2.2,<7.1.0 ( #1629 )
...
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest ) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...7.0.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-05 17:30:05 -08:00
dependabot[bot]
a22ec96c3a
Update pytest-asyncio requirement from <0.17,>=0.10 to >=0.10,<0.19 ( #1631 )
...
Updates the requirements on [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio ) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases )
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.10.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-05 17:29:53 -08:00
Simon Willison
5010d1359b
Fix for test failure caused by SQLite 3.37.0+, closes #1647
2022-03-05 11:46:59 -08:00
Simon Willison
dd94157f89
Link to tutorials from documentation index page
2022-02-27 10:04:03 -08:00
Simon Willison
7d24fd405f
datasette-auth-passwords is now an example of register_commands
...
Refs https://github.com/simonw/datasette-auth-passwords/issues/19
2022-02-09 09:47:54 -08:00
Simon Willison
458f03ad3a
More SpatiaLite details on /-/versions, closes #1607
2022-02-08 22:32:19 -08:00
Simon Willison
1b2f0ab6bb
Revert "Use de-dupe idiom that works with Python 3.6, refs #1632"
...
This reverts commit 5bfd001b55
.
No need for this on the main branch because it doesn't support Python 3.6 any more.
2022-02-07 15:43:45 -08:00
Simon Willison
5bfd001b55
Use de-dupe idiom that works with Python 3.6, refs #1632
2022-02-07 15:42:37 -08:00
Simon Willison
fa5fc327ad
Release 0.60.2
...
Refs #1632
2022-02-07 15:34:01 -08:00
Simon Willison
0cd982fc6a
De-duplicate 'datasette db.db db.db', closes #1632
...
Refs https://github.com/simonw/datasette-publish-fly/pull/12
2022-02-07 15:28:59 -08:00
Simon Willison
03305ea183
Remove python.version, refs #1176
2022-02-06 22:40:47 -08:00
Simon Willison
fdce6f29e1
Reconfigure ReadTheDocs, refs #1176
2022-02-06 22:38:27 -08:00
Simon Willison
d9b508ffaa
@documented decorator plus unit test plus sphinx.ext.autodoc
...
New mechanism for marking datasette.utils functions that should be covered by the
documentation, then testing that they have indeed been documented.
Also enabled sphinx.ext.autodoc which can now be used to embed the documented
versions of those functions.
Refs #1176
2022-02-06 22:31:06 -08:00
Simon Willison
9b83ff2ee4
Fixed spelling of "raise"
2022-02-05 22:46:33 -08:00
Simon Willison
8a25ea9bca
Implemented import shortcuts, closes #957
2022-02-05 22:34:33 -08:00
Simon Willison
d25b55ab5e
Fixed rST warnings
2022-02-05 22:32:23 -08:00
Simon Willison
1c6b297e3e
Link to datasette.tracer from trace_debug docs, refs #1576
2022-02-04 21:28:35 -08:00
Simon Willison
da53e0360d
tracer.trace_child_tasks() for asyncio.gather tracing
...
Also added documentation for datasette.tracer module.
Closes #1576
2022-02-04 21:19:49 -08:00
Simon Willison
ac239d34ab
Refactor test_trace into separate test module, refs #1576
2022-02-04 20:45:13 -08:00
Robert Christie
1af1041f91
Jinja template_name should use "/" even on Windows ( #1617 )
...
Closes #1545 . Thanks, Robert Christie
2022-02-02 17:58:35 -08:00
dependabot[bot]
b5e6b1a9e1
Bump black from 21.12b0 to 22.1.0 ( #1616 )
...
Bumps [black](https://github.com/psf/black ) from 21.12b0 to 22.1.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/commits/22.1.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-02 14:23:51 -08:00
Simon Willison
a9d8824617
Test against Python 3.11-dev
...
Closes #1621
2022-02-02 13:58:52 -08:00
Simon Willison
23a09b0f6a
Remove JSON rel=alternate from some pages, closes #1623
2022-02-02 13:48:52 -08:00
Simon Willison
8d5779acf0
Refactored alternate_url_json mechanism, refs #1620 , #1533
2022-02-02 13:32:47 -08:00
Simon Willison
b72b2423c7
rel=alternate JSON for queries and database pages, closes #1620
2022-02-02 13:22:45 -08:00
Simon Willison
3ef47a0896
Link rel=alternate header for tables and rows
...
Also added Access-Control-Expose-Headers: Link to --cors mode.
Closes #1533
Refs https://github.com/simonw/datasette-notebook/issues/2
LL# metadata.json.1
2022-02-01 23:49:09 -08:00
Simon Willison
2aa686c655
It's not a weekly newsletter
2022-01-26 10:21:05 -08:00
Simon Willison
84391763a8
Clarify that magic parameters don't work for custom SQL
2022-01-25 10:39:03 -08:00
Simon Willison
68cc1e2dbb
Move queries to top of database page, refs #1612
2022-01-25 10:28:15 -08:00
Simon Willison
d194db4204
Output pip freeze to show installed packages, refs #1609
2022-01-20 18:02:04 -08:00
Simon Willison
ffca55dfd7
Show link to /stable/ on /latest/ pages, refs #1608
2022-01-20 14:40:44 -08:00