Skip to content

Commit

Permalink
Update for numpy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wpreimes committed Nov 13, 2024
1 parent d5b7c66 commit e02f3b9
Show file tree
Hide file tree
Showing 5 changed files with 4,359 additions and 4,356 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# and OS versions as possible (especially windows to create .whl packages,
# see step "Create wheel and dist package")
python-version: ['3.9', '3.10', '3.11', '3.12']
os: ["ubuntu-latest", "windows-latest"]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
name: py${{ matrix.python-version }} @ ${{ matrix.os }}
runs-on: ${{ matrix.os }}

Expand Down
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ from the `python package repository Pypi <https://pypi.python.org/>`__.
Note that ``pytesmo>=0.17`` will only work with ``numpy>=2.0`` and ``python>=3.9``.
If you still require a version compatible with numpy v1, install ``pytesmo<0.17``.

Compiled C extensions are available Windows and Linux python 3.9 to 3.12.
Compiled C extensions are available as wheels for Windows and Linux for
python 3.9 to 3.12.

For other operating systems and/or python versions, it might be necessary
to compile the C extensions yourself and install pytesmo from source.
to compile the binaries yourself. This should
happen automatically, if you have a C compiler installed (e.g.
`GCC <https://gcc.gnu.org/>`_ ).

.. code::
Expand All @@ -70,7 +73,7 @@ to compile the C extensions yourself and install pytesmo from source.
mamba create -n pytesmo python=3.12 # or any supported python version
conda activate pytesmo
pip install -e .[testing] # install source package
python setup.py build_ext --inplace --cythonize # compile C extensions
python setup.py build_ext --inplace --cythonize # optional compile cython C extensions
pytest # Run tests to check if everything works
Supported Products
Expand Down
Loading

0 comments on commit e02f3b9

Please sign in to comment.