Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5161dfc
parallelize register/transform stack
orena1 May 29, 2021
24af747
also work for first
orena1 May 29, 2021
9a5f394
releasing GIL before c function calls
glichtner Aug 7, 2023
d2c1c7d
Fix code style issues with Black
lint-action Aug 7, 2023
921d974
updated instance check
glichtner Aug 7, 2023
e64b604
Merge branch 'gil-release' of https://github.com/glichtner/pystackreg…
glichtner Aug 7, 2023
4ffe0c4
fixed c error
glichtner Aug 7, 2023
357c4bc
updated tox commands
glichtner Aug 7, 2023
d7d7e7e
Merge branch 'master' into gil-release
glichtner Oct 20, 2024
eb79311
Merge PR #33: release the GIL around native registration and transfor…
glichtner Nov 20, 2026
4dc07aa
update usage of tqdm
orena1 Feb 17, 2021
5bd7d7d
test: add numerical regression baseline generated with v0.2.8
glichtner Nov 20, 2026
b550909
build: move project metadata to pyproject.toml (PEP 621)
glichtner Nov 20, 2026
39950a1
fix(native): harden the CPython binding and avoid redundant buffer co…
glichtner Nov 20, 2026
fb10395
fix(native): give float-to-int coordinate conversions Java semantics
glichtner Nov 20, 2026
bcb019b
Merge PR #17 (superseded): parallelize register/transform stack
glichtner Nov 20, 2026
6050f3a
feat: thread-based parallel stack processing, bounded memory use and …
glichtner Nov 20, 2026
1c50dba
test: add validation, regression, concurrency and input-handling tests
glichtner Nov 20, 2026
24d2fb2
license: distribute pystackreg under GPL-3.0-or-later
glichtner Nov 20, 2026
47c80ee
test: make the GIL-release test discriminating and add a large-image …
glichtner Nov 20, 2026
064abf2
ci: rebuild the GitHub Actions workflows and development tooling
glichtner Nov 20, 2026
3213e82
test: make the reference-count check independent of the Python version
glichtner Nov 20, 2026
f5be4b0
docs: rewrite the user documentation for 0.3.0
glichtner Nov 20, 2026
3856a08
refactor(native): remove the Python 2 and pre-2015 MSVC code paths
glichtner Nov 21, 2026
cfee976
fix(native): register images without a pyramid level with the scaled-…
glichtner Nov 21, 2026
61a7877
ci: upload to PyPI with trusted publishing
glichtner Nov 21, 2026
592f563
test: make the GIL-release test independent of the timer resolution
glichtner Nov 21, 2026
15f1302
ci: require bit-identity with 0.2.8 only for recorded image data
glichtner Nov 21, 2026
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
15 changes: 11 additions & 4 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
[bumpversion]
current_version = 0.2.8
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>\S+))?
current_version = 0.3.0.dev0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<dev>\d+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}.{release}{dev}
{major}.{minor}.{patch}
commit = True
tag = True
tag = False

[bumpversion:part:release]
optional_value = final
first_value = dev
values =
dev
final

[bumpversion:file:pystackreg/version.py]
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

184 changes: 184 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
name: CI

on:
push:
branches: [master, main]
pull_request:
workflow_dispatch:

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

permissions:
contents: read

jobs:
lint:
name: Lint, format and type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.13"
- name: Install tools
run: python -m pip install ruff mypy codespell numpy
- name: Ruff (lint)
run: ruff check .
- name: Ruff (format)
run: ruff format --check .
- name: mypy
run: mypy
- name: codespell
run: codespell

