mozarrt 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.
- mozarrt-0.1.0/.gitattributes +2 -0
- mozarrt-0.1.0/.github/workflows/publish.yml +72 -0
- mozarrt-0.1.0/.github/workflows/test.yml +47 -0
- mozarrt-0.1.0/.gitignore +8 -0
- mozarrt-0.1.0/PKG-INFO +12 -0
- mozarrt-0.1.0/notebooks/mobie_collection.csv +2 -0
- mozarrt-0.1.0/notebooks/playground.ipynb +586 -0
- mozarrt-0.1.0/pixi.lock +24734 -0
- mozarrt-0.1.0/pyproject.toml +74 -0
- mozarrt-0.1.0/src/mozarrt/__init__.py +3 -0
- mozarrt-0.1.0/src/mozarrt/cli.py +18 -0
- mozarrt-0.1.0/src/mozarrt/collect.py +220 -0
- mozarrt-0.1.0/src/mozarrt/folder.py +86 -0
- mozarrt-0.1.0/src/mozarrt/mobie_collection.py +30 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/.zattrs +66 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_0.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/.zattrs +66 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_1.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/.zattrs +66 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_2.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/.zattrs +66 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/2d/test_data_3.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/.zattrs +55 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_0.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/.zattrs +55 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_1.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/.zattrs +55 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_2.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/.zattrs +55 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/.zgroup +3 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/s0/.zarray +25 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/s0/.zattrs +1 -0
- mozarrt-0.1.0/tests/resources/3d/test_data_3.zarr/s0/0/0/0 +0 -0
- mozarrt-0.1.0/tests/test_cli.py +9 -0
- mozarrt-0.1.0/tests/test_folder.py +73 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'mozarrt-*'
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
name: Build wheel and source distribution
|
|
16
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
|
|
19
|
+
environment: release
|
|
20
|
+
permissions:
|
|
21
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout code
|
|
25
|
+
uses: actions/checkout@v6
|
|
26
|
+
with:
|
|
27
|
+
fetch-depth: 0
|
|
28
|
+
|
|
29
|
+
- name: Set up Pixi
|
|
30
|
+
uses: prefix-dev/setup-pixi@v0.9.3
|
|
31
|
+
with:
|
|
32
|
+
cache: true
|
|
33
|
+
environments: >-
|
|
34
|
+
py312
|
|
35
|
+
build
|
|
36
|
+
|
|
37
|
+
- name: Test
|
|
38
|
+
run: pixi run --environment py312 test
|
|
39
|
+
|
|
40
|
+
- name: Build package
|
|
41
|
+
run: pixi run --environment build build
|
|
42
|
+
|
|
43
|
+
- name: Upload artifacts
|
|
44
|
+
uses: actions/upload-artifact@v6
|
|
45
|
+
with:
|
|
46
|
+
name: python-artifacts
|
|
47
|
+
path: dist/*
|
|
48
|
+
if-no-files-found: error
|
|
49
|
+
|
|
50
|
+
publish:
|
|
51
|
+
name: Publish to PyPI
|
|
52
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
53
|
+
needs:
|
|
54
|
+
- build
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
|
|
57
|
+
permissions:
|
|
58
|
+
contents: write
|
|
59
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
60
|
+
|
|
61
|
+
steps:
|
|
62
|
+
- name: Download Python artifacts
|
|
63
|
+
uses: actions/download-artifact@v7
|
|
64
|
+
with:
|
|
65
|
+
name: python-artifacts
|
|
66
|
+
path: dist
|
|
67
|
+
- name: Add assets to release
|
|
68
|
+
uses: softprops/action-gh-release@v2
|
|
69
|
+
with:
|
|
70
|
+
files: dist/*
|
|
71
|
+
- name: Publish package distributions to PyPI
|
|
72
|
+
uses: pypa/gh-action-pypi-publish@v1.13.0
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: test-${{ github.head_ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
PYTHONUNBUFFERED: "1"
|
|
15
|
+
FORCE_COLOR: "1"
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
run:
|
|
19
|
+
name: ${{ matrix.pixi-environment }} - ${{ matrix.os }}
|
|
20
|
+
runs-on: ${{ matrix.os }}
|
|
21
|
+
permissions:
|
|
22
|
+
contents: read
|
|
23
|
+
strategy:
|
|
24
|
+
fail-fast: false
|
|
25
|
+
matrix:
|
|
26
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
27
|
+
pixi-environment:
|
|
28
|
+
- py312
|
|
29
|
+
- py313
|
|
30
|
+
- py314
|
|
31
|
+
steps:
|
|
32
|
+
- uses: actions/checkout@v6
|
|
33
|
+
|
|
34
|
+
- name: Set up Pixi
|
|
35
|
+
uses: prefix-dev/setup-pixi@v0.9.3
|
|
36
|
+
with:
|
|
37
|
+
cache: true
|
|
38
|
+
environments: ${{ matrix.pixi-environment }}
|
|
39
|
+
|
|
40
|
+
- name: Run tests
|
|
41
|
+
run: pixi run --environment ${{ matrix.pixi-environment }} cov-xml
|
|
42
|
+
|
|
43
|
+
- name: Upload coverage reports to Codecov
|
|
44
|
+
uses: codecov/codecov-action@v5
|
|
45
|
+
with:
|
|
46
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
47
|
+
slug: fmi-faim/mozarrt
|
mozarrt-0.1.0/.gitignore
ADDED
mozarrt-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mozarrt
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MoBIE OME-Zarr Tools
|
|
5
|
+
Author-email: Jan Eglinger <jan.eglinger@fmi.ch>
|
|
6
|
+
Requires-Python: >=3.12
|
|
7
|
+
Requires-Dist: cyclopts<5,>=4.5.0
|
|
8
|
+
Requires-Dist: loguru<0.8,>=0.7.3
|
|
9
|
+
Requires-Dist: mobiedantic<0.5,>=0.4.1
|
|
10
|
+
Requires-Dist: natsort<9,>=8.4.0
|
|
11
|
+
Requires-Dist: ngio<0.6,>=0.5.3
|
|
12
|
+
Requires-Dist: pandas<3,>=2.3.3
|