Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Washington-University/gradunwarp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: nipy/gradunwarp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: nipy
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 6 commits
  • 4 files changed
  • 1 contributor

Commits on Oct 2, 2024

  1. Rename to nipy-gradunwarp

    effigies committed Oct 2, 2024
    Copy the full SHA
    2e100de View commit details
  2. Build with numpy 1.25/.26

    effigies committed Oct 2, 2024
    Copy the full SHA
    7ce60f8 View commit details

Commits on Oct 4, 2024

  1. Copy the full SHA
    5012049 View commit details
  2. Copy the full SHA
    7dbcbae View commit details
  3. Copy the full SHA
    6c30a93 View commit details
  4. CI: Add attesations

    effigies committed Oct 4, 2024
    Copy the full SHA
    3757b87 View commit details
Showing with 22 additions and 34 deletions.
  1. +1 −2 .github/workflows/test.yml
  2. +16 −27 .github/workflows/wheels.yml
  3. +2 −2 pyproject.toml
  4. +3 −3 setup.cfg
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -4,8 +4,7 @@ on:
push:
branches:
- master
tags:
- "*"
- nipy
pull_request:
branches:
- master
43 changes: 16 additions & 27 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -4,38 +4,18 @@ on:
push:
branches:
- master
tags:
- "*"
- nipy
pull_request:
branches:
- master
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Extract metadata to allow for conditioning builds on commit messages
job_metadata:
runs-on: ubuntu-latest
outputs:
commit_message: ${{ steps.get_commit_message.outputs.commit_message }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Print head git commit message
id: get_commit_message
run: |
if [[ -z "$COMMIT_MSG" ]]; then
COMMIT_MSG=$(git show -s --format=%s $REF)
fi
echo commit_message=$COMMIT_MSG | tee -a $GITHUB_OUTPUT
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
REF: ${{ github.event.pull_request.head.sha }}

build-sdist:
name: Build sdist
runs-on: ubuntu-latest
@@ -53,9 +33,8 @@ jobs:
build-wheel:
# Runs on tags and commits with "[build wheels]" in the message
name: Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }}
needs: [job_metadata, build-sdist]
needs: [build-sdist]
runs-on: ${{ matrix.buildplat[0] }}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') || contains(needs.job_metadata.outputs.commit_message, '[build wheels]')
strategy:
fail-fast: false
matrix:
@@ -136,7 +115,11 @@ jobs:
runs-on: ubuntu-latest
environment: "Package deployment"
needs: [pre-publish]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'release' && github.event.action == 'published'
permissions:
id-token: write
attestations: write

steps:
- uses: actions/download-artifact@v3
with:
@@ -145,6 +128,12 @@ jobs:
run: |
mv dist/*/*.{tar.gz,whl} dist
rmdir dist/*/
- name: Generate artifact attestations
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
with:
subject-path: "dist/nipy_gradunwarp-*"

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
attestations: true
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
requires = [
"setuptools",
# Numpy 1.25 allows back-compiling and supports 3.9
"numpy>=1.25; python_version >= '3.9'",
"numpy~=1.25; python_version >= '3.9' and python_version < '3.13'",
# Last version to support 3.6-3.8
"numpy==1.19; python_version > '3.0' and python_version < '3.9'",
# Last version to support 2.7
@@ -35,4 +35,4 @@ push = false

[tool.cibuildwheel]
# Do not bother building pypy wheels
skip = "pp*"
skip = "pp* cp313*"
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = gradunwarp
name = nipy-gradunwarp
version = file:version.txt
description = HCP version of Gradient Unwarping Package for Python/Numpy
author = Human Connectome Project
@@ -25,6 +25,6 @@ packages = find:
install_requires =
nibabel >= 3.2.1; python_version >= '3.0'
nibabel >= 2.0; python_version < '3.0'
numpy>=1.26.0b1; python_version > '3.11'
numpy; python_version <= '3.11'
numpy~=1.26.0; python_version > '3.8'
numpy; python_version <= '3.8'
scipy