anndataoom 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,126 @@
1
+ # Build and publish anndataoom wheels.
2
+ #
3
+ # On tag push (v*.*.*): builds wheels for multiple platforms and publishes
4
+ # them to PyPI via trusted publishing (OIDC — no API token needed).
5
+ #
6
+ # Requires: in PyPI, register 'anndataoom' under a trusted publisher pointing to
7
+ # this repo + this workflow file. See https://docs.pypi.org/trusted-publishers/
8
+ #
9
+ # Currently built: Linux x86_64 · macOS x86_64 · macOS arm64
10
+ # Not yet: Linux aarch64 (ring ARM cross-compile fails), Windows (HDF5 CMake).
11
+
12
+ name: Release
13
+
14
+ on:
15
+ push:
16
+ tags: ['v*']
17
+ workflow_dispatch:
18
+ pull_request:
19
+ paths:
20
+ - "src/**"
21
+ - "python/**"
22
+ - "Cargo.toml"
23
+ - "pyproject.toml"
24
+ - ".github/workflows/release.yml"
25
+
26
+ permissions:
27
+ contents: read
28
+
29
+ jobs:
30
+ # ──────────────────────────────────────────────────────────────────────
31
+ # Linux x86_64 (manylinux)
32
+ # aarch64 temporarily disabled — `ring` crate fails to cross-compile
33
+ # (ARM asm needs explicit __ARM_ARCH in containerised builds).
34
+ # ──────────────────────────────────────────────────────────────────────
35
+ linux:
36
+ runs-on: ubuntu-latest
37
+ strategy:
38
+ fail-fast: false
39
+ matrix:
40
+ target: [x86_64]
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ - uses: actions/setup-python@v5
44
+ with:
45
+ python-version: "3.x"
46
+ - name: Build wheels
47
+ uses: PyO3/maturin-action@v1
48
+ with:
49
+ target: ${{ matrix.target }}
50
+ args: --release --out dist --find-interpreter
51
+ manylinux: auto
52
+ - uses: actions/upload-artifact@v4
53
+ with:
54
+ name: wheels-linux-${{ matrix.target }}
55
+ path: dist
56
+
57
+ # ──────────────────────────────────────────────────────────────────────
58
+ # macOS x86_64 + arm64
59
+ # ──────────────────────────────────────────────────────────────────────
60
+ macos:
61
+ runs-on: macos-latest
62
+ strategy:
63
+ fail-fast: false
64
+ matrix:
65
+ target: [x86_64, aarch64]
66
+ steps:
67
+ - uses: actions/checkout@v4
68
+ - uses: actions/setup-python@v5
69
+ with:
70
+ python-version: "3.x"
71
+ - name: Build wheels
72
+ uses: PyO3/maturin-action@v1
73
+ with:
74
+ target: ${{ matrix.target }}
75
+ args: --release --out dist --find-interpreter
76
+ - uses: actions/upload-artifact@v4
77
+ with:
78
+ name: wheels-macos-${{ matrix.target }}
79
+ path: dist
80
+
81
+ # ──────────────────────────────────────────────────────────────────────
82
+ # Windows temporarily disabled — hdf5-metno-src CMake build fails.
83
+ # TODO: pre-install vcpkg HDF5 and use HDF5_DIR env var.
84
+ # ──────────────────────────────────────────────────────────────────────
85
+
86
+ # ──────────────────────────────────────────────────────────────────────
87
+ # Source distribution
88
+ # ──────────────────────────────────────────────────────────────────────
89
+ sdist:
90
+ runs-on: ubuntu-latest
91
+ steps:
92
+ - uses: actions/checkout@v4
93
+ - name: Build sdist
94
+ uses: PyO3/maturin-action@v1
95
+ with:
96
+ command: sdist
97
+ args: --out dist
98
+ - uses: actions/upload-artifact@v4
99
+ with:
100
+ name: wheels-sdist
101
+ path: dist
102
+
103
+ # ──────────────────────────────────────────────────────────────────────
104
+ # Publish to PyPI (only on tag pushes)
105
+ # ──────────────────────────────────────────────────────────────────────
106
+ release:
107
+ name: Publish to PyPI
108
+ runs-on: ubuntu-latest
109
+ if: startsWith(github.ref, 'refs/tags/v')
110
+ needs: [linux, macos, sdist]
111
+ environment:
112
+ name: pypi
113
+ url: https://pypi.org/p/anndataoom
114
+ permissions:
115
+ id-token: write # For trusted publishing (OIDC)
116
+ steps:
117
+ - uses: actions/download-artifact@v4
118
+ with:
119
+ pattern: wheels-*
120
+ merge-multiple: true
121
+ path: dist
122
+ - name: Publish to PyPI
123
+ uses: pypa/gh-action-pypi-publish@release/v1
124
+ with:
125
+ packages-dir: dist
126
+ # trusted publisher — no token needed
@@ -0,0 +1,45 @@
1
+ # Rust
2
+ target/
3
+ **/*.rs.bk
4
+ Cargo.lock
5
+
6
+ # Python
7
+ __pycache__/
8
+ *.py[cod]
9
+ *$py.class
10
+ *.so
11
+ *.pyd
12
+ *.dylib
13
+ .pytest_cache/
14
+ .coverage
15
+ htmlcov/
16
+ .tox/
17
+ *.egg-info/
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ wheels/
22
+ *.egg
23
+
24
+ # Virtual environments
25
+ .venv/
26
+ venv/
27
+ env/
28
+
29
+ # IDE
30
+ .idea/
31
+ .vscode/
32
+ *.swp
33
+ *.swo
34
+
35
+ # macOS
36
+ .DS_Store
37
+
38
+ # Maturin
39
+ .maturin/
40
+
41
+ # Test artifacts
42
+ /tmp/
43
+ test_*.h5ad
44
+ data/
45
+ tutorials/data/