trackin 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.
- trackin-0.1.0/.github/workflows/test.yml +63 -0
- trackin-0.1.0/.gitignore +50 -0
- trackin-0.1.0/LICENSE +675 -0
- trackin-0.1.0/MANIFEST.in +5 -0
- trackin-0.1.0/PKG-INFO +811 -0
- trackin-0.1.0/README.md +96 -0
- trackin-0.1.0/pyproject.toml +119 -0
- trackin-0.1.0/setup.cfg +4 -0
- trackin-0.1.0/src/trackin/__init__.py +1 -0
- trackin-0.1.0/src/trackin/_sample_data.py +22 -0
- trackin-0.1.0/src/trackin/_tests/__init__.py +0 -0
- trackin-0.1.0/src/trackin/_tests/test_sample_data.py +7 -0
- trackin-0.1.0/src/trackin/_tests/test_utils.py +169 -0
- trackin-0.1.0/src/trackin/_tests/test_widget.py +377 -0
- trackin-0.1.0/src/trackin/_tests/test_writer.py +7 -0
- trackin-0.1.0/src/trackin/_version.py +24 -0
- trackin-0.1.0/src/trackin/_widget.py +1291 -0
- trackin-0.1.0/src/trackin/_writer.py +65 -0
- trackin-0.1.0/src/trackin/napari.yaml +12 -0
- trackin-0.1.0/src/trackin/shared_state.py +26 -0
- trackin-0.1.0/src/trackin/tracking.py +223 -0
- trackin-0.1.0/src/trackin/utils.py +226 -0
- trackin-0.1.0/src/trackin.egg-info/PKG-INFO +811 -0
- trackin-0.1.0/src/trackin.egg-info/SOURCES.txt +29 -0
- trackin-0.1.0/src/trackin.egg-info/dependency_links.txt +1 -0
- trackin-0.1.0/src/trackin.egg-info/entry_points.txt +2 -0
- trackin-0.1.0/src/trackin.egg-info/requires.txt +12 -0
- trackin-0.1.0/src/trackin.egg-info/scm_file_list.json +24 -0
- trackin-0.1.0/src/trackin.egg-info/scm_version.json +8 -0
- trackin-0.1.0/src/trackin.egg-info/top_level.txt +1 -0
- trackin-0.1.0/tox.ini +33 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
name: tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- fix
|
|
8
|
+
tags:
|
|
9
|
+
- "v*"
|
|
10
|
+
pull_request:
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
name: ${{ matrix.platform }} py${{ matrix.python-version }}
|
|
16
|
+
runs-on: ${{ matrix.platform }}
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
21
|
+
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
|
|
26
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
27
|
+
uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: ${{ matrix.python-version }}
|
|
30
|
+
|
|
31
|
+
# napari/Qt need GL/X11 libraries and a virtual display on Linux runners
|
|
32
|
+
# (macOS/Windows runners already provide a usable display). Installed
|
|
33
|
+
# explicitly rather than via a third-party action, since the package
|
|
34
|
+
# name libgl1-mesa-glx no longer exists on Ubuntu 24.04 -- libgl1 is
|
|
35
|
+
# its replacement.
|
|
36
|
+
- name: Install Linux GUI/OpenGL libraries
|
|
37
|
+
if: runner.os == 'Linux'
|
|
38
|
+
run: |
|
|
39
|
+
sudo apt-get update
|
|
40
|
+
sudo apt-get install -y libgl1 libegl1 libxkbcommon-x11-0 \
|
|
41
|
+
libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 \
|
|
42
|
+
libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 \
|
|
43
|
+
libxcb-cursor0 x11-utils xvfb
|
|
44
|
+
|
|
45
|
+
- name: Install tox
|
|
46
|
+
run: python -m pip install --upgrade pip tox tox-gh-actions
|
|
47
|
+
|
|
48
|
+
- name: Run tests (Linux, under a virtual display)
|
|
49
|
+
if: runner.os == 'Linux'
|
|
50
|
+
run: xvfb-run --auto-servernum python -m tox
|
|
51
|
+
env:
|
|
52
|
+
PLATFORM: ${{ matrix.platform }}
|
|
53
|
+
|
|
54
|
+
- name: Run tests (macOS/Windows)
|
|
55
|
+
if: runner.os != 'Linux'
|
|
56
|
+
run: python -m tox
|
|
57
|
+
env:
|
|
58
|
+
PLATFORM: ${{ matrix.platform }}
|
|
59
|
+
|
|
60
|
+
- name: Upload coverage to Codecov
|
|
61
|
+
uses: codecov/codecov-action@v4
|
|
62
|
+
with:
|
|
63
|
+
files: ./coverage.xml
|
trackin-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Byte-compiled / optimized files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# Distribution / packaging
|
|
7
|
+
build/
|
|
8
|
+
dist/
|
|
9
|
+
*.egg-info/
|
|
10
|
+
*.egg
|
|
11
|
+
.eggs/
|
|
12
|
+
MANIFEST
|
|
13
|
+
/PKG-INFO
|
|
14
|
+
/SOURCES.txt
|
|
15
|
+
/dependency_links.txt
|
|
16
|
+
/entry_points.txt
|
|
17
|
+
/requires.txt
|
|
18
|
+
/top_level.txt
|
|
19
|
+
|
|
20
|
+
# setuptools_scm generated version file
|
|
21
|
+
src/trackin/_version.py
|
|
22
|
+
|
|
23
|
+
# Testing / coverage
|
|
24
|
+
.tox/
|
|
25
|
+
.pytest_cache/
|
|
26
|
+
.coverage
|
|
27
|
+
.coverage.*
|
|
28
|
+
coverage.xml
|
|
29
|
+
htmlcov/
|
|
30
|
+
|
|
31
|
+
# Type checkers / linters
|
|
32
|
+
.mypy_cache/
|
|
33
|
+
.ruff_cache/
|
|
34
|
+
|
|
35
|
+
# Virtual environments
|
|
36
|
+
.venv/
|
|
37
|
+
venv/
|
|
38
|
+
env/
|
|
39
|
+
|
|
40
|
+
# Editors / IDEs
|
|
41
|
+
.vscode/
|
|
42
|
+
.idea/
|
|
43
|
+
*.swp
|
|
44
|
+
|
|
45
|
+
# OS
|
|
46
|
+
.DS_Store
|
|
47
|
+
Thumbs.db
|
|
48
|
+
|
|
49
|
+
# napari
|
|
50
|
+
napari-hub-preview.md
|