diff --git a/.github/workflows/tests-and-linters.yml b/.github/workflows/tests-and-linters.yml index 86f7358f..266c004f 100644 --- a/.github/workflows/tests-and-linters.yml +++ b/.github/workflows/tests-and-linters.yml @@ -40,8 +40,7 @@ jobs: name: Run tests with coverage runs-on: ubuntu-latest env: - # Cython's version <3 issue with tracing: "error: no member named 'use_tracing' in 'struct _PyCFrame'" - # DEPENDENCY_INJECTOR_DEBUG_MODE: 1 + DEPENDENCY_INJECTOR_DEBUG_MODE: 1 COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: @@ -49,7 +48,7 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.12 - - run: pip install tox cython==0.29.37 + - run: pip install tox 'cython>=3,<4' - run: make cythonize - run: tox env: diff --git a/Makefile b/Makefile index 0c4bca04..8466381a 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ VERSION := $(shell python setup.py --version) CYTHON_SRC := $(shell find src/dependency_injector -name '*.pyx') -CYTHON_DIRECTIVES = -Xlanguage_level=2 +CYTHON_DIRECTIVES = -Xlanguage_level=3 ifdef DEPENDENCY_INJECTOR_DEBUG_MODE CYTHON_DIRECTIVES += -Xprofile=True diff --git a/requirements-dev.txt b/requirements-dev.txt index 2981cf0a..adc34cd0 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -cython==0.29.37 +cython>=3,<4 pytest pytest-asyncio tox diff --git a/requirements-ext.txt b/requirements-ext.txt index 0a5e3ebc..138447f1 100644 --- a/requirements-ext.txt +++ b/requirements-ext.txt @@ -1,3 +1,3 @@ flask==2.1.3 werkzeug==2.2.2 -aiohttp==3.9.0b1 +aiohttp diff --git a/tox.ini b/tox.ini index fadbda68..5d69b808 100644 --- a/tox.ini +++ b/tox.ini @@ -28,7 +28,7 @@ passenv = GITHUB_*, COVERALLS_* basepython=python3.12 deps= {[testenv]deps} - cython<3.0 + cython>=3,<4 coverage coveralls commands=