mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-13 00:53:02 -04:00
dev-python/asyncpg: add patch for dev-python/cpython-3, unmask
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -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
|
||||
26
dev-python/asyncpg/files/cython-3.patch
Normal file
26
dev-python/asyncpg/files/cython-3.patch
Normal 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 = []
|
||||
Reference in New Issue
Block a user