Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating publishing workflow #84

Merged
merged 3 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,18 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15]
os: ["ubuntu-22.04", "macos-12", "macos-14"]

steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_SKIP: "pp* *_i686 *musllinux*"
CIBW_BEFORE_ALL_LINUX: yum install -y fftw-devel
CIBW_BEFORE_ALL_MACOS: brew install fftw
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

- uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.os }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -45,23 +39,27 @@ jobs:
- name: Build sdist
run: |
python -m pip install -U pip
python -m pip install -U build
python -m pip install -U build twine
python -m build --sdist .
- name: Check the sdist
run: python -m twine check dist/*.tar.gz
- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz

upload_pypi:
environment:
name: pypi
url: https://pypi.org/p/jax-finufft
permissions:
id-token: write
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
merge-multiple: true
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}
19 changes: 16 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ build-backend = "scikit_build_core.build"

[project]
name = "jax-finufft"
description = "Unofficial JAX bindings for finufft"
description = "JAX bindings for the Flatiron Institute Nonuniform Fast Fourier Transform library"
readme = "README.md"
authors = [{ name = "Dan Foreman-Mackey", email = "[email protected]" }]
requires-python = ">=3.8"
authors = [
{ name = "Dan Foreman-Mackey", email = "[email protected]" },
{ name = "Lehman Garrison", email = "[email protected]" },
]
requires-python = ">=3.9"
license = { file = "LICENSE" }
urls = { Homepage = "https://github.com/dfm/jax-finufft" }
dependencies = ["jax", "numpy", "pydantic>=2"]
Expand All @@ -31,6 +34,16 @@ build-dir = "build/{wheel_tag}"
[tool.setuptools_scm]
version_file = "src/jax_finufft/jax_finufft_version.py"

[tool.cibuildwheel]
skip = "pp* *-musllinux_* *-manylinux_i686"
build-verbosity = 1

[tool.cibuildwheel.linux]
before-all = "yum install -y fftw-devel"

[tool.cibuildwheel.macos]
before-all = "brew install fftw"

[tool.black]
target-version = ["py39"]
line-length = 88
Expand Down