135 Commits

Author SHA1 Message Date
935bccf528 Bump version: 0.4.0 → 0.4.1 v0.4.1 2019-12-17 15:50:12 +01:00
7817d372c6 Fix #77: use CharField for PK in Tortoise adapter 2019-12-17 15:49:30 +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
7bc7ccfa09 Bump pytest from 5.3.1 to 5.3.2 (#75)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.1 to 5.3.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.3.1...5.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 07:16:10 +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
8b346ddfcc Bump mkdocs-material from 4.5.1 to 4.6.0 (#72)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 4.5.1 to 4.6.0.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/4.5.1...4.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-12 07:16:31 +01:00
91cdfafa8b Bump tortoise-orm from 0.15.4 to 0.15.5 (#71)
Bumps [tortoise-orm](https://github.com/tortoise/tortoise-orm) from 0.15.4 to 0.15.5.
- [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.4...0.15.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-10 15:09:37 +01:00
f27b28d914 Bump pytest-mock from 1.12.1 to 1.13.0 (#70)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.12.1 to 1.13.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.12.1...v1.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 15:23:57 +01:00
713bb9e490 Bump fastapi from 0.44.0 to 0.44.1 (#69)
Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.44.0 to 0.44.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.44.0...0.44.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-05 06:42:33 +01:00
edb887f3f1 Bump version: 0.3.2 → 0.4.0 v0.4.0 2019-12-04 13:34:23 +01:00
49deb437a6 Fix #42: multiple authentication backends (#47)
* Revamp authentication to allow multiple backends

* Make router generate a login route for each backend

* Apply black

* Remove unused imports

* Complete docstrings

* Update documentation

* WIP add cookie auth

* Complete cookie auth unit tests

* Add documentation for cookie auth

* Fix cookie backend default name

* Don't make cookie return a Response
2019-12-04 13:32:49 +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
358150bbff Bump mkdocs-material from 4.5.0 to 4.5.1 (#66)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/4.5.0...4.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-03 10:50:02 +01:00
e488fd02ac Bump pygments from 2.5.1 to 2.5.2 (#65)
Bumps [pygments](https://github.com/pygments/pygments) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.5.1...2.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 07:19:29 +01:00
0736ab372c Bump mypy from 0.740 to 0.750 (#64)
Bumps [mypy](https://github.com/python/mypy) from 0.740 to 0.750.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.740...v0.750)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 07:19:16 +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
3cfd402253 Bump flit from 2.0.2 to 2.1.0 (#62)
Bumps [flit](https://github.com/takluyver/flit) from 2.0.2 to 2.1.0.
- [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/2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 09:58:19 +01:00
6522d99935 Bump pytest from 5.3.0 to 5.3.1 (#60)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.3.0...5.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 09:50:30 +01:00
d5b249e90b Bump pygments from 2.4.2 to 2.5.1 (#61)
Bumps [pygments](https://github.com/pygments/pygments) from 2.4.2 to 2.5.1.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.4.2...2.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 09:50:17 +01:00
f0178d0e0d Bump version: 0.3.1 → 0.3.2 v0.3.2 2019-11-25 12:56:16 +01:00
280a2e253a Add Python 3.8 to build matrix (#58)
* Add Python 3.8 to build matrix

* Force pipenv to use matrix Python  version

* Put release step in separate job

* Fix build.yml workflow
2019-11-25 12:54:32 +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
f482f2c7ff Bump passlib from 1.7.1 to 1.7.2 (#57)
Bumps [passlib](https://bitbucket.org/ecollins/passlib) from 1.7.1 to 1.7.2.
- [Commits](https://bitbucket.org/ecollins/passlib/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-25 07:18:27 +01:00
a1dd77531c Bump pytest-mock from 1.12.0 to 1.12.1 (#53)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.12.0...v1.12.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-21 09:09:14 +01:00
766157d4f5 Bump pytest-mock from 1.11.2 to 1.12.0 (#52)
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 1.11.2 to 1.12.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v1.11.2...v1.12.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-20 11:39:36 +01:00
d5ec35a22f Bump pytest from 5.2.4 to 5.3.0 (#51)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.2.4 to 5.3.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.4...5.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-20 11:39:19 +01:00
f3f473b853 Bump mkdocs-material from 4.4.3 to 4.5.0 (#50)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 4.4.3 to 4.5.0.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/4.4.3...4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-19 14:56:43 +01:00
9ba291b4ee Bump pymdown-extensions from 6.1 to 6.2 (#48)
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 6.1 to 6.2.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/6.1.0...6.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-18 06:36:00 +01:00
07c5dab89e Bump pytest from 5.2.3 to 5.2.4 (#49)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.2.3 to 5.2.4.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.3...5.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-18 06:35:41 +01:00
ae09558a91 Bump pytest from 5.2.2 to 5.2.3 (#46)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.2.2...5.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-17 10:03:48 +01:00
9aa8398884 Do a proper Pydantic model instantation in SQLAlchemy adapter 2019-11-17 09:59:44 +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
a94ee2b999 Add pull_request build trigger to GH workflow
Noticed that the first PR of a contributor didn't trigger the pipeline. This should fix it.
2019-11-06 13:20:16 +01:00
37b34e6d28 Add one more example for route dependency (#40)
* Add one more example for routing dependencie

* fix for more purity

* Delete f-string
2019-11-06 13:14:45 +01:00
adfe64e0fd Bump databases to 0.2.6 in project setup 2019-11-06 07:17:00 +01:00
1006d593bb Bump databases from 0.2.5 to 0.2.6 (#39)
Bumps [databases](https://github.com/encode/databases) from 0.2.5 to 0.2.6.
- [Release notes](https://github.com/encode/databases/releases)
- [Commits](https://github.com/encode/databases/compare/0.2.5...0.2.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-06 07:15:48 +01:00
47ad4ce1cc Fix #36: fix token url in auto doc (#38)
* Fix #36: fix token url in auto doc

* Define OAuth scheme in authentication base with default /users/login tokenUrl
* Allow to override it through contructor argument of auth class

* Fix test coverage of BaseAuthentication
2019-11-03 09:20:16 +01:00
6f8bf57d0a Add development instructions in README 2019-11-02 14:18:08 +01:00
1811d4aa2d Add pytest markers and skip procedure for MongoDB tests 2019-11-02 14:09:43 +01:00
6ba8bb835e Bump version: 0.3.0 → 0.3.1 v0.3.1 2019-10-31 21:44:08 +01:00
60c815e425 Fix #35: catch import error when not having optional DB depedencies 2019-10-31 21:43:29 +01:00
658161518a Add error codes on routes (#34)
Fix #33
2019-10-31 10:10:53 +01:00
b512197094 Use singular Event enum name 2019-10-31 09:59:41 +01:00
8200e44b38 Bump version: 0.2.0 → 0.3.0 v0.3.0 2019-10-29 13:36:13 +01:00
f6ab644691 Apply Black formatting 2019-10-29 13:35:38 +01:00
9b7ec58800 #21: Add superuser routes (#30)
* Add CRU superuser routes

* Add delete method on DB adapters

* Add superuser delete route

* Add superuser routes documentation

* Pass black formatter
2019-10-29 13:32:44 +01:00
919550ba74 Merge pull request #31 from frankie567/dependabot/pip/black-19.10b0
Bump black from 19.3b0 to 19.10b0
2019-10-29 13:32:20 +01:00