diff --git a/.github/workflows/testing-and-deployment.yml b/.github/workflows/testing-and-deployment.yml index 05e65fb6..686c1bf4 100644 --- a/.github/workflows/testing-and-deployment.yml +++ b/.github/workflows/testing-and-deployment.yml @@ -154,7 +154,7 @@ jobs: - uses: actions/checkout@v3 - name: Build wheels - uses: pypa/cibuildwheel@v2.12.1 + uses: pypa/cibuildwheel@v2.12.3 with: python-version: 3.7 - 3.11 diff --git a/ansys/mapdl/reader/cython/_archive.pyx b/ansys/mapdl/reader/cython/_archive.pyx index 6e8fc6ce..d130d086 100644 --- a/ansys/mapdl/reader/cython/_archive.pyx +++ b/ansys/mapdl/reader/cython/_archive.pyx @@ -101,16 +101,16 @@ def py_write_nblock_float(filename, const int [::1] node_id, int max_node_id, def py_write_eblock(filename, - int [::1] elem_id, - int [::1] etype, - int [::1] mtype, - int [::1] rcon, - int [::1] elem_nnodes, - int64_t [::1] cells, - int64_t [::1] offset, - uint8_t [::1] celltypes, - int [::1] typenum, - int [::1] nodenum, + const int [::1] elem_id, + const int [::1] etype, + const int [::1] mtype, + const int [::1] rcon, + const int [::1] elem_nnodes, + const int64_t [::1] cells, + const int64_t [::1] offset, + const uint8_t [::1] celltypes, + const int [::1] typenum, + const int [::1] nodenum, mode='w'): cdef FILE* cfile = fopen(filename.encode(), mode.encode()) write_eblock(cfile, diff --git a/ansys/mapdl/reader/cython/_binary_reader.pyx b/ansys/mapdl/reader/cython/_binary_reader.pyx index 8687759a..d0857ae4 100644 --- a/ansys/mapdl/reader/cython/_binary_reader.pyx +++ b/ansys/mapdl/reader/cython/_binary_reader.pyx @@ -367,7 +367,7 @@ cdef np.ndarray wrap_array(void* c_ptr, int size, int type_flag, int prec_flag): ndarray = np.array(array_wrapper, copy=False) # Assign our object to the 'base' of the ndarray object - ndarray.base = array_wrapper + np.PyArray_SetBaseObject(ndarray, array_wrapper) # Increment the reference count, as the above assignment was done in # C, and Python does not know that there is this additional reference diff --git a/pyproject.toml b/pyproject.toml index 6a364e2a..f53967e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "setuptools.build_meta" requires = [ - "cython<3.0.0", + "cython==3.0.0b2", "oldest-supported-numpy", "setuptools>=45.0", "wheel>=0.37.0", diff --git a/requirements/requirements_docs.txt b/requirements/requirements_docs.txt index 203d9a90..d2fe8c07 100644 --- a/requirements/requirements_docs.txt +++ b/requirements/requirements_docs.txt @@ -1,8 +1,9 @@ -Sphinx<6 -ansys-sphinx-theme==0.9.7 +Sphinx<7 +ansys-sphinx-theme==0.9.8 +imageio==2.28.1 notfound==1.0.2 pypandoc==1.11 -pyvista==0.38.5 +pyvista==0.39.0 sphinx-copybutton==0.5.2 sphinx-gallery==0.13.0 sphinx-notfound-page==0.8.3