Skip to content

Commit 20ab1dc

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

File tree

12 files changed

+8833
-8800
lines changed

12 files changed

+8833
-8800
lines changed

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

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

55
jobs:
66

7-
tests-on-legacy-versions:
8-
name: Run tests on legacy versions
7+
tests-on-pypy:
8+
name: Run tests on pypy versions
99
runs-on: ubuntu-20.04
1010
strategy:
1111
matrix:
12-
python-version: [2.7, 3.5, 3.6, 3.7, pypy2.7, pypy3.9]
12+
python-version: [pypy3.9, pypy3.10]
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-python@v4
@@ -18,14 +18,14 @@ jobs:
1818
- run: pip install tox
1919
- run: tox
2020
env:
21-
TOXENV: ${{ matrix.python-version }}
21+
TOXENV: pypy
2222

2323
test-on-different-versions:
2424
name: Run tests
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
python-version: [3.8, 3.9, "3.10", 3.11]
28+
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]
2929
steps:
3030
- uses: actions/checkout@v3
3131
- uses: actions/setup-python@v4
@@ -40,15 +40,15 @@ jobs:
4040
name: Run tests with coverage
4141
runs-on: ubuntu-latest
4242
env:
43-
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
43+
# DEPENDENCY_INJECTOR_DEBUG_MODE: 1
4444
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
steps:
4747
- uses: actions/checkout@v3
4848
- uses: actions/setup-python@v4
4949
with:
50-
python-version: 3.11
51-
- run: pip install tox cython
50+
python-version: 3.12
51+
- run: pip install tox "cython<3"
5252
- run: make cythonize
5353
- run: tox
5454
env:
@@ -64,7 +64,7 @@ jobs:
6464
- uses: actions/checkout@v3
6565
- uses: actions/setup-python@v4
6666
with:
67-
python-version: 3.11
67+
python-version: 3.12
6868
- run: pip install tox
6969
- run: tox
7070
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cython==0.29.32
1+
cython<3
22
pytest
33
pytest-asyncio
44
tox
@@ -12,6 +12,7 @@ pyyaml
1212
httpx
1313
fastapi
1414
pydantic
15+
pydantic-settings
1516
numpy
1617
scipy
1718
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.2
2+
werkzeug<=2.2.2
3+
aiohttp>=3.9.3

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)