dev-python/asyncpg: add patch for dev-python/cpython-3, unmask

Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
Julien Roy
2024-03-10 14:42:02 -04:00
parent 6fa1ccd0c5
commit c7174b9be1
3 changed files with 32 additions and 2 deletions

View File

@@ -24,13 +24,18 @@ RDEPEND="
' python3_{10..11})
"
BDEPEND="
<dev-python/cython-3[${PYTHON_USEDEP}]
test? (
dev-db/postgresql[server]
dev-python/uvloop[${PYTHON_USEDEP}]
)
"
PATCHES=(
# Works fine with >=dev-python/cython-3
# https://github.com/MagicStack/asyncpg/pull/1101
"${FILESDIR}"/cython-3.patch
)
EPYTEST_IGNORE=(
# checks versions from env variables
"${S}"/tests/test__environment.py

View File

@@ -0,0 +1,26 @@
diff --git a/pyproject.toml b/pyproject.toml
index ed2340a..825af6a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -50,7 +50,7 @@ requires = [
"setuptools>=60",
"wheel",
- "Cython(>=0.29.24,<3.0.0)"
+ "Cython(>=3.0.0)"
]
build-backend = "setuptools.build_meta"
diff --git a/setup.py b/setup.py
index c4d42d8..c4d6ed1 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ from setuptools.command import sdist as setuptools_sdist
from setuptools.command import build_ext as setuptools_build_ext
-CYTHON_DEPENDENCY = 'Cython(>=0.29.24,<0.30.0)'
+CYTHON_DEPENDENCY = 'Cython(>=0.30.0)'
CFLAGS = ['-O2']
LDFLAGS = []