131 Commits

Author SHA1 Message Date
f37e4b90df Bump databases >=0.3.0,<0.4 2020-04-25 11:37:20 +02:00
00c07e34a8 Bump dependencies 2020-04-09 17:12:28 +02:00
05286853a6 Bump dependencies 2020-04-04 10:10:05 +02:00
9c23c7cc49 Bump tortoise-orm from 0.15.18 to 0.16.0 (#133)
* Bump tortoise-orm from 0.15.18 to 0.16.0

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.18 to 0.16.0.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.18...0.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise-orm in pyproject

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: François Voron <fvoron@gmail.com>
2020-03-16 07:31:25 +01:00
9281962c2e Bump sqlalchemy from 1.3.13 to 1.3.14 (#125)
* Bump sqlalchemy from 1.3.13 to 1.3.14

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.13 to 1.3.14.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Make sqlalchemy dep version less restrictive

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: François Voron <fvoron@gmail.com>
2020-03-11 08:28:38 +01:00
50b6d257a4 Bump dependencies 2020-03-05 07:42:54 +01:00
efcd80d6a0 Bump fastapi and tortoise-orm 2020-03-01 08:29:13 +01:00
11cdf60038 Bump packages 2020-02-25 08:46:52 +01:00
0b68bd5f5d Bump dependencies 2020-02-13 15:26:16 +01:00
ffc45e5368 Bump dependencies 2020-02-07 08:47:55 +01:00
cc6b3a0d8f Bump fastapi from 0.47.1 to 0.48.0 (#99)
* Bump fastapi from 0.47.1 to 0.48.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.47.1 to 0.48.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.47.1...0.48.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi

Co-authored-by: François Voron <fvoron@gmail.com>
2020-02-05 09:39:57 +01:00
ca8cd5debd Update pyproject.toml to use passlib 1.7.2 (#98)
I was getting DepricationWarnings from using passlib 1.7.1.  It seems like Pipfile has already been updated for 1.7.2 but pyproject.toml got left behind.
2020-02-05 09:22:32 +01:00
0fdd0fd070 Bump sqlalchemy from 1.3.12 to 1.3.13 (#94)
* Bump sqlalchemy from 1.3.12 to 1.3.13

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.12 to 1.3.13.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump sqlalchemy==1.3.13

Co-authored-by: François Voron <fvoron@gmail.com>
2020-02-03 09:53:18 +01:00
4a7f9e750f Bump fastapi from 0.46.0 to 0.47.1 (#92)
* Bump fastapi from 0.46.0 to 0.47.1

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.46.0 to 0.47.1.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.46.0...0.47.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Add Request in event_handlers arguments

* Bump fastapi

Co-authored-by: François Voron <fvoron@gmail.com>
2020-01-20 11:01:04 +01:00
2a537fbb2d Bump tortoise-orm from 0.15.7 to 0.15.9 (#91)
* Bump tortoise-orm from 0.15.7 to 0.15.9

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.7 to 0.15.9.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.7...0.15.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise-orm

Co-authored-by: François Voron <fvoron@gmail.com>
2020-01-20 10:49:40 +01:00
88b133d41c Implement OAuth2 flow (#88)
* Move users router in sub-module

* Factorize UserRouter into EventHandlersRouter

* Implement OAuth registration/login router

* Apply isort/black

* Remove temporary pytest marker

* Fix httpx-oauth version in lock file

* Ensure ON_AFTER_REGISTER event is triggered on OAuth registration

* Add API on FastAPIUsers to generate an OAuth router

* Improve test coverage of FastAPIUsers

* Small fixes

* Write the OAuth documentation

* Fix SQL unit-tests by avoiding collisions in SQLite db files
2020-01-17 11:43:17 +01:00
c537b58d52 Bump fastapi from 0.45.0 to 0.46.0 (#86)
* Bump fastapi from 0.45.0 to 0.46.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.45.0 to 0.46.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.45.0...0.46.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi in pyproject

Co-authored-by: François Voron <fvoron@gmail.com>
2020-01-09 09:41:56 +01:00
c903b30161 Bump tortoise-orm from 0.15.5 to 0.15.7 (#82)
* Bump tortoise-orm from 0.15.5 to 0.15.7

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.5 to 0.15.7.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.5...0.15.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise-orm from 0.15.5 to 0.15.7

Co-authored-by: François Voron <fvoron@gmail.com>
2019-12-29 11:42:14 +01:00
bdfef36866 Bump sqlalchemy from 1.3.11 to 1.3.12 (#76)
* Bump sqlalchemy from 1.3.11 to 1.3.12

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.11 to 1.3.12.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump sqlalchemy from 1.3.11 to 1.3.12 [pyproject]
2019-12-17 07:18:00 +01:00
cf52f5c61d Bump fastapi from 0.44.1 to 0.45.0 (#73)
* Bump fastapi from 0.44.1 to 0.45.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.44.1 to 0.45.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.44.1...0.45.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi from 0.44.1 to 0.45.0 in pyproject
2019-12-12 07:58:44 +01:00
4883c87222 Bump motor from 2.0.0 to 2.1.0 (#74)
* Bump motor from 2.0.0 to 2.1.0

Bumps [motor](https://github.com/mongodb/motor) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/mongodb/motor/releases)
- [Changelog](https://github.com/mongodb/motor/blob/master/doc/changelog.rst)
- [Commits](https://github.com/mongodb/motor/compare/2.0.0...2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

*  Bump motor from 2.0.0 to 2.1.0
2019-12-12 07:40:04 +01:00
5e4c7996de Bump tortoise-orm from 0.15.1 to 0.15.4 (#67)
* Bump tortoise-orm from 0.15.1 to 0.15.4

Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.1 to 0.15.4.
- [Release notes](https://github.com/tortoise/tortoise-orm/releases)
- [Changelog](https://github.com/tortoise/tortoise-orm/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/tortoise/tortoise-orm/compare/0.15.1...0.15.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump tortoise ==0.15.4 in pyproject.toml
2019-12-04 07:21:55 +01:00
b5b0bbbb01 Tortoise ORM support (#59)
* add tortoise to dependencies

* add tortoise as optional dependency in pyproject.toml

* add tortoise support (tests needed)

* Add tortoise support (also defined orm_mode in pydantic model

* tests for tortoise support

* format by black

* docs for tortoise

* delete type annotations

* delete underscore

* do it in 1 line

* add 1 line before yield

* fix in docs

* fix bug and add annotation for test

* Tweak documentation and fix Tortoise error about id update

* Improve Tortoise coverage by using get instead of filter

* Fix Pipfile.lock
2019-12-03 21:24:27 +01:00
59b8f144d7 Bump fastapi from 0.43.0 to 0.44.0 (#63)
* Bump fastapi from 0.43.0 to 0.44.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.43.0 to 0.44.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.43.0...0.44.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix breaking changes and depreciation following fastapi 0.44.0

* Bump fastapi==0.44.0 in pyproject.toml
2019-11-28 07:33:38 +01:00
7c87039fc7 Bump fastapi from 0.42.0 to 0.43.0 (#56)
* Bump fastapi from 0.42.0 to 0.43.0

Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.42.0 to 0.43.0.
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Changelog](https://github.com/tiangolo/fastapi/blob/master/docs/history-design-future.md)
- [Commits](https://github.com/tiangolo/fastapi/compare/0.42.0...0.43.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump fastapi==0.43.0 in pyproject.toml
2019-11-25 07:46:17 +01:00
2052a8bef3 Bump flit from 1.3 to 2.0.2 (#55)
* Bump flit from 1.3 to 2.0.2

Bumps [flit](https://github.com/takluyver/flit) from 1.3 to 2.0.2.
- [Release notes](https://github.com/takluyver/flit/releases)
- [Changelog](https://github.com/takluyver/flit/blob/master/doc/history.rst)
- [Commits](https://github.com/takluyver/flit/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update Flit build settings following 2.x changes
2019-11-25 07:38:50 +01:00
09c8e61585 Bump sqlalchemy from 1.3.10 to 1.3.11 (#45)
* Bump sqlalchemy from 1.3.10 to 1.3.11

Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.10 to 1.3.11.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump sqlalchemy from 1.3.10 to 1.3.11 in pyproject
2019-11-12 13:09:15 +01:00
adfe64e0fd Bump databases to 0.2.6 in project setup 2019-11-06 07:17:00 +01:00
ab0b187f20 Implement MongoDB database adapter (#29)
* Implement MongoDB adapter using motor

* Add mongo container to build pipeline

* Tidy up dependencies

* Update documentation for MongoDB

* Export MongoDB adapter from db package

* Pass black format

* Update README
2019-10-27 16:34:30 +01:00
3719a52549 Bump email-validator from 1.0.4 to 1.0.5 (#23)
* Bump email-validator from 1.0.4 to 1.0.5

Bumps [email-validator](https://github.com/JoshData/python-email-validator) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/JoshData/python-email-validator/releases)
- [Commits](https://github.com/JoshData/python-email-validator/compare/v1.0.4...v1.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Bump email-validator to 1.0.5 in pyproject.toml
2019-10-21 07:41:20 +02:00
1e1a3dc06a Setup Flit and lock packages versions 2019-10-17 07:48:39 +02:00