Wykres commitów

33 Commity (bcb59ca466421f199444e2132c220f6ffaa9c655)

Autor SHA1 Wiadomość Data
Simon Willison 13216cb6bd
Don't push alpha/beta tagged releases to Docker Hub
Refs #807
2020-06-18 13:40:33 -07:00
Simon Willison cc4445801e Removed deploy to Zeit Now, refs #705 2020-03-24 19:17:27 -07:00
Simon Willison d54318fc7f Added template_debug setting, closes #654 2019-12-22 16:04:45 +00:00
Simon Willison cf7776d36f
Support Python 3.8, stop supporting Python 3.5 (#627)
* Upgrade to uvicorn 0.10.4
* Drop support for Python 3.5
* Bump all dependencies to latest releases
* Update docs to reflect we no longer support 3.5
* Removed code that skipped black unit test on 3.5

Closes #622
2019-11-11 21:09:11 -08:00
Simon Willison 1c063fae9d
Test against Python 3.8 in Travis (#623)
* Test against Python 3.8 in Travis
* Avoid current_task warnings in Python 3.8
2019-11-10 19:45:34 -08:00
Katie McLaughlin d95048031e Split pypi and docker travis tasks (#480)
Thanks @glasnt!
2019-07-07 13:03:19 -07:00
Simon Willison a5591236c4
Install test dependencies so deploy can work
python tests/fixtures.py needs asgiref or it fails with an error
2019-06-23 20:23:07 -07:00
Simon Willison 5ef3b2d6c9 Don't use -v with pytest in Travis
It seems to slow things down more than I expected.
2019-05-25 09:19:30 -07:00
Simon Willison 6e79fecf7e Travis now uses pytest -v 2019-05-22 22:54:40 -07:00
Simon Willison 7d8573d672 Rename "datasette publish now" to "datasette publish nowv1"
Also added an alias so "datasette publish now" continues to work.

Closes #472
2019-05-19 11:06:51 -07:00
Simon Willison 09ef305c68 Fixed "datasette publish now ... --alias=x"
The --alias argument can now be passed more than once.

Also updated our Travis configuration to use this.

Fixes #459
2019-05-11 13:20:36 -07:00
Simon Willison e7b31ae8c1
Use now --target production instead of now alias
Fix for this error:

    $ now alias --token=$NOW_TOKEN
    > WARN! The `now alias` command (no arguments) was deprecated in favour of `now --target production`.
    > Error! Couldn't find a deployment to alias. Please provide one as an argument.
    The command "now alias --token=$NOW_TOKEN" exited with 1.

https://travis-ci.org/simonw/datasette/jobs/530597261
2019-05-11 10:06:23 -07:00
Simon Willison 553314dcd6
Use dist: xenial and python: 3.7 on Travis (#447) 2019-05-03 14:16:52 -04:00
Simon Willison b65d97792a
Switch to using PYPI_PASSWORD env var in Travis 2019-01-02 19:14:21 -08:00
Simon Willison d0393e821e
Travis to use Python 3.7-dev for a little longer
3.7 produces a 403 forbidden error: https://travis-ci.org/simonw/datasette/jobs/450716231#L6
2018-11-04 22:45:38 -08:00
Simon Willison c2c03f8e7b
Compatible with Python 3.7 2018-11-04 22:40:03 -08:00
Simon Willison 96af802352
Travis applies :latest tag to Docker release, refs #329 2018-09-19 20:23:56 +02:00
Simon Willison 3a46d5e3c4
Removed docker -e flag
docker -e flag is now deprecated: https://docs.docker.com/engine/deprecated/#-e-and---email-flags-on-docker-login
2018-07-23 21:48:36 -07:00
Simon Willison 2bdab66772
Build and push new tagged releases to Docker Hub
Based on method described in https://sebest.github.io/post/using-travis-ci-to-build-docker-images/
2018-07-23 21:17:57 -07:00
Simon Willison 130dc8823e
Run Travis CI against Python 3.7 as well 2018-07-12 10:36:00 -07:00
Simon Willison 47e689a89b
Speed up Travis by reusing pip wheel cache across builds (#324)
* Cache pip wheels between runs in Travis, refs #323
* Run pytest manually - "python setup.py test" appeared to still download a bunch of stuff: https://travis-ci.org/simonw/datasette/jobs/395306188

* Use extras_require so pip can install test dependencies: https://github.com/pypa/pip/issues/1197#issuecomment-228939212
2018-06-23 18:03:46 -07:00
Simon Willison 0104dccca9
Updated Travis password, refs #317 2018-06-21 08:33:14 -07:00
Simon Willison fc3660cfad
Streaming mode for downloading all rows as a CSV (#315)
* table.csv?_stream=1 to download all rows - refs #266

This option causes Datasette to serve ALL rows in the table, by internally
following the _next= pagination links and serving everything out as a stream.

Also added new config option, allow_csv_stream, which can be used to disable
this feature.

* New config option max_csv_mb limiting size of CSV export
2018-06-17 20:21:02 -07:00
Simon Willison 6a32684ebb
Release tagged versions to PyPI and now alias
When a new tagged version is pushed, this should:

* bdist_wheel it and release to https://pypi.python.org/pypi/datasette
* Set an alias of v0-22-1.datasette.io for the deployed demo
2018-06-17 15:24:47 -07:00
Simon Willison 958b75c698
Set Now deployment name with datasette publish, refs #313 2018-06-17 14:46:30 -07:00
Simon Willison 438244c285
Try using a different name for each Now deploy
Refs #313
2018-06-17 14:39:45 -07:00
Simon Willison f0c17229b7
Deploy latest.datasette.io on commit to master - #313
If the tests pass in Travis CI, deploy an instance containing Datasette's test
fixtures to https://latest.datasette.io/

Also set up an alias of truncated-commit-hash.datasette.io
2018-06-17 14:24:39 -07:00
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 d39b2e357e
Travis should now deploy new tags to PyPI if tests pass 2018-05-05 20:15:05 -03:00
Simon Willison 932e0a3f91
Don't attempt to deploy new tags to PyPI
This isn't working through Travis at the moment, so I'm disabling it and switching back to manual deploys.
2018-04-14 08:21:37 -07:00
Simon Willison 17fee0cc14
Automatically deploy tags as PyPI releases
https://docs.travis-ci.com/user/deployment/pypi/
2017-11-24 19:32:47 -08:00
Simon Willison fa8eb0bf1b
Run unit tests against both Python 3.5 and 3.6 2017-11-22 09:43:52 -08:00
Simon Willison edaa10587e Configured Travis CI 2017-11-04 16:47:46 -07:00