Skip to content

remove hdf5

remove hdf5 #52

Workflow file for this run

name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
#, ubuntu-latest]
python-version-minor: ["9"] #, "8", "10", "11", "12"]
#, "pypy3.9", "pypy3.10"]
numpy-version: ['2.0'] #, "1.23", '1.24', '1.25', '1.26']
exclude:
# - os: ubuntu-latest
# python-version: "3.8"
# - os: ubuntu-latest
# python-version: "pypy3.9"
# - os: ubuntu-latest
# python-version: "pypy3.10"
# - os: ubuntu-latest
# numpy-version: "1.24"
# python-version: "3.12"
- numpy-version: "2.0"
python-version-minor: '8'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.${{matrix.python-version-minor}}
- name: Install mingw-w64 on Windows
if: ${{ runner.os == 'Windows' }}
uses: msys2/setup-msys2@v2
with:
path-type: inherit
install: mingw-w64-x86_64-gcc-fortran
# mingw-w64-x86_64-hdf5
# - name: Install GFortran, GCC Linux
# if: contains(matrix.os, 'ubuntu')
# run: |
# # sudo add-apt-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install -y gcc gfortran libhdf5-serial-dev
# - name: find fort loc
# if: contains(matrix.os, 'windows')
# run: |
# pip install numpy==${{matrix.numpy-version}}
# # pip install .
# cd src/pyraingen/fortran_daily
# python -m numpy.f2py -m regionalised_dailyT -c regionalised_dailyT.for -I $PWD
# # cd ../../..
# tree
- name: finish build
run: |
cat .gitignore_extra >> .gitignore
pip install numpy==${{matrix.numpy-version}}
cd src/pyraingen/fortran_daily
python -m numpy.f2py -m regionalised_dailyT -c regionalised_dailyT.for -I $PWD
cd ../../..
ls
tree
pip install build
python -m build
- name: test install
run: |
pip install ./dist/pyraingen-0.2.3-cp3.${{matrix.python-version-minor}}-cp3.${{matrix.python-version-minor}}-win_amd64.whl --force-reinstall
python -c "from pyraingen.regionaliseddailysim import regionaliseddailysim"
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-x86_64-${{matrix.os}}-python-3.${{matrix.python-version-minor}}-numpy-${{matrix.numpy-version}}
path: dist/
- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{matrix.os}}
files: ./dist/pyraingen-0.2.3-cp3.${{matrix.python-version-minor}}-cp3.${{matrix.python-version-minor}}-win_amd64.whl
tag_name: ${{matrix.os}}
fail_on_unmatched_files: true