From e4eade3d848dd7828f67fb5155e6e9c3ca4d55d9 Mon Sep 17 00:00:00 2001 From: Ben Mather Date: Tue, 21 Nov 2023 14:12:33 +1100 Subject: [PATCH] build PYPI wheels using meson --- .github/workflows/CI.yml | 10 ++++++++-- pyproject.toml | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a798eba..038f43e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -243,6 +243,8 @@ jobs: pip install numpy pip install scipy pip install Cython + pip install meson + pip install build - name: Provide gfortran run: | @@ -250,7 +252,7 @@ jobs: - name: Package for Pypi run: | - python setup.py sdist bdist_wheel + python -m build - name: Upload to Pypi run: | @@ -286,6 +288,8 @@ jobs: pip install numpy pip install scipy pip install Cython + pip install meson + pip install build # - name: Provide gfortran # run: | @@ -293,7 +297,7 @@ jobs: - name: Package for Pypi run: | - python setup.py sdist bdist_wheel + python -m build - name: Upload to Pypi run: | @@ -320,6 +324,8 @@ jobs: pip install numpy pip install scipy pip install Cython + pip install meson + pip install build - name: Build manylinux Python wheels uses: RalfG/python-wheels-manylinux-build@v0.4.2-manylinux2014_x86_64 with: diff --git a/pyproject.toml b/pyproject.toml index 8c0c337..6d4cd38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ requires = [ "pip", "meson-python", "setuptools>=61.0", + "build", ] [project]