Skip to content

Commit 85ca0de

Browse files
Feature/python 3.11 (#71)
* Update Python (3.11) and dependencies Based on Flagsmith/edge-proxy/pull#55, with up-to-date dependencies. * feature/python 3.11 * Update Github actions --------- Co-authored-by: Gonçalo Silva <[email protected]>
1 parent a20e656 commit 85ca0de

File tree

10 files changed

+84
-93
lines changed

10 files changed

+84
-93
lines changed

.github/workflows/docker-publish-image.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Cloning repo
17-
uses: actions/checkout@v2
18-
with:
19-
fetch-depth: 0
17+
uses: actions/checkout@v3
2018

2119
- name: Docker metadata
2220
id: meta

.github/workflows/pull-request.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ jobs:
2525
strategy:
2626
max-parallel: 4
2727
matrix:
28-
python-version: ["3.10"]
28+
python-version: ["3.11"]
2929

3030
steps:
3131
- name: Cloning repo
32-
uses: actions/checkout@v2
33-
with:
34-
fetch-depth: 0
32+
uses: actions/checkout@v3
3533

3634
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v4
3836
with:
3937
python-version: ${{ matrix.python-version }}
4038

.github/workflows/sse-deploy-production-ecs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Cloning repo
19-
uses: actions/checkout@v2
20-
with:
21-
fetch-depth: 0
19+
uses: actions/checkout@v3
2220

2321
- name: Deploy SSE to Production
2422
uses: ./.github/actions/sse-deploy-ecs

.github/workflows/sse-deploy-staging-ecs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Cloning repo
20-
uses: actions/checkout@v2
21-
with:
22-
fetch-depth: 0
20+
uses: actions/checkout@v3
2321

2422
- name: Deploy SSE to Staging
2523
uses: ./.github/actions/sse-deploy-ecs

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-slim as application
1+
FROM python:3.11-slim as application
22

33
WORKDIR /app
44

fastapi_utils/test_tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def log_exc() -> NoReturn:
6868
async def test_repeat_raise_error(
6969
caplog: LogCaptureFixture, capsys: CaptureFixture
7070
) -> None:
71-
7271
# Given
7372
logger = logging.getLogger(__name__)
7473

requirements-dev.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ certifi
1515
# lock the version because `starlette`(from requirements.in) explicitly depends on it
1616
# but httpx tries to fetch the latest version causing conflict between
1717
# requirements.txt and requirements-dev.txt
18-
anyio==3.4.0
18+
anyio==3.7.1
19+

requirements-dev.txt

Lines changed: 46 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,118 +4,111 @@
44
#
55
# pip-compile requirements-dev.in
66
#
7-
anyio==3.4.0
7+
anyio==3.7.1
88
# via
99
# -r requirements-dev.in
1010
# httpcore
11-
aspy-refactor-imports==3.0.1
12-
# via reorder-python-imports
13-
astroid==2.9.0
11+
astroid==2.15.6
1412
# via pylint
15-
autopep8==1.6.0
13+
autopep8==2.0.4
1614
# via -r requirements-dev.in
17-
backports-entry-points-selectable==1.1.1
18-
# via virtualenv
19-
black==22.6.0
15+
black==23.9.1
2016
# via -r requirements-dev.in
2117
certifi==2023.7.22
2218
# via
2319
# -r requirements-dev.in
2420
# httpcore
2521
# httpx
26-
cfgv==3.3.1
22+
cfgv==3.4.0
2723
# via pre-commit
28-
click==8.0.3
24+
classify-imports==4.2.0
25+
# via reorder-python-imports
26+
click==8.1.7
2927
# via black
30-
distlib==0.3.3
28+
dill==0.3.7
29+
# via pylint
30+
distlib==0.3.7
3131
# via virtualenv
32-
filelock==3.4.0
32+
filelock==3.12.4
3333
# via virtualenv
34-
flake8==4.0.1
34+
flake8==6.1.0
3535
# via -r requirements-dev.in
36-
h11==0.12.0
36+
h11==0.14.0
3737
# via httpcore
38-
httpcore==0.15.0
38+
httpcore==0.18.0
3939
# via httpx
40-
httpx==0.23.0
40+
httpx==0.25.0
4141
# via -r requirements-dev.in
42-
identify==2.4.0
42+
identify==2.5.28
4343
# via pre-commit
44-
idna==3.3
44+
idna==3.4
4545
# via
4646
# anyio
47-
# rfc3986
48-
iniconfig==1.1.1
47+
# httpx
48+
iniconfig==2.0.0
4949
# via pytest
50-
isort==5.10.1
50+
isort==5.12.0
5151
# via
5252
# -r requirements-dev.in
5353
# pylint
54-
lazy-object-proxy==1.6.0
54+
lazy-object-proxy==1.9.0
5555
# via astroid
56-
mccabe==0.6.1
56+
mccabe==0.7.0
5757
# via
5858
# flake8
5959
# pylint
60-
mypy-extensions==0.4.3
60+
mypy-extensions==1.0.0
6161
# via black
62-
nodeenv==1.6.0
62+
nodeenv==1.8.0
6363
# via pre-commit
64-
packaging==21.3
65-
# via pytest
66-
pathspec==0.9.0
64+
packaging==23.1
65+
# via
66+
# black
67+
# pytest
68+
pathspec==0.11.2
6769
# via black
6870
pep8==1.7.1
6971
# via -r requirements-dev.in
70-
platformdirs==2.4.0
72+
platformdirs==3.10.0
7173
# via
7274
# black
7375
# pylint
7476
# virtualenv
75-
pluggy==1.0.0
77+
pluggy==1.3.0
7678
# via pytest
77-
pre-commit==2.20.0
79+
pre-commit==3.4.0
7880
# via -r requirements-dev.in
79-
pycodestyle==2.8.0
81+
pycodestyle==2.11.0
8082
# via
8183
# autopep8
8284
# flake8
83-
pyflakes==2.4.0
85+
pyflakes==3.1.0
8486
# via flake8
85-
pylint==2.12.1
87+
pylint==2.17.5
8688
# via -r requirements-dev.in
87-
pyparsing==3.0.6
88-
# via packaging
89-
pytest==7.4.0
89+
pytest==7.4.2
9090
# via
9191
# -r requirements-dev.in
9292
# pytest-asyncio
9393
# pytest-mock
94-
pytest-asyncio==0.19.0
94+
pytest-asyncio==0.21.1
9595
# via -r requirements-dev.in
96-
pytest-mock==3.6.1
96+
pytest-mock==3.11.1
9797
# via -r requirements-dev.in
98-
pyyaml==6.0
98+
pyyaml==6.0.1
9999
# via pre-commit
100-
reorder-python-imports==3.0.1
100+
reorder-python-imports==3.10.0
101101
# via -r requirements-dev.in
102-
rfc3986[idna2008]==1.5.0
103-
# via httpx
104-
six==1.16.0
105-
# via virtualenv
106-
sniffio==1.2.0
102+
sniffio==1.3.0
107103
# via
108104
# anyio
109105
# httpcore
110106
# httpx
111-
toml==0.10.2
112-
# via
113-
# autopep8
114-
# pre-commit
115-
# pylint
116-
virtualenv==20.10.0
107+
tomlkit==0.12.1
108+
# via pylint
109+
virtualenv==20.24.5
117110
# via pre-commit
118-
wrapt==1.13.3
111+
wrapt==1.15.0
119112
# via astroid
120113

121114
# The following packages are considered to be unsafe in a requirements file:

requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ fastapi
22
uvicorn
33
requests
44
marshmallow
5-
flagsmith-flag-engine @ git+https://github.com/Flagsmith/flagsmith-engine.git@feat/schemas
5+
flagsmith-flag-engine
66
python-decouple
77
python-dotenv
88
pydantic
99
# sse-stuff
1010
sse-starlette
1111
asyncio
1212
redis
13+

requirements.txt

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,67 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
55
# pip-compile
66
#
7-
anyio==3.4.0
8-
# via starlette
9-
async-timeout==4.0.2
10-
# via redis
7+
anyio==3.7.1
8+
# via
9+
# fastapi
10+
# starlette
1111
asyncio==3.4.3
1212
# via -r requirements.in
1313
certifi==2023.7.22
1414
# via requests
15-
charset-normalizer==2.0.9
15+
charset-normalizer==3.2.0
1616
# via requests
17-
click==8.0.3
17+
click==8.1.7
1818
# via uvicorn
19-
fastapi==0.98.0
19+
fastapi==0.103.1
2020
# via -r requirements.in
2121
flagsmith-flag-engine==4.0.4
2222
# via -r requirements.in
23-
h11==0.12.0
23+
h11==0.14.0
2424
# via uvicorn
25-
idna==3.3
25+
idna==3.4
2626
# via
2727
# anyio
2828
# requests
29-
marshmallow==3.14.1
29+
marshmallow==3.20.1
3030
# via -r requirements.in
31-
pydantic==1.10.9
31+
packaging==23.1
32+
# via marshmallow
33+
pydantic==1.10.12
3234
# via
3335
# -r requirements.in
3436
# fastapi
3537
# flagsmith-flag-engine
3638
# pydantic-collections
37-
pydantic-collections==0.4.0
39+
pydantic-collections==0.5.1
3840
# via flagsmith-flag-engine
39-
python-decouple==3.5
41+
python-decouple==3.8
4042
# via -r requirements.in
41-
python-dotenv==0.19.2
43+
python-dotenv==1.0.0
4244
# via -r requirements.in
43-
redis==4.4.4
45+
redis==4.6.0
4446
# via -r requirements.in
4547
requests==2.31.0
4648
# via -r requirements.in
4749
semver==2.13.0
4850
# via flagsmith-flag-engine
49-
sniffio==1.2.0
51+
sniffio==1.3.0
5052
# via anyio
51-
sse-starlette==1.1.1
53+
sse-starlette==1.6.5
5254
# via -r requirements.in
5355
starlette==0.27.0
5456
# via
5557
# fastapi
5658
# sse-starlette
57-
typing-extensions==4.6.3
58-
# via pydantic
59-
urllib3==1.26.7
59+
typing-extensions==4.7.1
60+
# via
61+
# fastapi
62+
# pydantic
63+
# pydantic-collections
64+
urllib3==2.0.4
6065
# via requests
61-
uvicorn==0.18.2
66+
uvicorn==0.23.2
6267
# via -r requirements.in

0 commit comments

Comments
 (0)