Simon Willison
5471e3c491
Release 0.61a0
...
Refs #957 , #1533 , #1545 , #1576 , #1577 , #1587 , #1601 , #1603 , #1607 , #1612 , #1621 , #1649 , #1654 , #1657 , #1661 , #1668
2022-03-19 18:14:40 -07:00
Simon Willison
cdbae2b93f
Fixed internal links to respect db.route, refs #1668
2022-03-19 17:31:23 -07:00
Simon Willison
e10da9af35
alternative-route demo, refs #1668
2022-03-19 17:21:56 -07:00
Simon Willison
7a6654a253
Databases can now have a .route separate from their .name, refs #1668
2022-03-19 17:11:17 -07:00
Simon Willison
798f075ef9
Read format from route captures, closes #1667
...
Refs #1660
2022-03-19 13:32:29 -07:00
Simon Willison
b9c2b1cfc8
Consistent treatment of format in route capturing, refs #1667
...
Also refs #1660
2022-03-19 13:29:10 -07:00
Simon Willison
61419388c1
Rename route match groups for consistency, refs #1667 , #1660
2022-03-19 09:52:08 -07:00
Simon Willison
764738dfcb
test_routes also now asserts matches, refs #1666
2022-03-19 09:30:22 -07:00
Simon Willison
711767bcd3
Refactored URL routing to add tests, closes #1666
...
Refs #1660
2022-03-18 21:03:08 -07:00
Simon Willison
4e47a2d894
Fixed bug where tables with a column called n caused 500 errors
...
Closes #1228
2022-03-18 18:37:54 -07:00
Simon Willison
32963018e7
Updated documentation to remove hash_urls, refs #1661
2022-03-18 17:33:06 -07:00
Simon Willison
9979dcd07f
Also remove default_cache_ttl_hashed setting, refs #1661
2022-03-18 17:25:14 -07:00
Simon Willison
8658c66438
Show error if --setting hash_urls 1 used, refs #1661
2022-03-18 17:19:31 -07:00
Simon Willison
d4f60c2388
Remove hashed URL mode
...
Also simplified how view class routing works.
Refs #1661
2022-03-18 17:12:03 -07:00
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