mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-02 03:13:15 +03:00
Upgrade to Cython 3
This commit is contained in:
parent
35eba2b753
commit
ade1ccefc7
5
.github/workflows/tests-and-linters.yml
vendored
5
.github/workflows/tests-and-linters.yml
vendored
|
@ -40,8 +40,7 @@ jobs:
|
||||||
name: Run tests with coverage
|
name: Run tests with coverage
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
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 }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -49,7 +48,7 @@ jobs:
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.12
|
python-version: 3.12
|
||||||
- run: pip install tox cython==0.29.37
|
- run: pip install tox 'cython>=3,<4'
|
||||||
- run: make cythonize
|
- run: make cythonize
|
||||||
- run: tox
|
- run: tox
|
||||||
env:
|
env:
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@ VERSION := $(shell python setup.py --version)
|
||||||
|
|
||||||
CYTHON_SRC := $(shell find src/dependency_injector -name '*.pyx')
|
CYTHON_SRC := $(shell find src/dependency_injector -name '*.pyx')
|
||||||
|
|
||||||
CYTHON_DIRECTIVES = -Xlanguage_level=2
|
CYTHON_DIRECTIVES = -Xlanguage_level=3
|
||||||
|
|
||||||
ifdef DEPENDENCY_INJECTOR_DEBUG_MODE
|
ifdef DEPENDENCY_INJECTOR_DEBUG_MODE
|
||||||
CYTHON_DIRECTIVES += -Xprofile=True
|
CYTHON_DIRECTIVES += -Xprofile=True
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cython==0.29.37
|
cython>=3,<4
|
||||||
pytest
|
pytest
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
tox
|
tox
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
flask==2.1.3
|
flask==2.1.3
|
||||||
werkzeug==2.2.2
|
werkzeug==2.2.2
|
||||||
aiohttp==3.9.0b1
|
aiohttp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user