Skip to content

Commit b804454

Browse files
trissimclaude
andcommitted
Reserve arraypipe: placeholder package and trusted-publishing workflow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 parents  commit b804454

5 files changed

Lines changed: 92 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
12+
jobs:
13+
build-and-publish:
14+
name: Build and publish to PyPI
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: pypi
18+
url: https://pypi.org/p/arraypipe
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.12"
26+
- name: Verify release tag and main ancestry
27+
run: |
28+
declared_version=$(sed -n 's/^__version__ = "\(.*\)"/\1/p' src/arraypipe/__init__.py)
29+
test "$GITHUB_REF_NAME" = "v$declared_version"
30+
git fetch origin main
31+
git merge-base --is-ancestor "$GITHUB_SHA" origin/main
32+
- name: Build package
33+
run: |
34+
python -m pip install --upgrade pip build twine
35+
python -m build
36+
twine check dist/*
37+
- name: Publish to PyPI
38+
uses: pypa/gh-action-pypi-publish@release/v1
39+
- name: Create GitHub Release
40+
uses: softprops/action-gh-release@v2
41+
with:
42+
files: dist/*
43+
generate_release_notes: true
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Tristan Simas
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# arraypipe
2+
3+
Pipelines for arrays: a domain-agnostic dataflow compiler and runtime over arrays with declared axes.
4+
5+
The kernel is being extracted from [OpenHCS](https://github.com/OpenHCSDev/openhcs), which becomes its microscopy instantiation. This release reserves the name; the code lands here when the split is done.

‎pyproject.toml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "arraypipe"
7+
dynamic = ["version"]
8+
description = "Pipelines for arrays: a domain-agnostic dataflow compiler and runtime over arrays with declared axes"
9+
authors = [{name = "Tristan Simas", email = "tristan.simas@mail.mcgill.ca"}]
10+
license = {text = "MIT"}
11+
readme = "README.md"
12+
requires-python = ">=3.10"
13+
14+
[project.urls]
15+
Homepage = "https://github.com/OpenHCSDev/arraypipe"
16+
17+
[tool.hatch.version]
18+
path = "src/arraypipe/__init__.py"

‎src/arraypipe/__init__.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""Pipelines for arrays."""
2+
3+
__version__ = "0.0.1"

0 commit comments

Comments
 (0)