Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pavelzw patch 1 [ci] #2

Closed
wants to merge 232 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
8671815
Made the class method names into resource methods
yuval9313 Jul 4, 2020
8c93edf
Add support in the old decorator route implementation
yuval9313 Jul 4, 2020
7b81464
Add method duplication reinforcement
yuval9313 Jul 4, 2020
3b34c1b
Add resource base class and API router wrapper
yuval9313 Jul 5, 2020
a13966b
Fix Resource class also showing init arguments on request swagger
yuval9313 Jul 6, 2020
80f9f1c
Fix Resource inhirted class don't contain it's required properties on…
yuval9313 Jul 6, 2020
64112e4
Improve the new_init return to not create new instance, rather use th…
yuval9313 Jul 9, 2020
6f5378b
Improve Resource and Api classes, reducing logic in both
yuval9313 Jul 9, 2020
71624d8
Instead of class attriburte in init, use decorator
yuval9313 Jul 9, 2020
baf5b39
Add multiple responses via decorator
yuval9313 Jul 9, 2020
6909e79
Fix assigning multiple routes from single resource
yuval9313 Jul 9, 2020
eb71933
Add cbv resource class testing
yuval9313 Jul 9, 2020
402fcca
Lint files
yuval9313 Jul 16, 2020
2bb90c1
Lint tests
yuval9313 Jul 16, 2020
a94b1ec
Add docs and improved imports
yuval9313 Jul 16, 2020
41a3c8a
Lint and mypy test fix
yuval9313 Jul 16, 2020
8760661
Merge pull request #1 from yuval9313/feature/simplier-classes
yuval9313 Jul 16, 2020
d623ddf
Update readme
yuval9313 Jul 16, 2020
d8401c0
Merge pull request #2 from yuval9313/feature/simplier-classes
yuval9313 Jul 16, 2020
8fb039e
Update README
yuval9313 Jul 16, 2020
80795e2
Merge branch 'master' of https://github.com/yuval9313/fastapi-utils
yuval9313 Jul 16, 2020
ebb7ac5
Update docs
yuval9313 Jul 16, 2020
103f015
Move files from fastapi utils to fastapi restful in porpuse of build
yuval9313 Jul 16, 2020
45a326f
Update docs again
yuval9313 Jul 16, 2020
f3212a2
Update versions
yuval9313 Jul 16, 2020
fcbcb1b
Lower case the package folder
yuval9313 Jul 17, 2020
577fa56
Correct imports in docs
yuval9313 Jul 17, 2020
37f13ff
Correct imports in tests
yuval9313 Jul 17, 2020
de6e2b3
Update pyproject
yuval9313 Jul 17, 2020
4eec530
Update Docs
yuval9313 Jul 17, 2020
2b0914b
Lint
yuval9313 Jul 17, 2020
ce46377
Update makefile
yuval9313 Jul 17, 2020
82a98a3
Update poetry versioning
yuval9313 Jul 17, 2020
cd78588
Lint and sort
yuval9313 Jul 17, 2020
8835034
Correct imports
yuval9313 Jul 17, 2020
30e311d
Update makefile
yuval9313 Jul 17, 2020
1a5931e
Fix imports break code
yuval9313 Jul 17, 2020
dac40ee
Update pyproject
yuval9313 Jul 17, 2020
60e3875
Update lock
yuval9313 Jul 18, 2020
395cb1c
Update packages
yuval9313 Jul 18, 2020
be255de
Update build.yml
yuval9313 Jul 18, 2020
54e45c0
Update requirements for win32 and py version < 38
yuval9313 Jul 18, 2020
7b2aeff
Merge branch 'master' of https://github.com/yuval9313/fastapi-utils
yuval9313 Jul 18, 2020
f9fe9c5
Fix requirements
yuval9313 Jul 18, 2020
5383dc5
Change mkdocs to py version 3.8
yuval9313 Jul 18, 2020
9c4b4c7
Fix mkdocs error
yuval9313 Jul 18, 2020
d068079
Update docs, add shields and update workflows
yuval9313 Jul 18, 2020
aea1219
Update docs to include additonal responses handling
yuval9313 Aug 23, 2020
ab591fd
Numerous changes in the documantations
yuval9313 Aug 23, 2020
0760b7b
Merge pull request #4 from yuval9313/docs/fixes
yuval9313 Aug 23, 2020
0b9e7af
Add kwargs to option to set_responses
yuval9313 Aug 31, 2020
1def62c
Lint and formatting
yuval9313 Aug 31, 2020
26e7477
Merge branch 'master' into feature/more-responses-options
yuval9313 Aug 31, 2020
533be03
Add documantation for the new kwargs option
yuval9313 Aug 31, 2020
f611149
Update project version
yuval9313 Aug 31, 2020
5c8fce1
Merge pull request #5 from yuval9313/feature/more-responses-options
yuval9313 Aug 31, 2020
0fbb568
Create dependabot.yml
yuval9313 Jan 3, 2021
f9c846c
Update dependabot.yml
yuval9313 Jan 3, 2021
f98838e
Merge pull request #7 from yuval9313/feature/dependabot
yuval9313 Jan 3, 2021
8ee7243
Bump markdown-include from 0.5.1 to 0.6.0
dependabot[bot] Jan 3, 2021
45ef763
Bump pytest-cov from 2.10.0 to 2.10.1
dependabot[bot] Jan 3, 2021
0305ef8
Bump mypy from 0.782 to 0.790
dependabot[bot] Jan 3, 2021
f209817
Bump flake8 from 3.8.3 to 3.8.4
dependabot[bot] Jan 3, 2021
1007b04
Bump black from 19.10b0 to 20.8b1
dependabot[bot] Jan 3, 2021
7b8c10c
Merge pull request #8 from yuval9313/dependabot/pip/markdown-include-…
yuval9313 Jan 3, 2021
536c8a1
Merge branch 'master' into dependabot/pip/pytest-cov-2.10.1
yuval9313 Jan 3, 2021
a5cfaca
Merge pull request #9 from yuval9313/dependabot/pip/pytest-cov-2.10.1
yuval9313 Jan 3, 2021
735ecce
Merge branch 'master' into dependabot/pip/mypy-0.790
yuval9313 Jan 3, 2021
b4ce607
Merge pull request #10 from yuval9313/dependabot/pip/mypy-0.790
yuval9313 Jan 3, 2021
6e9628e
Merge branch 'master' into dependabot/pip/flake8-3.8.4
yuval9313 Jan 3, 2021
ce8973c
Merge pull request #11 from yuval9313/dependabot/pip/flake8-3.8.4
yuval9313 Jan 3, 2021
3f70efb
Merge branch 'master' into dependabot/pip/black-20.8b1
yuval9313 Jan 3, 2021
042e8b8
Merge pull request #12 from yuval9313/dependabot/pip/black-20.8b1
yuval9313 Jan 3, 2021
76a2bfe
Bump sqlalchemy from 1.3.18 to 1.3.22
dependabot[bot] Jan 3, 2021
e3215ad
Bump pydantic from 1.6.1 to 1.7.3
dependabot[bot] Jan 3, 2021
0c50736
Bump isort from 5.1.2 to 5.7.0
dependabot[bot] Jan 3, 2021
306cead
Bump codecov from 2.1.8 to 2.1.11
dependabot[bot] Jan 3, 2021
3515c50
Bump coverage from 5.2 to 5.3.1
dependabot[bot] Jan 3, 2021
b13711a
Merge pull request #14 from yuval9313/dependabot/pip/pydantic-1.7.3
yuval9313 Jan 3, 2021
c22ffd9
Merge pull request #13 from yuval9313/dependabot/pip/sqlalchemy-1.3.22
yuval9313 Jan 3, 2021
f02e132
Merge pull request #15 from yuval9313/dependabot/pip/isort-5.7.0
yuval9313 Jan 3, 2021
4918d99
Merge pull request #17 from yuval9313/dependabot/pip/codecov-2.1.11
yuval9313 Jan 3, 2021
b3b2173
Merge pull request #18 from yuval9313/dependabot/pip/coverage-5.3.1
yuval9313 Jan 3, 2021
2d42ae8
Bump autoflake from 1.3.1 to 1.4
dependabot[bot] Jan 3, 2021
9e2212d
Bump fastapi from 0.59.0 to 0.63.0
dependabot[bot] Jan 3, 2021
f567c6c
Bump requests from 2.24.0 to 2.25.1
dependabot[bot] Jan 3, 2021
c49a0d6
Bump pytest from 5.4.3 to 6.2.1
dependabot[bot] Jan 3, 2021
9d0d446
Bump mkdocs-material from 5.4.0 to 6.2.3
dependabot[bot] Jan 3, 2021
58f6370
Merge pull request #20 from yuval9313/dependabot/pip/fastapi-0.63.0
yuval9313 Jan 3, 2021
4ea2b46
Merge pull request #19 from yuval9313/dependabot/pip/autoflake-1.4
yuval9313 Jan 3, 2021
de24111
Merge pull request #21 from yuval9313/dependabot/pip/requests-2.25.1
yuval9313 Jan 3, 2021
e5781cc
Merge pull request #22 from yuval9313/dependabot/pip/pytest-6.2.1
yuval9313 Jan 3, 2021
d4078c7
Merge pull request #23 from yuval9313/dependabot/pip/mkdocs-material-…
yuval9313 Jan 3, 2021
bc6845c
Bump more-itertools from 8.4.0 to 8.6.0
dependabot[bot] Jan 3, 2021
6e44c3b
Bump aiofiles from 0.5.0 to 0.6.0
dependabot[bot] Jan 3, 2021
1362886
Merge pull request #24 from yuval9313/dependabot/pip/more-itertools-8…
yuval9313 Jan 3, 2021
25d9a77
Merge pull request #25 from yuval9313/dependabot/pip/aiofiles-0.6.0
yuval9313 Jan 3, 2021
906a0cd
Upgrade dependencies
Jan 4, 2021
ce5c902
Update version patch and fix small error in contributing, Includes py…
yuval9313 Jan 4, 2021
437eec0
Reduce dev requirements from requirements file
yuval9313 Jan 4, 2021
f176064
Update pull-request.yml
yuval9313 Jan 4, 2021
bfdab49
Merge branch 'master' of https://github.com/yuval9313/fastapi-utils i…
yuval9313 Jan 4, 2021
8ea85e5
Update pull-request.yml
yuval9313 Jan 4, 2021
7c6cf8d
Update pull-request.yml
yuval9313 Jan 4, 2021
286f711
Update pull-request.yml
yuval9313 Jan 4, 2021
226af28
Fix difference between CONTRIBUTING.md and docs/contributing.md
yuval9313 Jan 4, 2021
ae88b70
Merge branch 'feature/more-responses-options' of https://github.com/y…
yuval9313 Jan 4, 2021
e7c19ea
Merge pull request #26 from yuval9313/feature/more-responses-options
yuval9313 Jan 4, 2021
65ce47a
Update publish.yml
yuval9313 Jan 4, 2021
83d54e5
Update publish.yml
yuval9313 Jan 4, 2021
5d1db97
Change wait_first to a float
TomBurch Apr 1, 2021
46217f4
Merge pull request #44 from TomBurch/master
yuval9313 Apr 7, 2021
3e4c814
Fix tests issue
yuval9313 Apr 7, 2021
c3d2214
Fix error of deprecation in the Makefile
yuval9313 Apr 7, 2021
2cc1d6d
Minor changes to the develop.sh script
yuval9313 Apr 7, 2021
f7780f4
Merge pull request #45 from yuval9313/feature/wait-first-float
yuval9313 Apr 7, 2021
c7000cb
Update publish.yml (#46)
yuval9313 Apr 7, 2021
7b58387
Bump mkdocs-material from 6.2.3 to 7.1.3 (#49)
dependabot[bot] May 5, 2021
b6fcb77
Fix routing problem (#36)
yen3 May 5, 2021
3c624c0
Update to support python 3.9
yuval9313 May 5, 2021
d0fb6f0
pull request will support tests on python 3.9
yuval9313 May 5, 2021
6577c23
Feature/auto publish on merge (#52)
yuval9313 May 5, 2021
c37e561
Update version
yuval9313 May 5, 2021
2010a1a
Bump pydantic from 1.7.3 to 1.7.4 (#55)
dependabot[bot] May 16, 2021
5b313a7
Bump sqlalchemy from 1.4.13 to 1.4.14 (#54)
dependabot[bot] May 16, 2021
5b00ac1
Fix missing changelog.md
yuval9313 May 16, 2021
f5668cf
Add sqlalchemy install to python extra installs
yuval9313 May 16, 2021
04f8d70
Update makefile
yuval9313 May 16, 2021
1eca758
Update version to 0.3.1
yuval9313 May 16, 2021
85b54fb
Fix lock and workflows to make ci working properly
yuval9313 May 16, 2021
1c6bac0
Update requirements for netlify
yuval9313 May 16, 2021
bd6794d
Fix build workflow
yuval9313 May 16, 2021
c6bad7c
Bump fastapi from 0.65.1 to 0.65.2 (#62)
dependabot[bot] Jun 19, 2021
31da136
Bump aiofiles from 0.6.0 to 0.7.0 (#56)
dependabot[bot] Jun 19, 2021
9b489c2
Bump urllib3 from 1.26.4 to 1.26.5 (#60)
dependabot[bot] Jun 19, 2021
a6d2524
Bump sqlalchemy from 1.4.15 to 1.4.18 (#63)
dependabot[bot] Jun 19, 2021
e7ade3b
Bump mkdocs-material from 7.1.4 to 7.1.8 (#64)
dependabot[bot] Jun 19, 2021
a86086b
Move to scm versioning
yuval9313 Jun 19, 2021
627570a
Move to poetry version by scm
yuval9313 Jun 19, 2021
1159c07
Merge branch 'master' of https://github.com/yuval9313/fastapi-utils
yuval9313 Jun 19, 2021
a139150
Optimizations (#68)
yuval9313 Jun 20, 2021
d937e8d
Create runtime.txt for netlify
yuval9313 Jun 20, 2021
d7ce7d9
Update .gitignore
yuval9313 Jun 20, 2021
5d0923d
Bump mypy from 0.902 to 0.910 (#69)
dependabot[bot] Jul 26, 2021
f500071
Bump fastapi from 0.65.2 to 0.66.1 (#74)
dependabot[bot] Jul 26, 2021
51b218c
Bump sqlalchemy from 1.4.18 to 1.4.21 (#75)
dependabot[bot] Jul 26, 2021
d33a901
Bump mkdocs-material from 7.1.8 to 7.1.11 (#76)
dependabot[bot] Jul 26, 2021
fd7b900
include_router method add kwargs params (#87)
Funnor Oct 20, 2021
d13b75d
Bump mkdocs from 1.2.1 to 1.2.3 (#92)
dependabot[bot] Nov 2, 2021
373167e
Bump fastapi from 0.66.1 to 0.68.1 (#85)
dependabot[bot] Nov 2, 2021
d258aba
Bump types-dataclasses from 0.1.5 to 0.6.1 (#95)
dependabot[bot] Dec 15, 2021
3ac32e1
Bump codecov from 2.1.11 to 2.1.12 (#94)
dependabot[bot] Dec 15, 2021
9000c8b
Bump black version, remove support of python >3.6.2
yuval9313 Jan 11, 2022
f378492
Run black new version on project
yuval9313 Jan 11, 2022
f1a8095
Bump requests from 2.25.1 to 2.27.1
dependabot[bot] Jan 10, 2022
15e304e
Bump sqlalchemy from 1.4.21 to 1.4.29
dependabot[bot] Jan 11, 2022
997315e
docs: Fix typo in CamelStrEnum example
pmav99 Dec 1, 2021
d8e27ff
Bump types-dataclasses from 0.6.1 to 0.6.4
dependabot[bot] Jan 11, 2022
3bd5218
Bump aiofiles from 0.7.0 to 0.8.0
dependabot[bot] Dec 20, 2021
14b2957
Bump version
yuval9313 Jan 11, 2022
a7b0f32
Add support to python 3.10
yuval9313 Jan 11, 2022
de7b7d1
Fix quotes missing in python 3.10 version
yuval9313 Jan 11, 2022
a510802
Update poetry.lock to not include dataclasses
yuval9313 Jan 11, 2022
3bf323b
Bump flake8 for better PR process
yuval9313 Jan 11, 2022
dc7aed1
Add dataclasses constraint to pyproject.toml
yuval9313 Jan 11, 2022
a937331
Update poetry github action
yuval9313 Jan 11, 2022
8b1ff81
Replace tabs with spaces
yuval9313 Jan 11, 2022
79ccc7b
Update pytest version
yuval9313 Jan 11, 2022
d22a111
Fix issues with pytest version bump
yuval9313 Jan 11, 2022
7ae1fdb
Fix Pypi classifiers
yuval9313 Jan 11, 2022
6081ac9
Remove black/flake8/mypy from main dependencies
takeda Jan 24, 2022
fc7e589
Bump mkdocs-material from 8.1.6 to 8.1.9
dependabot[bot] Jan 31, 2022
fa948e7
Bump black from 21.12b0 to 22.1.0
dependabot[bot] Feb 2, 2022
50e40c2
Bump sqlalchemy from 1.4.29 to 1.4.31
dependabot[bot] Feb 2, 2022
4d4a0e5
Bump fastapi from 0.71.0 to 0.73.0
dependabot[bot] Feb 2, 2022
1bf31bc
Improve packages pinning
yuval9313 Feb 2, 2022
7453ac3
Bump version pre-release
yuval9313 Feb 2, 2022
46c3a5a
Bump again due to tagging issues
yuval9313 Feb 2, 2022
c72f63b
Update additional packages and poetry lock
yuval9313 Feb 2, 2022
23bab06
Fix inferring router don't infer None
yuval9313 Feb 12, 2022
c7196e0
Bump pytest from 6.2.5 to 7.0.0
dependabot[bot] Feb 7, 2022
47848b7
Bump mkdocs-material from 8.1.9 to 8.1.10
dependabot[bot] Feb 7, 2022
1b4682e
Add missing changelog details
yuval9313 Feb 12, 2022
061e94c
Update all packages
yuval9313 Feb 12, 2022
24c0a87
Add bump version to changelog
yuval9313 Feb 12, 2022
4edfdab
Bump version
yuval9313 Feb 12, 2022
74ff82d
Update tests to fit better practices
yuval9313 Feb 12, 2022
c2f7d4f
Update enums tests and fix enum due to CI failures
yuval9313 Feb 12, 2022
c3fc04e
Update class-resource.md
fugacityengr Mar 1, 2022
37edc3f
Add .deepsource.toml
deepsourcebot Aug 30, 2022
7b79d9e
Remove unnecessary generator
deepsource-autofix[bot] Aug 30, 2022
1024517
Remove assert statement from non-test files
deepsource-autofix[bot] Aug 30, 2022
4cc8335
Update fastapi_restful/cbv.py
yuval9313 Aug 30, 2022
19655d1
Update fastapi_restful/timing.py
yuval9313 Aug 30, 2022
8870ecf
Update poetry and poetry lock
yuval9313 Jun 5, 2023
5f208a9
Merge branch 'master' of github.com:dmontagu/fastapi-utils into dmont…
yuval9313 Jun 5, 2023
79dc875
Merge branch 'dmontagu-master'
yuval9313 Jun 5, 2023
1e9cb76
Update poetry lock
yuval9313 Jun 5, 2023
655ac56
Remove redundant imports
yuval9313 Jun 5, 2023
eb16e43
Update fastapi to prepare deprecation of inferring router
yuval9313 Jun 6, 2023
133f489
Ruff black and mypy
yuval9313 Jun 6, 2023
2bb2b58
Remove some redundant tests due to them checking fastapi really
yuval9313 Jun 6, 2023
af281a6
Force update sqlalchemy above 1.4
yuval9313 Jun 6, 2023
934fa06
Update poetry build backend
yuval9313 Jun 6, 2023
c4da2c3
Update pydantic and psutil > 3.11
yuval9313 Jun 6, 2023
631bfa0
Restore old release notes
yuval9313 Jun 6, 2023
361169a
Update references to fastapi-utils
yuval9313 Jun 6, 2023
8631df5
Largely update all deps of development
yuval9313 Jun 6, 2023
595b7d1
Add new release notes
yuval9313 Jun 6, 2023
d10a674
Update python version on workflows
yuval9313 Jun 6, 2023
079e4b3
Fix mypy issues
yuval9313 Jun 6, 2023
c46e56c
Remove un-neccessary config files in favor of pyproject.toml and flak…
yuval9313 Jun 6, 2023
5ebb537
update deepsoruce max line length
yuval9313 Jun 7, 2023
90f9e73
Create CNAME
yuval9313 Jun 7, 2023
4f28e0a
Delete CNAME
yuval9313 Jun 7, 2023
5a25521
Remove runtime
yuval9313 Jun 7, 2023
9d39543
Update lock on fastapi
yuval9313 Jun 8, 2023
c58601a
Add release notes and changed versions
yuval9313 Jun 8, 2023
1e5c702
Change docs of package to github pages and changed publish to pypi (#…
yuval9313 Jun 8, 2023
fe649b5
Fix bad syntax of github actions
yuval9313 Jun 8, 2023
1201235
Update LICENSE
yuval9313 Jun 10, 2023
9ca60cb
Bump sqlalchemy from 1.4.48 to 2.0.19 (#202)
dependabot[bot] Jul 20, 2023
22e61d2
Pydantic v2 (#199)
ollz272 Jul 29, 2023
a28f406
fix: fix ci not run (#208)
ollz272 Aug 4, 2023
c285c18
fix: bump version, add release notes (#212)
ollz272 Aug 13, 2023
3ed7815
Update dependabot.yml (#217)
pavelzw Aug 13, 2023
f3b5c13
Update publish.yml
yuval9313 Aug 13, 2023
b7d3c36
Bump ruff from 0.0.272 to 0.0.284 (#223)
dependabot[bot] Aug 13, 2023
8fb2af0
Bump actions/setup-python from 1 to 4 (#222)
dependabot[bot] Aug 13, 2023
b490898
Bump abatilo/actions-poetry from 2.1.3 to 2.3.0 (#221)
dependabot[bot] Aug 13, 2023
55aedb4
Add proper __version__
pavelzw Aug 13, 2023
7db6c59
Conditional __version__
pavelzw Aug 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version = 1

test_patterns = [
"tests/**",
"test_*.py"
]

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"
max_line_length = 120
type_checker = "mypy"

[[transformers]]
name = "black"
enabled = true

[[transformers]]
name = "isort"
enabled = true
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2

updates:
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
30 changes: 16 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,25 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Init python poetry action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- uses: actions/cache@v1
id: cache-deps
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
run: poetry install -E session

- uses: actions/cache@v1
with:
path: .mypy_cache
Expand All @@ -42,12 +47,9 @@ jobs:
key: pytest-${{ matrix.python-version }}
- name: Check docs build
# only run this for the python version used by netlify:
if: matrix.python-version == '3.8'
run: |
make docs-build-ci
- name: Check that formatting, linting, and tests pass
run: |
make ci
- name: Submit coverage report
run: |
codecov --token=${{ secrets.CODECOV_TOKEN }}
if: matrix.python-version == '3.10'
run: poetry run make docs-build
- name: Check that formatting, linting, and tests pass for pydantic v1
run: poetry run make ci-v1
- name: Check that formatting, linting, and tests pass for pydantic v2
run: poetry run make ci-v2
54 changes: 36 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,59 @@
name: publish

permissions:
id-token: write

on:
push

jobs:
publish:
publish-tag:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: ['3.8']
python-version: ['3.10']

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Avoid caching to be 100% confident things are working properly
- name: Init python poetry action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Check that formatting, linting, and tests pass
run: |
make ci
run: poetry install -E session

- name: Check that formatting, linting, and tests pass for pydantic v1
run: poetry run make ci-v1
- name: Check that formatting, linting, and tests pass for pydantic v2
run: poetry run make ci-v2

- name: Check docs are up to date
run: |
make docs-build-ci
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
run: poetry run make docs-build

- name: Build distribution
run: |
source $HOME/.poetry/env && poetry build
run: poetry build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
run: poetry publish
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

# Publish docs to github pages
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
password: ${{ secrets.PYPI_PASSWORD }}
# Upload entire repository
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
30 changes: 16 additions & 14 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,24 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Init Python Poetry Action
uses: abatilo/[email protected]
with:
poetry-version: 1.5.1
- uses: actions/cache@v1
id: cache-deps
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
run: poetry install -E session
- uses: actions/cache@v1
with:
path: .mypy_cache
Expand All @@ -40,12 +44,10 @@ jobs:
key: pytest-${{ matrix.python-version }}
- name: Check docs build
# only run this for the python version used by netlify:
if: matrix.python-version == '3.8'
run: |
make docs-build-ci
- name: Check that formatting, linting, and tests pass
run: |
make ci
- name: Submit coverage report
run: |
codecov --token=${{ secrets.CODECOV_TOKEN }}
if: matrix.python-version == '3.10'
run: poetry run make docs-build
- name: Check that formatting, linting, and tests pass for pydantic v1
run: poetry run make ci-v1
- name: Check that formatting, linting, and tests pass for pydantic v2
run: poetry run make ci-v2

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ venv/
.venv/
env3*/

# Repo files that copied into docs
docs/index.md
docs/release-notes.md
docs/contributing.md

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
87 changes: 87 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
## Latest changes

## 0.5.0

* Bump sqlalchemy from 1.4.48 to 2.0.19 by @dependabot in #202
* Pydantic v2 by @ollz272 in #199
* fix ci not run by @ollz272 in #208

## 0.4.5

* Change the lock of fastapi to enable more versions of it to be installed

## 0.4.4

* Move to ruff for linting, etc.
* Update various dependencies
* Stop supporting Python 3.6
* Deprecate InferringRouter (as its functionality is now built into `fastapi.APIRouter`)
* Resolve various deprecationwarnings introduced by sqlalchemy 1.4.
* Add support to Python 3.11
* Change package description to avoid errors with pypi as [mentioned here](https://github.com/yuval9313/FastApi-RESTful/issues/175)

## 0.4.3

* Fix bug where inferred router raises exception when no content is needed but type hint is provided (e.g. `None` as return type with status code 204) (As mentiond in [#134](https://github.com/yuval9313/FastApi-RESTful/pull/134))
* Improve tests and add more test cases
* Bump dependencies versions

## 0.4.2

* Remove version pinning to allow diversity in python environments

## 0.4.1

* Add more pypi classifiers

## 0.4.0

** Breaking change **
* Remove support to python < 3.6.2

Additionals:
* Multiple version bumps
* Add usage of **kwargs for to allow more options when including new router

## 0.3.1

* [CVE-2021-29510](https://github.com/samuelcolvin/pydantic/security/advisories/GHSA-5jqp-qgf6-3pvh) fix of pydantic - update is required
* Made sqlalchemy as extras installs

## 0.3.0

* Add support for Python 3.9 :)
* Fix case of duplicate routes when cbv used with prefix. (As mentioned in [#36](https://github.com/yuval9313/FastApi-RESTful/pull/36))
* Made repeatable task pre activate (`wait_first`) to be float instead of boolean (Mentioned here [#45](https://github.com/yuval9313/FastApi-RESTful/pull/45))

## 0.2.4.1

* Another docs fix
* Rename package folder to small casing to ease imports

## 0.2.4

* Mostly docs fixes

## 0.2.2

* Add `Resorce` classes for more OOP like designing
* Methods are now can be used as class names

## 0.2.1

* Fix bug with multiple decorators on same method

## 0.2.0

* Make some of the functions/classes in `fastapi_utils.timing` private to clarify the intended public API
* Add documentation for `fastapi_utils.timing` module
* Fix bug with ordering of routes in a CBV router

## 0.1.1

* Add source docstrings for most functions.

## 0.1.0

* Initial release.
Loading
Loading