test:
name: Test py${{ matrix.python-version }} numpy${{ matrix.numpy }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
numpy: ["latest"]
include:
# oldest supported NumPy for the oldest supported Python
- os: ubuntu-latest
python-version: "3.10"
numpy: "1.22.4"
- os: windows-latest
python-version: "3.10"
numpy: "1.22.4"
# last NumPy 1.x release
- os: ubuntu-latest
python-version: "3.12"
numpy: "1.26.4"
- os: macos-latest
python-version: "3.12"
numpy: "1.26.4"
# Intel macOS
- os: macos-15-intel
python-version: "3.12"
numpy: "latest"
# free-threaded CPython
- os: ubuntu-latest
python-version: "3.14t"
numpy: "latest"
steps:
- uses: actions/checkout@v7

- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Build wheel
run: |
python -m pip install --upgrade pip build
python -m build --wheel --outdir dist

# The wheel is installed into the environment and the tests are run
# from an empty directory, so that the installed build is tested and
# not the source tree. conftest.py enforces this.
- name: Install wheel
shell: bash
run: python -m pip install dist/*.whl pytest tifffile

- name: Pin NumPy ${{ matrix.numpy }}
if: matrix.numpy != 'latest'
run: python -m pip install "numpy==${{ matrix.numpy }}"

# SciPy is only used by an optional cross-check of the interpolation;
# it is skipped where no binary wheel of SciPy is available.
- name: Install SciPy if a wheel exists
shell: bash
run: |
python -m pip install --only-binary ":all:" scipy || echo "SciPy not available"

- name: Run tests
shell: bash
env:
PYSTACKREG_TEST_INSTALLED: "1"
run: |
mkdir -p "$RUNNER_TEMP/run" && cd "$RUNNER_TEMP/run"
python -m pytest "$GITHUB_WORKSPACE/tests" -p no:cacheprovider \
--rootdir "$GITHUB_WORKSPACE" -c "$GITHUB_WORKSPACE/pyproject.toml"

exact:
name: Bit-exact comparison with 0.2.8 (Linux x86-64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install
run: python -m pip install . pytest tifffile
# Only the cases with the recorded pc12 stack: the synthetic test images
# are computed with numpy.exp, whose last bit depends on the CPU of the
# runner. The synthetic cases run with tolerances in the test jobs.
- name: Regression tests on recorded data, exact mode
env:
PYSTACKREG_EXACT_BASELINE: "1"
PYSTACKREG_TEST_INSTALLED: "1"
run: |
mkdir -p "$RUNNER_TEMP/run" && cd "$RUNNER_TEMP/run"
python -m pytest "$GITHUB_WORKSPACE/tests/test_regression.py" \
-k "stack_registration and not dtypes" -p no:cacheprovider \
--rootdir "$GITHUB_WORKSPACE" -c "$GITHUB_WORKSPACE/pyproject.toml"

sanitizers:
name: AddressSanitizer and UBSan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Build instrumented extension and run the tests
run: |
python -m pip install numpy setuptools pytest tifffile scipy tqdm
tools/sanitize.sh

sdist:
name: Source distribution and metadata
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.13"
- name: Build sdist and wheel
run: |
python -m pip install --upgrade pip build twine
python -m build
- name: Check metadata
run: python -m twine check --strict dist/*
- name: Check contents
run: python tools/check_dist.py dist
- name: Install from sdist and test
env:
PYSTACKREG_TEST_INSTALLED: "1"
run: |
python -m pip install dist/*.tar.gz pytest tifffile scipy
mkdir -p "$RUNNER_TEMP/run" && cd "$RUNNER_TEMP/run"
python -m pytest "$GITHUB_WORKSPACE/tests" -p no:cacheprovider \
--rootdir "$GITHUB_WORKSPACE" -c "$GITHUB_WORKSPACE/pyproject.toml"
- uses: actions/upload-artifact@v7
with:
name: sdist
path: dist/*.tar.gz

docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.13"
- name: Install
run: python -m pip install ".[docs]"
- name: Build (warnings are errors)
run: sphinx-build -W --keep-going -b html docs docs/_build/html
37 changes: 0 additions & 37 deletions .github/workflows/lint.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/run-tests.yml

This file was deleted.

Loading
Loading