Skip to content

Commit

Permalink
MNT: Support Cython 3.0 (#1440)
Browse files Browse the repository at this point in the history
* Fix linting errors

* MNT: Pin to older cython

* try suggested fix for cython file

* fix location of parentheses

* Set the cpower argument

* remove equals float

* pin newer cython

* remove cython from ci env

* try previous version of libnetcdf
  • Loading branch information
mgrover1 authored Jul 20, 2023
1 parent 9eeb0f1 commit 7667557
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion continuous_integration/environment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ dependencies:
- pytest-cov
- pytest-mpl
- coveralls
- libnetcdf<=4.9.1
- flake8
- Cython
- fsspec
- glpk
- cftime
Expand Down
2 changes: 1 addition & 1 deletion pyart/map/grid_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def map_to_grid(
toa=17000.0,
copy_field_data=True,
algorithm="kd_tree",
leafsize=10.0,
leafsize=10,
roi_func="dist_beam",
constant_roi=None,
z_factor=0.05,
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,7 @@ def check_rsl_path(rsl_lib_path, rsl_include_path):
"version_scheme": "post-release",
"local_scheme": "dirty-tag",
},
ext_modules=cythonize(extensions, compiler_directives={"language_level": "3"}),
ext_modules=cythonize(
extensions, compiler_directives={"language_level": "3", "cpow": True}
),
)

0 comments on commit 7667557

Please sign in to comment.