tau-fibrils-yolo 0.0.4__tar.gz → 0.0.6__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.
- tau_fibrils_yolo-0.0.6/.github/workflows/release.yml +126 -0
- tau_fibrils_yolo-0.0.4/.github/workflows/release.yml → tau_fibrils_yolo-0.0.6/.github/workflows/release_multiplatform.yml +48 -6
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/.gitignore +2 -0
- tau_fibrils_yolo-0.0.6/LICENSE +661 -0
- tau_fibrils_yolo-0.0.6/PKG-INFO +814 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/README.md +11 -5
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/pyproject.toml +2 -1
- tau_fibrils_yolo-0.0.6/scripts/00_annotate.py +28 -0
- tau_fibrils_yolo-0.0.6/scripts/01_shapes_to_labels.py +33 -0
- tau_fibrils_yolo-0.0.6/scripts/02_split_train_valid.py +30 -0
- tau_fibrils_yolo-0.0.4/scripts/train.py → tau_fibrils_yolo-0.0.6/scripts/03_train_yolo.py +6 -4
- tau_fibrils_yolo-0.0.6/scripts/instructions.md +77 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/_version.py +2 -2
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/_widget.py +84 -52
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/cli.py +1 -1
- tau_fibrils_yolo-0.0.6/src/tau_fibrils_yolo/measure.py +91 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/postprocess.py +5 -4
- tau_fibrils_yolo-0.0.6/src/tau_fibrils_yolo.egg-info/PKG-INFO +814 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/SOURCES.txt +7 -2
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/requires.txt +1 -0
- tau_fibrils_yolo-0.0.4/LICENSE +0 -28
- tau_fibrils_yolo-0.0.4/PKG-INFO +0 -173
- tau_fibrils_yolo-0.0.4/src/tau_fibrils_yolo/crossover_distance.py +0 -49
- tau_fibrils_yolo-0.0.4/src/tau_fibrils_yolo.egg-info/PKG-INFO +0 -173
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/MANIFEST.in +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/assets/icon.png +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/assets/screenshot.png +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/setup.cfg +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/__init__.py +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/__main__.py +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/napari.yaml +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo/predict.py +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/dependency_links.txt +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/entry_points.txt +0 -0
- {tau_fibrils_yolo-0.0.4 → tau_fibrils_yolo-0.0.6}/src/tau_fibrils_yolo.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# name: Publish, Build and Release
|
|
2
|
+
|
|
3
|
+
# on:
|
|
4
|
+
# push:
|
|
5
|
+
# branches:
|
|
6
|
+
# - main
|
|
7
|
+
# tags:
|
|
8
|
+
# - "v*"
|
|
9
|
+
# pull_request:
|
|
10
|
+
# branches:
|
|
11
|
+
# - main
|
|
12
|
+
# workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
# permissions:
|
|
15
|
+
# contents: write
|
|
16
|
+
|
|
17
|
+
# jobs:
|
|
18
|
+
# deploy:
|
|
19
|
+
# runs-on: ubuntu-latest
|
|
20
|
+
# if: contains(github.ref, 'tags')
|
|
21
|
+
# steps:
|
|
22
|
+
# - uses: actions/checkout@v4
|
|
23
|
+
# - name: Set up Python
|
|
24
|
+
# uses: actions/setup-python@v4
|
|
25
|
+
# with:
|
|
26
|
+
# python-version: "3.9"
|
|
27
|
+
# - name: Install dependencies
|
|
28
|
+
# run: |
|
|
29
|
+
# python -m pip install --upgrade pip
|
|
30
|
+
# pip install -U setuptools setuptools_scm wheel twine build
|
|
31
|
+
# - name: Build and publish
|
|
32
|
+
# env:
|
|
33
|
+
# TWINE_USERNAME: __token__
|
|
34
|
+
# TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
|
|
35
|
+
# run: |
|
|
36
|
+
# git tag
|
|
37
|
+
# python -m build .
|
|
38
|
+
# twine upload dist/*
|
|
39
|
+
|
|
40
|
+
# build:
|
|
41
|
+
# needs: deploy
|
|
42
|
+
# runs-on: ${{ matrix.os }}
|
|
43
|
+
# strategy:
|
|
44
|
+
# matrix:
|
|
45
|
+
# os: [windows-latest]
|
|
46
|
+
|
|
47
|
+
# env:
|
|
48
|
+
# PYAPP_PROJECT_NAME: 'tau_fibrils_yolo'
|
|
49
|
+
|
|
50
|
+
# steps:
|
|
51
|
+
# - name: Checkout code
|
|
52
|
+
# uses: actions/checkout@v2
|
|
53
|
+
|
|
54
|
+
# - name: Install Rust
|
|
55
|
+
# uses: actions-rs/toolchain@v1
|
|
56
|
+
# with:
|
|
57
|
+
# toolchain: stable
|
|
58
|
+
# override: true
|
|
59
|
+
|
|
60
|
+
# - name: Extract PyPi package version
|
|
61
|
+
# shell: bash
|
|
62
|
+
# run: |
|
|
63
|
+
# VERSION=${{ github.ref_name }}
|
|
64
|
+
# VERSION=${VERSION#v}
|
|
65
|
+
# echo "VERSION=$VERSION" >> $GITHUB_ENV
|
|
66
|
+
|
|
67
|
+
# - name: Download PyApp
|
|
68
|
+
# shell: bash
|
|
69
|
+
# run: |
|
|
70
|
+
# curl https://github.com/ofek/pyapp/releases/latest/download/source.tar.gz -Lo pyapp-source.tar.gz
|
|
71
|
+
# tar -xzf pyapp-source.tar.gz
|
|
72
|
+
# mv pyapp-v* pyapp-latest
|
|
73
|
+
|
|
74
|
+
# - name: Build executable for Windows
|
|
75
|
+
# env:
|
|
76
|
+
# PYAPP_PROJECT_VERSION: ${{ env.VERSION }}
|
|
77
|
+
# PYAPP_PYTHON_VERSION: '3.9'
|
|
78
|
+
# run: cargo build --release --manifest-path pyapp-latest/Cargo.toml
|
|
79
|
+
|
|
80
|
+
# - name: Archive Windows executable
|
|
81
|
+
# shell: bash
|
|
82
|
+
# working-directory: pyapp-latest/target/release
|
|
83
|
+
# run: |
|
|
84
|
+
# EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}.exe
|
|
85
|
+
# mv pyapp.exe $EXECUTABLE_NAME
|
|
86
|
+
# tar -czvf ../../../executable-windows.tar.gz $EXECUTABLE_NAME
|
|
87
|
+
|
|
88
|
+
# - name: Upload artifact
|
|
89
|
+
# uses: actions/upload-artifact@v2
|
|
90
|
+
# with:
|
|
91
|
+
# name: executable-${{ runner.os }}
|
|
92
|
+
# path: executable-*.tar.gz
|
|
93
|
+
|
|
94
|
+
# release:
|
|
95
|
+
# needs: build
|
|
96
|
+
# runs-on: ubuntu-latest
|
|
97
|
+
# steps:
|
|
98
|
+
# - name: Checkout code
|
|
99
|
+
# uses: actions/checkout@v2
|
|
100
|
+
|
|
101
|
+
# - name: Download Windows artifact
|
|
102
|
+
# uses: actions/download-artifact@v2
|
|
103
|
+
# with:
|
|
104
|
+
# name: executable-Windows
|
|
105
|
+
# path: .
|
|
106
|
+
|
|
107
|
+
# - name: Create Release
|
|
108
|
+
# id: create_release
|
|
109
|
+
# uses: actions/create-release@v1
|
|
110
|
+
# env:
|
|
111
|
+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
112
|
+
# with:
|
|
113
|
+
# tag_name: ${{ github.ref_name }}
|
|
114
|
+
# release_name: Release ${{ github.ref_name }}
|
|
115
|
+
# draft: false
|
|
116
|
+
# prerelease: false
|
|
117
|
+
|
|
118
|
+
# - name: Upload Windows executable to release
|
|
119
|
+
# uses: actions/upload-release-asset@v1
|
|
120
|
+
# env:
|
|
121
|
+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
122
|
+
# with:
|
|
123
|
+
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
124
|
+
# asset_path: ./executable-windows.tar.gz
|
|
125
|
+
# asset_name: executable-windows.tar.gz
|
|
126
|
+
# asset_content_type: application/gzip
|
|
@@ -42,7 +42,7 @@ jobs:
|
|
|
42
42
|
runs-on: ${{ matrix.os }}
|
|
43
43
|
strategy:
|
|
44
44
|
matrix:
|
|
45
|
-
os: [windows-latest]
|
|
45
|
+
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
46
46
|
|
|
47
47
|
env:
|
|
48
48
|
PYAPP_PROJECT_NAME: 'tau_fibrils_yolo'
|
|
@@ -71,19 +71,29 @@ jobs:
|
|
|
71
71
|
tar -xzf pyapp-source.tar.gz
|
|
72
72
|
mv pyapp-v* pyapp-latest
|
|
73
73
|
|
|
74
|
-
- name: Build executable
|
|
74
|
+
- name: Build executable
|
|
75
75
|
env:
|
|
76
76
|
PYAPP_PROJECT_VERSION: ${{ env.VERSION }}
|
|
77
77
|
PYAPP_PYTHON_VERSION: '3.9'
|
|
78
78
|
run: cargo build --release --manifest-path pyapp-latest/Cargo.toml
|
|
79
79
|
|
|
80
|
-
- name: Archive
|
|
80
|
+
- name: Archive executable
|
|
81
81
|
shell: bash
|
|
82
82
|
working-directory: pyapp-latest/target/release
|
|
83
83
|
run: |
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
if [ "${{ matrix.os }}" == "windows-latest" ]; then
|
|
85
|
+
EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}.exe
|
|
86
|
+
mv pyapp.exe $EXECUTABLE_NAME
|
|
87
|
+
tar -czvf ../../../executable-windows.tar.gz $EXECUTABLE_NAME
|
|
88
|
+
elif [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
|
|
89
|
+
EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}
|
|
90
|
+
mv pyapp $EXECUTABLE_NAME
|
|
91
|
+
tar -czvf ../../../executable-linux.tar.gz $EXECUTABLE_NAME
|
|
92
|
+
elif [ "${{ matrix.os }}" == "macos-latest" ]; then
|
|
93
|
+
EXECUTABLE_NAME=${{ env.PYAPP_PROJECT_NAME }}_${{ runner.os }}_${{ env.VERSION }}
|
|
94
|
+
mv pyapp $EXECUTABLE_NAME
|
|
95
|
+
tar -czvf ../../../executable-macos.tar.gz $EXECUTABLE_NAME
|
|
96
|
+
fi
|
|
87
97
|
|
|
88
98
|
- name: Upload artifact
|
|
89
99
|
uses: actions/upload-artifact@v2
|
|
@@ -104,6 +114,18 @@ jobs:
|
|
|
104
114
|
name: executable-Windows
|
|
105
115
|
path: .
|
|
106
116
|
|
|
117
|
+
- name: Download Linux artifact
|
|
118
|
+
uses: actions/download-artifact@v2
|
|
119
|
+
with:
|
|
120
|
+
name: executable-Linux
|
|
121
|
+
path: .
|
|
122
|
+
|
|
123
|
+
- name: Download MacOS artifact
|
|
124
|
+
uses: actions/download-artifact@v2
|
|
125
|
+
with:
|
|
126
|
+
name: executable-macOS
|
|
127
|
+
path: .
|
|
128
|
+
|
|
107
129
|
- name: Create Release
|
|
108
130
|
id: create_release
|
|
109
131
|
uses: actions/create-release@v1
|
|
@@ -124,3 +146,23 @@ jobs:
|
|
|
124
146
|
asset_path: ./executable-windows.tar.gz
|
|
125
147
|
asset_name: executable-windows.tar.gz
|
|
126
148
|
asset_content_type: application/gzip
|
|
149
|
+
|
|
150
|
+
- name: Upload Linux executable to release
|
|
151
|
+
uses: actions/upload-release-asset@v1
|
|
152
|
+
env:
|
|
153
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
154
|
+
with:
|
|
155
|
+
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
156
|
+
asset_path: ./executable-linux.tar.gz
|
|
157
|
+
asset_name: executable-linux.tar.gz
|
|
158
|
+
asset_content_type: application/gzip
|
|
159
|
+
|
|
160
|
+
- name: Upload MacOS executable to release
|
|
161
|
+
uses: actions/upload-release-asset@v1
|
|
162
|
+
env:
|
|
163
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
164
|
+
with:
|
|
165
|
+
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
166
|
+
asset_path: ./executable-macos.tar.gz
|
|
167
|
+
asset_name: executable-macos.tar.gz
|
|
168
|
+
asset_content_type: application/gzip
|