Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/setup-python@v5.3.0
with:
python-version: '3.8'

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
- run: make install-dev
Expand All @@ -29,10 +29,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
- run: make install-dev
Expand All @@ -42,10 +42,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
- run: make install-dev
Expand All @@ -55,7 +55,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.3.0
with:
python-version: 3.11
- run: pip install safety==2.3.5
Expand Down
10 changes: 6 additions & 4 deletions fastapi_versionizer/versionizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,13 @@ def _add_route_to_router(
return router.add_api_websocket_route(**kwargs)
except TypeError as e:
e_str = str(e)
key_start = e_str.index("'") + 1
key_end = e_str.rindex("'")
kwargs.pop(e_str[key_start:key_end])
error_parts = e_str.split("'")
if len(error_parts) < 2:
raise RuntimeError(f'unknown type error: {e_str}')
key_to_remove = error_parts[1]
kwargs.pop(key_to_remove)

raise Exception('Failed to add route')
raise RuntimeError('Failed to add route')

def _strip_routes(self) -> None:
paths_to_keep = []
Expand Down
7 changes: 3 additions & 4 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ flake8-eradicate==1.4.0
flake8-length==0.3.1
flake8-quotes==3.3.2
flake8-use-fstring==1.4
pytest==7.0.1
pytest==8.3.4
mypy==1.4.1
pre-commit==2.21.0
pytest==7.0.1
pytest-cov==4.1.0
pytest-cov==5.0.0
safety==2.3.5
twine==3.8.0
types-setuptools==65.6.0.2
httpx==0.22.0
httpx==0.28.1
uvicorn==0.16.0
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13'
],
install_requires=requirements_list,
python_requires='>=3.8'
Expand Down