Skip to content

Commit cac20da

Browse files
yuval9313dependabot[bot]rootTomBurchyen3
authored
Migrate-to-utils (#291)
* Improve the new_init return to not create new instance, rather use the given one * Improve Resource and Api classes, reducing logic in both * Instead of class attriburte in init, use decorator * Add multiple responses via decorator * Fix assigning multiple routes from single resource * Add cbv resource class testing * Lint files * Lint tests * Add docs and improved imports * Lint and mypy test fix * Update readme * Update README * Update docs * Move files from fastapi utils to fastapi restful in porpuse of build * Update docs again * Update versions * Lower case the package folder * Correct imports in docs * Correct imports in tests * Update pyproject * Update Docs * Lint * Update makefile * Update poetry versioning * Lint and sort * Correct imports * Update makefile * Fix imports break code * Update pyproject * Update lock * Update packages * Update build.yml * Update requirements for win32 and py version < 38 * Fix requirements * Change mkdocs to py version 3.8 * Fix mkdocs error * Update docs, add shields and update workflows * Update docs to include additonal responses handling * Numerous changes in the documantations * Add kwargs to option to set_responses * Lint and formatting * Add documantation for the new kwargs option * Update project version * Create dependabot.yml * Update dependabot.yml * Bump markdown-include from 0.5.1 to 0.6.0 Bumps [markdown-include](https://github.com/cmacmackin/markdown-include) from 0.5.1 to 0.6.0. - [Release notes](https://github.com/cmacmackin/markdown-include/releases) - [Commits](cmacmackin/markdown-include@v0.5.1...v0.6.0) Signed-off-by: dependabot[bot] <[email protected]> * Bump pytest-cov from 2.10.0 to 2.10.1 Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.10.0 to 2.10.1. - [Release notes](https://github.com/pytest-dev/pytest-cov/releases) - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v2.10.0...v2.10.1) Signed-off-by: dependabot[bot] <[email protected]> * Bump mypy from 0.782 to 0.790 Bumps [mypy](https://github.com/python/mypy) from 0.782 to 0.790. - [Release notes](https://github.com/python/mypy/releases) - [Commits](python/mypy@v0.782...v0.790) Signed-off-by: dependabot[bot] <[email protected]> * Bump flake8 from 3.8.3 to 3.8.4 Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4) Signed-off-by: dependabot[bot] <[email protected]> * Bump black from 19.10b0 to 20.8b1 Bumps [black](https://github.com/psf/black) from 19.10b0 to 20.8b1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/master/CHANGES.md) - [Commits](https://github.com/psf/black/commits) Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.3.18 to 1.3.22 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.3.18 to 1.3.22. - [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[bot] <[email protected]> * Bump pydantic from 1.6.1 to 1.7.3 Bumps [pydantic](https://github.com/samuelcolvin/pydantic) from 1.6.1 to 1.7.3. - [Release notes](https://github.com/samuelcolvin/pydantic/releases) - [Changelog](https://github.com/samuelcolvin/pydantic/blob/master/HISTORY.md) - [Commits](pydantic/pydantic@v1.6.1...v1.7.3) Signed-off-by: dependabot[bot] <[email protected]> * Bump isort from 5.1.2 to 5.7.0 Bumps [isort](https://github.com/pycqa/isort) from 5.1.2 to 5.7.0. - [Release notes](https://github.com/pycqa/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/develop/CHANGELOG.md) - [Commits](PyCQA/isort@5.1.2...5.7.0) Signed-off-by: dependabot[bot] <[email protected]> * Bump codecov from 2.1.8 to 2.1.11 Bumps [codecov](https://github.com/codecov/codecov-python) from 2.1.8 to 2.1.11. - [Release notes](https://github.com/codecov/codecov-python/releases) - [Changelog](https://github.com/codecov/codecov-python/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-python@2.1.8...v2.1.11) Signed-off-by: dependabot[bot] <[email protected]> * Bump coverage from 5.2 to 5.3.1 Bumps [coverage](https://github.com/nedbat/coveragepy) from 5.2 to 5.3.1. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@coverage-5.2...coverage-5.3.1) Signed-off-by: dependabot[bot] <[email protected]> * Bump autoflake from 1.3.1 to 1.4 Bumps [autoflake](https://github.com/myint/autoflake) from 1.3.1 to 1.4. - [Release notes](https://github.com/myint/autoflake/releases) - [Commits](PyCQA/autoflake@v1.3.1...v1.4) Signed-off-by: dependabot[bot] <[email protected]> * Bump fastapi from 0.59.0 to 0.63.0 Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.59.0 to 0.63.0. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Commits](fastapi/fastapi@0.59.0...0.63.0) Signed-off-by: dependabot[bot] <[email protected]> * Bump requests from 2.24.0 to 2.25.1 Bumps [requests](https://github.com/psf/requests) from 2.24.0 to 2.25.1. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md) - [Commits](psf/requests@v2.24.0...v2.25.1) Signed-off-by: dependabot[bot] <[email protected]> * Bump pytest from 5.4.3 to 6.2.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.3 to 6.2.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest@5.4.3...6.2.1) Signed-off-by: dependabot[bot] <[email protected]> * Bump mkdocs-material from 5.4.0 to 6.2.3 Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 5.4.0 to 6.2.3. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/docs/changelog.md) - [Commits](squidfunk/mkdocs-material@5.4.0...6.2.3) Signed-off-by: dependabot[bot] <[email protected]> * Bump more-itertools from 8.4.0 to 8.6.0 Bumps [more-itertools](https://github.com/more-itertools/more-itertools) from 8.4.0 to 8.6.0. - [Release notes](https://github.com/more-itertools/more-itertools/releases) - [Commits](more-itertools/more-itertools@v8.4.0...v8.6.0) Signed-off-by: dependabot[bot] <[email protected]> * Bump aiofiles from 0.5.0 to 0.6.0 Bumps [aiofiles](https://github.com/Tinche/aiofiles) from 0.5.0 to 0.6.0. - [Release notes](https://github.com/Tinche/aiofiles/releases) - [Commits](Tinche/aiofiles@v0.5.0...v0.6.0) Signed-off-by: dependabot[bot] <[email protected]> * Upgrade dependencies * Update version patch and fix small error in contributing, Includes python 3.9 * Reduce dev requirements from requirements file * Update pull-request.yml Make tests run on poetry to remove dependencies from package * Update pull-request.yml Remove enter poetry shell due to error it causes * Update pull-request.yml Change ci to operate from inside poetry * Update pull-request.yml Change docs building to run from poetry * Fix difference between CONTRIBUTING.md and docs/contributing.md * Update publish.yml Use all the abilities that poetry can afford without regarding dev dependencies * Update publish.yml Small fix - missing "make" * Change wait_first to a float * Fix tests issue * Fix error of deprecation in the Makefile * Minor changes to the develop.sh script * Update publish.yml (#46) * Bump mkdocs-material from 6.2.3 to 7.1.3 (#49) Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 6.2.3 to 7.1.3. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/docs/changelog.md) - [Commits](squidfunk/mkdocs-material@6.2.3...7.1.3) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix routing problem (#36) * Fix routing problem Original Issue: #154 Credit: WouldYouKindly <https://github.com/WouldYouKindly> Creating router with prefix would cause route path to have the prefix duplicated (e.g. instead of '/api' -> '/api/api') * Fix prefix kwarg on router being repetitive when using cbv causing '/api' route to become '/api/api' * Add test to check if route construction is done right when using router prefix Co-authored-by: Yuval <[email protected]> * Update to support python 3.9 * pull request will support tests on python 3.9 * Feature/auto publish on merge (#52) * Update publish.yml * Remove the auto publish by push to master, I't doesn't help me control versioning nor changelog * Fix ci for python 3.9 * Update version * Bump pydantic from 1.7.3 to 1.7.4 (#55) Bumps [pydantic](https://github.com/samuelcolvin/pydantic) from 1.7.3 to 1.7.4. - [Release notes](https://github.com/samuelcolvin/pydantic/releases) - [Changelog](https://github.com/samuelcolvin/pydantic/blob/master/HISTORY.md) - [Commits](pydantic/pydantic@v1.7.3...v1.7.4) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sqlalchemy from 1.4.13 to 1.4.14 (#54) Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.13 to 1.4.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[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix missing changelog.md * Add sqlalchemy install to python extra installs * Update makefile * Update version to 0.3.1 * Fix lock and workflows to make ci working properly * Update requirements for netlify * Fix build workflow * Bump fastapi from 0.65.1 to 0.65.2 (#62) Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.65.1 to 0.65.2. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Commits](fastapi/fastapi@0.65.1...0.65.2) --- updated-dependencies: - dependency-name: fastapi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump aiofiles from 0.6.0 to 0.7.0 (#56) Bumps [aiofiles](https://github.com/Tinche/aiofiles) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/Tinche/aiofiles/releases) - [Commits](Tinche/aiofiles@v0.6.0...v0.7.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump urllib3 from 1.26.4 to 1.26.5 (#60) Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.4 to 1.26.5. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](urllib3/urllib3@1.26.4...1.26.5) --- updated-dependencies: - dependency-name: urllib3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sqlalchemy from 1.4.15 to 1.4.18 (#63) Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.15 to 1.4.18. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump mkdocs-material from 7.1.4 to 7.1.8 (#64) Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 7.1.4 to 7.1.8. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/docs/changelog.md) - [Commits](squidfunk/mkdocs-material@7.1.4...7.1.8) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Move to scm versioning * Move to poetry version by scm * Optimizations (#68) * Change spacing to unix line breaks * Remove runtime.txt It is unimportant to have specific python version declared for the project since it is a package * Change timing.py to work on any system and not just unix * Remove the need of requirements.txt file * Move coverage configuration into pyproject.toml * Poetry lock * Return to manual version editing * Format project * Remove SqlAlchemy TypeDecorator cache warning * Restore dataclasses to python 3.6 installation * Fix issues with mypy update and python 3.6 * Create runtime.txt for netlify * Update .gitignore * Bump mypy from 0.902 to 0.910 (#69) Bumps [mypy](https://github.com/python/mypy) from 0.902 to 0.910. - [Release notes](https://github.com/python/mypy/releases) - [Commits](python/mypy@v0.902...v0.910) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump fastapi from 0.65.2 to 0.66.1 (#74) Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.65.2 to 0.66.1. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Commits](fastapi/fastapi@0.65.2...0.66.1) --- updated-dependencies: - dependency-name: fastapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump sqlalchemy from 1.4.18 to 1.4.21 (#75) Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.18 to 1.4.21. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/master/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump mkdocs-material from 7.1.8 to 7.1.11 (#76) Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 7.1.8 to 7.1.11. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/docs/changelog.md) - [Commits](squidfunk/mkdocs-material@7.1.8...7.1.11) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * include_router method add kwargs params (#87) * Bump mkdocs from 1.2.1 to 1.2.3 (#92) Bumps [mkdocs](https://github.com/mkdocs/mkdocs) from 1.2.1 to 1.2.3. - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](mkdocs/mkdocs@1.2.1...1.2.3) --- updated-dependencies: - dependency-name: mkdocs dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump fastapi from 0.66.1 to 0.68.1 (#85) Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.66.1 to 0.68.1. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Commits](fastapi/fastapi@0.66.1...0.68.1) --- updated-dependencies: - dependency-name: fastapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: yuval9313 <[email protected]> * Bump types-dataclasses from 0.1.5 to 0.6.1 (#95) Bumps [types-dataclasses](https://github.com/python/typeshed) from 0.1.5 to 0.6.1. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-dataclasses dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump codecov from 2.1.11 to 2.1.12 (#94) Bumps [codecov](https://github.com/codecov/codecov-python) from 2.1.11 to 2.1.12. - [Release notes](https://github.com/codecov/codecov-python/releases) - [Changelog](https://github.com/codecov/codecov-python/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-python@v2.1.11...v2.1.12) --- updated-dependencies: - dependency-name: codecov dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump black version, remove support of python >3.6.2 * Run black new version on project * Bump requests from 2.25.1 to 2.27.1 Bumps [requests](https://github.com/psf/requests) from 2.25.1 to 2.27.1. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.25.1...v2.27.1) --- updated-dependencies: - dependency-name: requests dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.4.21 to 1.4.29 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.21 to 1.4.29. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * docs: Fix typo in CamelStrEnum example * Bump types-dataclasses from 0.6.1 to 0.6.4 Bumps [types-dataclasses](https://github.com/python/typeshed) from 0.6.1 to 0.6.4. - [Release notes](https://github.com/python/typeshed/releases) - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-dataclasses dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump aiofiles from 0.7.0 to 0.8.0 Bumps [aiofiles](https://github.com/Tinche/aiofiles) from 0.7.0 to 0.8.0. - [Release notes](https://github.com/Tinche/aiofiles/releases) - [Commits](Tinche/aiofiles@v0.7.0...v0.8.0) --- updated-dependencies: - dependency-name: aiofiles dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump version * Add support to python 3.10 * Fix quotes missing in python 3.10 version * Update poetry.lock to not include dataclasses * Bump flake8 for better PR process * Add dataclasses constraint to pyproject.toml * Update poetry github action * Replace tabs with spaces * Update pytest version * Fix issues with pytest version bump * Fix Pypi classifiers * Remove black/flake8/mypy from main dependencies black/flake8/mypy are already listed in dev-dependencies, and listing them in main dependencies propagates to other projects. * Bump mkdocs-material from 8.1.6 to 8.1.9 Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.1.6 to 8.1.9. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](squidfunk/mkdocs-material@8.1.6...8.1.9) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump black from 21.12b0 to 22.1.0 Bumps [black](https://github.com/psf/black) from 21.12b0 to 22.1.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits/22.1.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Bump sqlalchemy from 1.4.29 to 1.4.31 Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 1.4.29 to 1.4.31. - [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases) - [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES) - [Commits](https://github.com/sqlalchemy/sqlalchemy/commits) --- updated-dependencies: - dependency-name: sqlalchemy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Bump fastapi from 0.71.0 to 0.73.0 Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.71.0 to 0.73.0. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Commits](fastapi/fastapi@0.71.0...0.73.0) --- updated-dependencies: - dependency-name: fastapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Improve packages pinning * Bump version pre-release * Bump again due to tagging issues * Update additional packages and poetry lock * Fix inferring router don't infer None * Bump pytest from 6.2.5 to 7.0.0 Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.0. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@6.2.5...7.0.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Bump mkdocs-material from 8.1.9 to 8.1.10 Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.1.9 to 8.1.10. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](squidfunk/mkdocs-material@8.1.9...8.1.10) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Add missing changelog details * Update all packages * Add bump version to changelog * Bump version * Update tests to fit better practices * Update enums tests and fix enum due to CI failures * Update class-resource.md Corrected a minor typographical error. `Source` was written as `ource` in line 1 * Add .deepsource.toml * Remove unnecessary generator * Remove assert statement from non-test files * Update fastapi_restful/cbv.py * Update fastapi_restful/timing.py * Update poetry and poetry lock * Update poetry lock * Remove redundant imports * Update fastapi to prepare deprecation of inferring router * Ruff black and mypy * Remove some redundant tests due to them checking fastapi really * Force update sqlalchemy above 1.4 * Update poetry build backend * Update pydantic and psutil > 3.11 * Restore old release notes * Update references to fastapi-utils * Largely update all deps of development * Add new release notes * Update python version on workflows * Fix mypy issues * Remove un-neccessary config files in favor of pyproject.toml and flak… (#133) * Remove un-neccessary config files in favor of pyproject.toml and flake8 in favor of black * Update poetry lock * Fix mypy issues for various pythons * Update changelog and contributing * Remove docs from repo * Add repo docs to gitignore * Remove docs for ci only in favor of better docs building * update deepsoruce max line length * Create CNAME * Delete CNAME * Remove runtime * Update lock on fastapi * Add release notes and changed versions * Change docs of package to github pages and changed publish to pypi (#186) * Fix bad syntax of github actions * Update LICENSE * Bump sqlalchemy from 1.4.48 to 2.0.19 (#202) * Pydantic v2 (#199) * fix: v2 update * fix: remove bump pydantic * fix: python versioning * fix: use config dict * fix: formatting * fix: support v1 and v2 * fix: formatting * fix: mypy issues, some refactoring * fix: fix v2 install * fix: fix ci --------- Co-authored-by: Oli Parker <[email protected]> * fix: fix ci not run (#208) Co-authored-by: Oli Parker <[email protected]> * fix: bump version, add release notes (#212) Co-authored-by: Oli Parker <[email protected]> * Update dependabot.yml (#217) * Update publish.yml * Bump ruff from 0.0.272 to 0.0.284 (#223) * Bump actions/setup-python from 1 to 4 (#222) * Bump abatilo/actions-poetry from 2.1.3 to 2.3.0 (#221) * Bump actions/cache from 1 to 3 (#220) * Bump actions/upload-pages-artifact from 1 to 2 (#219) * Add proper __version__ (#214) * Add proper __version__ * Conditional __version__ * Split publish docs and publish workflows (#224) * Update publish-docs.yml * Cleanup remnants of name change (#236) * Bump fastapi from 0.101.0 to 0.103.2 Bumps [fastapi](https://github.com/tiangolo/fastapi) from 0.101.0 to 0.103.2. - [Release notes](https://github.com/tiangolo/fastapi/releases) - [Commits](fastapi/fastapi@0.101.0...0.103.2) --- updated-dependencies: - dependency-name: fastapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * style: format code with Black and isort (#243) This commit fixes the style issues introduced in e957135 according to the output from Black and isort. Details: None Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> * docs: remove refs to InferringRouter as it is deprecated (#239) * docs: remove references to inferring router as it was replaced by APIRouter * docs/src: fix missing import --------- Co-authored-by: Yuval Levi <[email protected]> * style: format code with Black and isort (#244) This commit fixes the style issues introduced in 8527803 according to the output from Black and isort. Details: None Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> * Bugfix/repeat every runs only once (#142) * Await loop function instead of calling ensure_future on it * Ensure max_repetition is enforced even when an exception occurs * Install pytest-mock * Improve test * Reformat file * Pin version for flake8 * Fix missing type annotations * Add fixtures * Organize test cases in classes * Use unittest mock instead of pytest-mock * Run isort * Remove unused imports * Run black * Define test base class * Format code with black and isort * style: Format code with black and isort * Update poetry lock * Fix formatting and imports * Fix typehints issue * Ignore mypy bug * Fix test testing the wrong parameters * Add changelog * Add mock as backport for unittest * Add conditional import for python3.7 * Change asyncmock to mock * Restore test to use AsyncMock * Move all mock objects to be under Mock for python<3.8 * style: format code with Black and isort This commit fixes the style issues introduced in bd50c49 according to the output from Black and isort. Details: yuval9313#142 * Format files * Remove breakpoints * Fix conflicts with mypy * Add mock stubs * Add the import for mypy --------- Co-authored-by: Yuval Levi <[email protected]> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> * Update dependencies (#256) * Bump actions/setup-python from 4 to 5 (#250) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/configure-pages from 3 to 4 (#249) Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 3 to 4. - [Release notes](https://github.com/actions/configure-pages/releases) - [Commits](actions/configure-pages@v3...v4) --- updated-dependencies: - dependency-name: actions/configure-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/deploy-pages from 2 to 3 (#248) Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 2 to 3. - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](actions/deploy-pages@v2...v3) --- updated-dependencies: - dependency-name: actions/deploy-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/checkout from 1 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v1...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Add new line to changelog --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * 90 url for returns wrong path (#257) * Add spearation between classes while building urls * Add test to check new behaviour * Add changelog line * Remove additional import * Update what was missing for github pages (#289) * Create-release (#290) * Add new version to changelog * Update pyproject to 0.6.0 * Deprecate fastapi_restful package and provide alternative in README * Add dev info * Migrate fastapi_restful to utils * Move all src to fastapi-utils * Update last properties from restful to utils * Add py 312 and fix mkdocs * style: format code with Black and isort This commit fixes the style issues introduced in f4a6e47 according to the output from Black and isort. Details: yuval9313#287 * Add requirements for netlify * Add codecov to pipeline * Add codecov to deps --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: root <[email protected]> Co-authored-by: TomBurch <[email protected]> Co-authored-by: Yen3 <[email protected]> Co-authored-by: Fuman <[email protected]> Co-authored-by: pmav99 <[email protected]> Co-authored-by: Derek Kulinski <[email protected]> Co-authored-by: fugacityengr <[email protected]> Co-authored-by: DeepSource Bot <[email protected]> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: Oliver Parker <[email protected]> Co-authored-by: Oli Parker <[email protected]> Co-authored-by: Pavel Zwerschke <[email protected]> Co-authored-by: Dosenpfand <[email protected]> Co-authored-by: omars <[email protected]> Co-authored-by: Daniel Eidlin <[email protected]>
1 parent 3ef27a6 commit cac20da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+3505
-2548
lines changed

.deepsource.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version = 1
2+
3+
test_patterns = [
4+
"tests/**",
5+
"test_*.py"
6+
]
7+
8+
[[analyzers]]
9+
name = "python"
10+
enabled = true
11+
12+
[analyzers.meta]
13+
runtime_version = "3.x.x"
14+
max_line_length = 120
15+
type_checker = "mypy"
16+
17+
[[transformers]]
18+
name = "black"
19+
enabled = true
20+
21+
[[transformers]]
22+
name = "isort"
23+
enabled = true

.devcontainer/devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "fastapi-37",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.12",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": { "version": "latest" }
6+
},
7+
"postCreateCommand": "pipx install poetry && poetry install",
8+
"forwardPorts": [2222]
9+
}

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: pip
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: weekly

