Commit Graph

16 Commits

Author SHA1 Message Date
Tom Christie e2ece4f8d4 Drop 3.8-dev from matrix 2019-06-14 11:22:59 +01:00
Daniel Hahler f661aead04 ci: Travis: sudo is deprecated (#475) 2019-04-10 14:18:28 +02:00
Daniel Hahler ed1cc13200 reqs: minor cleanup (#422)
* reqs: minor cleanup

- codecov is only required on CI/Travis, install it there then.
- databases is a requirement for testing.

* setup.py: remove sqlalchemy from (full) reqs

- it is only used for tests
- databases requires it already
2019-03-06 20:30:16 +00:00
Tom Christie e396f079a5
Version 0.11 (#402)
* Add Mount(routes=...)

* Lifespan route instance

* Lifespan as a standard routing component

* Linting

* Linting

* Version 0.10.6

* Release notes

* Version 0.11.0

* Drop redundant import

* Drop redundant database requirements

* Include htmlcov in scripts/clean

* Drop redundant import

* Release notes

* Linting
2019-02-19 12:54:57 +00:00
Pradip Caulagi 208b4aa207 Python 3.8 requires openssl support which is available in xenial (#359) 2019-02-11 08:59:53 +00:00
Tom Christie 3270762c16
MySQL driver support (#366)
* initial support for MySQL

* Work towards testing both MySQL and Postgres drivers

* Linting

* STARLETTE_TEST_DATABASE -> STARLETTE_TEST_DATABASES

* Parameterize the database tests

* Include the MySQL Database URL

* MySQL tests should create the database if it doesn't yet exist

* Explict port of MySQL database URL

* Debugging on Travis

* Pass 'args' as a single argument

* Fix query compilation for mysql

* Lookup record values for MySQL

* Coerce MySQL results to correct python_type

* cursor.fetchrow should be cursor.fetchone

* Fix call to cursor.fetchone()

* Fix for fetchval()

* Debugging

* Nested transaction for MySQL should use SAVEPOINTS

* Drop savepoint implementation

* Fix SAVEPOINT implementation for MySQL

* Coverage for MySQL

* Linting

* Tweak defaults for MySQL connections
2019-01-30 14:21:58 +00:00
Tom Christie 437da1c0f0
type of subprotocol is str, not List[str] (#308)
* type of subprotocol is str, not List[str]

* Force upgrade cached requirements

* Attempt to force clean test re-run

* Always force latest requirements
2019-01-07 14:21:39 +00:00
Tom Christie 1a20c63f14
Add Config() (#250)
* Add Config()

* Fix STARLETTE_TEST_DATABASE in tests
2018-12-05 11:53:38 +00:00
Tom Christie 0b7819b4b2
Add DatabaseMiddleware (#243)
* Add `DatabaseMiddleware`
2018-12-04 16:05:16 +00:00
Tom Christie 060f0593bc
Push black linting into ./scripts/test (#96)
* Push black linting into ./scripts/test Fix some annotations etc.

* Skip black on 3.7

* Fix script

* Blergh. Shell equality tests are weird

* Attempt to fix equality check
2018-10-09 12:27:27 +01:00
Tom Christie eef545df41 Only run linting on 3.6 2018-06-25 14:57:13 +01:00
Tom Christie 8efc4af842 Requires 3.6+ (To support async generators) 2018-06-25 14:50:22 +01:00
Tom Christie 64db036d00 Add code coverage 2018-06-25 14:48:18 +01:00
Tom Christie a2a2a2968c Only install black on Python >= 3.6 2018-06-25 14:42:38 +01:00
Tom Christie 548d5cde17 Only run 'black' on python >= 3.6 2018-06-25 14:35:44 +01:00
Tom Christie 5a9fe3f048 Initial commit 2018-06-25 14:15:32 +01:00