tsio 1.0.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,2 @@
1
+ export VIRTUAL_ENV=."venv"
2
+ layout python
@@ -0,0 +1,48 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
+ branches: ["main"]
8
+
9
+ jobs:
10
+ test:
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [macos-latest, ubuntu-latest, windows-latest]
15
+ python-version: ["3.11", "3.12", "3.13"]
16
+ timeout-minutes: 10
17
+ runs-on: ${{ matrix.os }}
18
+
19
+ steps:
20
+ - name: Checkout source code
21
+ uses: actions/checkout@v7
22
+
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v7
25
+ with:
26
+ cache: pip
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ python -m pip install -e .[dev]
33
+
34
+ - name: Lint with flake8
35
+ run: |
36
+ # stop the build if there are Python syntax errors or undefined names
37
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
38
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
39
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40
+
41
+ - name: Test with pytest
42
+ run: |
43
+ pytest --color=yes --cov=tsio --cov-branch --cov-report=xml --cov-report=term-missing
44
+
45
+ - name: Upload coverage reports to Codecov
46
+ uses: codecov/codecov-action@v7
47
+ with:
48
+ token: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,67 @@
1
+ name: Publish to Python Package Indices
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*.*.*"
7
+
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ envelope:
12
+ name: Upload release to Envelope.dev
13
+ runs-on: ubuntu-latest
14
+ environment: release
15
+
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v7
19
+ with:
20
+ fetch-depth: 0
21
+
22
+ - name: Set up Python
23
+ uses: actions/setup-python@vy
24
+ with:
25
+ cache: pip
26
+ python-version: 3.11
27
+
28
+ - name: Install build tools
29
+ run: python -m pip install --upgrade build
30
+
31
+ - name: Build wheel
32
+ run: python -m build
33
+
34
+ - name: Publish wheel
35
+ uses: pypa/gh-action-pypi-publish@release/v1
36
+ with:
37
+ attestations: false
38
+ password: ${{ secrets.ENVELOPE_TOKEN }}
39
+ user: pypi
40
+ repository-url: https://app.envelope.dev/legacy/
41
+
42
+ pypi:
43
+ name: Upload release to the Python Package Index (PyPI)
44
+ runs-on: ubuntu-latest
45
+ environment: release
46
+ permissions:
47
+ id-token: write
48
+ steps:
49
+ - name: Checkout source code
50
+ uses: actions/checkout@v7
51
+ with:
52
+ fetch-depth: 0
53
+
54
+ - name: Set up Python
55
+ uses: actions/setup-python@v7
56
+ with:
57
+ cache: pip
58
+ python-version: 3.11
59
+
60
+ - name: Install build tools
61
+ run: python3 -m pip install --upgrade build
62
+
63
+ - name: Build wheel
64
+ run: python3 -m build
65
+
66
+ - name: Publish wheel
67
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,36 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*.*.*" # Run workflow on version tags, e.g. v1.0.0.
7
+
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ release:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v7
16
+
17
+ - name: Read changelog
18
+ id: changelog
19
+ run: |
20
+ awk '/^## / {s++} s == 1 {print}' CHANGELOG.md > release_notes.md
21
+ export RELEASE_TITLE=$(head -1 release_notes.md|sed 's/## //')
22
+ awk 'NR > 2 { print }' release_notes.md > release_body.md
23
+
24
+ echo "title=${RELEASE_TITLE}" >> $GITHUB_OUTPUT
25
+ echo "path=release_body.md" >> $GITHUB_OUTPUT
26
+ echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
27
+
28
+ - name: Create release
29
+ id: create_release
30
+ uses: softprops/action-gh-release@v2
31
+ with:
32
+ tag_name: ${{ github.ref }}
33
+ name: ${{ steps.changelog.outputs.title }}
34
+ body_path: ${{ steps.changelog.outputs.path }}
35
+ token: ${{ secrets.GITHUB_TOKEN }}
36
+ draft: false
tsio-1.0.0/.gitignore ADDED
@@ -0,0 +1,53 @@
1
+ .DS_Store
2
+ .idea
3
+ *.log
4
+ *.err
5
+ tmp/
6
+ .tmp/
7
+ .ipynb_checkpoints/
8
+
9
+ *.py[cod]
10
+ *.egg
11
+ *.egg-info/
12
+ *.manifest
13
+ *.spec
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ sdist/
21
+ wheels/
22
+
23
+ coverage.xml
24
+ htmlcov
25
+ .coverage
26
+ .coverage.*
27
+ .pytest_cache
28
+ .cache
29
+ .tox
30
+ .nox
31
+ .flake8
32
+ pyrightconfig.json
33
+ basedpyrightconfig.json
34
+
35
+ .direnv
36
+ .envrc
37
+ .env
38
+ .envr
39
+ env/
40
+ .venv
41
+ venv/
42
+
43
+ *.png
44
+ *.tif
45
+ *.jpg
46
+ *.emd
47
+ *.dcm
48
+ *.dm3
49
+ *.dm4
50
+ !requirements.txt
51
+ !tests/assets/*.png
52
+ !tests/assets/*.tif
53
+ .projectile-cache.eld
@@ -0,0 +1,7 @@
1
+ # Change Log
2
+
3
+ ## 1.0.0 (2026-09-04)
4
+
5
+ ### Features and enhancements
6
+
7
+ - Initial release