.github/workflows/build.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,45 @@ jobs:
1313
strategy:
1414
max-parallel: 3
1515
matrix:
16-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
16+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1717

1818
steps:
19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v1
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
24-
- uses: actions/cache@v1
24+
25+
- name: Init python poetry action
26+
uses: abatilo/[email protected]
27+
with:
28+
poetry-version: 1.5.1
29+
- uses: actions/cache@v3
2530
id: cache-deps
2631
with:
2732
path: ~/.cache/pip
28-
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}
33+
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/pyproject.toml') }}
2934
restore-keys: |
3035
${{ runner.os }}-pip-
36+
3137
- name: Install dependencies
32-
run: |
33-
python -m pip install --upgrade pip
34-
pip install -r requirements.txt
35-
- uses: actions/cache@v1
38+
run: poetry install -E session
39+
40+
- uses: actions/cache@v3
3641
with:
3742
path: .mypy_cache
3843
key: mypy-${{ matrix.python-version }}
39-
- uses: actions/cache@v1
44+
- uses: actions/cache@v3
4045
with:
4146
path: .pytest_cache
4247
key: pytest-${{ matrix.python-version }}
4348
- name: Check docs build
4449
# only run this for the python version used by netlify:
45-
if: matrix.python-version == '3.8'
46-
run: |
47-
make docs-build-ci
48-
- name: Check that formatting, linting, and tests pass
49-
run: |
50-
make ci
50+
if: matrix.python-version == '3.10'
51+
run: poetry run make docs-build
52+
- name: Check that formatting, linting, and tests pass for pydantic v1
53+
run: poetry run make ci-v1
54+
- name: Check that formatting, linting, and tests pass for pydantic v2
55+
run: poetry run make ci-v2
5156
- name: Submit coverage report
52-
run: |
53-
codecov --token=${{ secrets.CODECOV_TOKEN }}
57+
run: poetry run codecov --token=${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish-docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: publish-docs
2+
3+
permissions:
4+
id-token: write
5+
pages: write
6+
7+
on:
8+
workflow_run:
9+
workflows:
10+
- publish
11+
types:
12+
- completed
13+
14+
jobs:
15+
publish-docs:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
max-parallel: 1
19+
matrix:
20+
python-version: ['3.10']
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
# Avoid caching to be 100% confident things are working properly
29+
- name: Init python poetry action
30+
uses: abatilo/[email protected]
31+
with:
32+
poetry-version: 1.5.1
33+
34+
- name: Install dependencies
35+
run: poetry install -E session
36+
37+
- name: Check docs are up to date
38+
run: poetry run make docs-build
39+
40+
# Publish docs to github pages
41+
- name: Setup Pages
42+
uses: actions/configure-pages@v4
43+
- name: Upload artifact
44+
uses: actions/upload-pages-artifact@v2
45+
with:
46+
# Upload entire repository
47+
path: './site'
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v3

.github/workflows/publish.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,39 @@ on:
44
push
55

66
jobs:
7-
publish:
7+
publish-tag:
88
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
99
runs-on: ubuntu-latest
1010
strategy:
1111
max-parallel: 1
1212
matrix:
13-
python-version: ['3.8']
13+
python-version: ['3.10']
1414

1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v1
18+
uses: actions/setup-python@v5
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
# Avoid caching to be 100% confident things are working properly
22+
- name: Init python poetry action
23+
uses: abatilo/[email protected]
24+
with:
25+
poetry-version: 1.5.1
26+
2227
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install -r requirements.txt
26-
- name: Check that formatting, linting, and tests pass
27-
run: |
28-
make ci
29-
- name: Check docs are up to date
30-
run: |
31-
make docs-build-ci
32-
- name: Install poetry
33-
run: |
34-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
28+
run: poetry install -E session
29+
30+
- name: Check that formatting, linting, and tests pass for pydantic v1
31+
run: poetry run make ci-v1
32+
- name: Check that formatting, linting, and tests pass for pydantic v2
33+
run: poetry run make ci-v2
34+
3535
- name: Build distribution
36-
run: |
37-
source $HOME/.poetry/env && poetry build
36+
run: poetry build
37+
3838
- name: Publish distribution to PyPI
39-
uses: pypa/gh-action-pypi-publish@master
40-
with:
41-
password: ${{ secrets.PYPI_PASSWORD }}
39+
run: poetry publish
40+
env:
41+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
42+

.github/workflows/pull-request.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,40 @@ jobs:
1414
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
1515

1616
steps:
17-
- uses: actions/checkout@v1
17+
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v1
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
- uses: actions/cache@v1
22+
23+
- name: Init Python Poetry Action
24+
uses: abatilo/[email protected]
25+
with:
26+
poetry-version: 1.5.1
27+
- uses: actions/cache@v3
2328
id: cache-deps
2429
with:
2530
path: ~/.cache/pip
26-
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}
31+
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/pyproject.toml') }}
2732
restore-keys: |
2833
${{ runner.os }}-pip-
34+
2935
- name: Install dependencies
30-
run: |
31-
python -m pip install --upgrade pip
32-
pip install -r requirements.txt
33-
- uses: actions/cache@v1
36+
run: poetry install -E session
37+
- uses: actions/cache@v3
3438
with:
3539
path: .mypy_cache
3640
key: mypy-${{ matrix.python-version }}
37-
- uses: actions/cache@v1
41+
- uses: actions/cache@v3
3842
with:
3943
path: .pytest_cache
4044
key: pytest-${{ matrix.python-version }}
4145
- name: Check docs build
4246
# only run this for the python version used by netlify:
43-
if: matrix.python-version == '3.8'
44-
run: |
45-
make docs-build-ci
46-
- name: Check that formatting, linting, and tests pass
47-
run: |
48-
make ci
49-
- name: Submit coverage report
50-
run: |
51-
codecov --token=${{ secrets.CODECOV_TOKEN }}
47+
if: matrix.python-version == '3.10'
48+
run: poetry run make docs-build
49+
- name: Check that formatting, linting, and tests pass for pydantic v1
50+
run: poetry run make ci-v1
51+
- name: Check that formatting, linting, and tests pass for pydantic v2
52+
run: poetry run make ci-v2
53+

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ venv/
77
.venv/
88
env3*/
99

10+
# Repo files that copied into docs
11+
docs/index.md
12+
docs/release-notes.md
13+
docs/contributing.md
14+
1015
# Byte-compiled / optimized / DLL files
1116
__pycache__/
1217
*.py[cod]

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"python.analysis.typeCheckingMode": "strict",
3+
"python.testing.pytestArgs": [
4+
"tests"
5+
],
6+
"python.testing.unittestEnabled": false,
7+
"python.testing.pytestEnabled": true,
8+
"cSpell.words": [
9+
"fastapi"
10+
]
11+
}

0 commit comments

Comments
 (0)