Skip to content

Commit d125f3d

Browse files
author
Vladimir Puzakov
committed
chore: add py312 support
- also remove legacy python support - pin cython, pydantic, flask, pydantic version - disable debug mode in coveralls - fix mypy typing test
1 parent cc2304e commit d125f3d

File tree

9 files changed

+997
-1015
lines changed

9 files changed

+997
-1015
lines changed

.github/workflows/tests-and-linters.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,12 @@ on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66

7-
tests-on-legacy-versions:
8-
name: Run tests on legacy versions
9-
runs-on: ubuntu-20.04
10-
strategy:
11-
matrix:
12-
python-version: [2.7, 3.5, 3.6, 3.7, pypy2.7, pypy3.9]
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-python@v4
16-
with:
17-
python-version: ${{ matrix.python-version }}
18-
- run: pip install tox
19-
- run: tox
20-
env:
21-
TOXENV: ${{ matrix.python-version }}
22-
237
test-on-different-versions:
248
name: Run tests
259
runs-on: ubuntu-latest
2610
strategy:
2711
matrix:
28-
python-version: [3.8, 3.9, "3.10", 3.11]
12+
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
2913
steps:
3014
- uses: actions/checkout@v3
3115
- uses: actions/setup-python@v4
@@ -40,15 +24,15 @@ jobs:
4024
name: Run tests with coverage
4125
runs-on: ubuntu-latest
4226
env:
43-
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
27+
# DEPENDENCY_INJECTOR_DEBUG_MODE: 1
4428
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4529
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4630
steps:
4731
- uses: actions/checkout@v3
4832
- uses: actions/setup-python@v4
4933
with:
50-
python-version: 3.11
51-
- run: pip install tox cython
34+
python-version: 3.12
35+
- run: pip install tox cython==0.29.37
5236
- run: make cythonize
5337
- run: tox
5438
env:
@@ -64,7 +48,7 @@ jobs:
6448
- uses: actions/checkout@v3
6549
- uses: actions/setup-python@v4
6650
with:
67-
python-version: 3.11
51+
python-version: 3.12
6852
- run: pip install tox
6953
- run: tox
7054
env:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ target/
5656

5757
# Virtualenv
5858
venv*/
59+
.venv
60+
.python-version
5961

6062
# SQLite
6163
*.db

requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cython==0.29.32
1+
cython==0.29.37
22
pytest
33
pytest-asyncio
44
tox
@@ -11,7 +11,7 @@ mypy
1111
pyyaml
1212
httpx
1313
fastapi
14-
pydantic
14+
pydantic==1.10.14
1515
numpy
1616
scipy
1717
boto3

requirements-ext.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
flask
2-
aiohttp
1+
flask==2.1.3
2+
werkzeug==2.2.2
3+
aiohttp==3.9.0b1

src/dependency_injector/_cwiring.c

Lines changed: 213 additions & 214 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)