@@ -1,6 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2018, Mellanox Technologies. All rights reserved. See COPYING file
+#cython: language_level=3
+
from .base cimport PyverbsObject, PyverbsCM
from pyverbs cimport libibverbs as v
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019, Mellanox Technologies. All rights reserved.
+#cython: language_level=3
+
cdef class PyverbsObject(object):
cdef object __weakref__
cdef object logger
@@ -1,5 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019, Mellanox Technologies. All rights reserved.
+
+#cython: language_level=3
+
from pyverbs.base cimport PyverbsObject, PyverbsCM
cimport pyverbs.libibverbs as v
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2018, Mellanox Technologies. All rights reserved. See COPYING file
+#cython: language_level=3
+
from .base cimport PyverbsObject, PyverbsCM
cimport pyverbs.libibverbs as v
@@ -1,6 +1,9 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2018, Mellanox Technologies. All rights reserved.
+#cython: language_level=3
+
+
cdef extern from '<infiniband/verbs.h>':
cpdef enum ibv_transport_type:
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019, Mellanox Technologies. All rights reserved. See COPYING file
+#cython: language_level=3
+
from pyverbs.base cimport PyverbsCM
from . cimport libibverbs as v
@@ -1,5 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019, Mellanox Technologies. All rights reserved.
+
+#cython: language_level=3
+
from pyverbs.device cimport Context
cimport pyverbs.libibverbs as v
from .base cimport PyverbsCM
@@ -1,5 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019 Mellanox Technologies, Inc. All rights reserved.
+
+#cython: language_level=3
+
from pyverbs.base cimport PyverbsObject, PyverbsCM
cimport pyverbs.libibverbs as v
@@ -1,6 +1,8 @@
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2019 Mellanox Technologies, Inc. All rights reserved. See COPYING file
+#cython: language_level=3
+
from .base cimport PyverbsCM
from pyverbs cimport libibverbs as v
Since Cython 0.29, a language_level directive is required in pxd files. This currently appears as a FutureWarning e.g.: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! This patch updates pyverbs' pxd files with this directive. Signed-off-by: Noa Osherovich <noaos@mellanox.com> Reviewd-by: Maor Gottlieb <maorg@mellanox.com> --- pyverbs/addr.pxd | 2 ++ pyverbs/base.pxd | 2 ++ pyverbs/cq.pxd | 3 +++ pyverbs/device.pxd | 2 ++ pyverbs/libibverbs_enums.pxd | 3 +++ pyverbs/mr.pxd | 2 ++ pyverbs/pd.pxd | 3 +++ pyverbs/qp.pxd | 3 +++ pyverbs/wr.pxd | 2 ++ 9 files changed, 22 insertions(+)