muvid 0.0.2__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.
- muvid-0.0.2/.claude/skills/mtv/SKILL.md +209 -0
- muvid-0.0.2/.gitattributes +1 -0
- muvid-0.0.2/.github/workflows/ci.yml +209 -0
- muvid-0.0.2/.gitignore +117 -0
- muvid-0.0.2/LICENSE +21 -0
- muvid-0.0.2/PKG-INFO +165 -0
- muvid-0.0.2/README.md +136 -0
- muvid-0.0.2/misc/docs/Forced Alignment System.pdf +0 -0
- muvid-0.0.2/misc/docs/STARS- A Unified Framework for Singing Transcription, Alignment, and Refined Style Annotation.pdf +8330 -9
- muvid-0.0.2/misc/docs/alignment_references.md +102 -0
- muvid-0.0.2/misc/docs/deepwiki_whisperx_3.3_forced_alignment_system.md +1 -0
- muvid-0.0.2/misc/docs/design.md +384 -0
- muvid-0.0.2/muvid/__init__.py +73 -0
- muvid-0.0.2/muvid/__main__.py +160 -0
- muvid-0.0.2/muvid/align.py +415 -0
- muvid-0.0.2/muvid/characters.py +205 -0
- muvid-0.0.2/muvid/compose.py +104 -0
- muvid-0.0.2/muvid/environments.py +73 -0
- muvid-0.0.2/muvid/facade.py +211 -0
- muvid-0.0.2/muvid/lyrics.py +265 -0
- muvid-0.0.2/muvid/project.py +300 -0
- muvid-0.0.2/muvid/render/__init__.py +202 -0
- muvid-0.0.2/muvid/render/_common.py +92 -0
- muvid-0.0.2/muvid/render/animation.py +97 -0
- muvid-0.0.2/muvid/render/image_to_video.py +51 -0
- muvid-0.0.2/muvid/render/lipsync.py +48 -0
- muvid-0.0.2/muvid/render/still.py +46 -0
- muvid-0.0.2/muvid/render/text_to_video.py +25 -0
- muvid-0.0.2/muvid/schema.py +202 -0
- muvid-0.0.2/muvid/script.py +241 -0
- muvid-0.0.2/muvid/ui/__init__.py +4 -0
- muvid-0.0.2/muvid/ui/app.py +267 -0
- muvid-0.0.2/muvid/ui/static/index.html +266 -0
- muvid-0.0.2/pyproject.toml +168 -0
- muvid-0.0.2/tests/__init__.py +0 -0
- muvid-0.0.2/tests/test_align.py +114 -0
- muvid-0.0.2/tests/test_lyrics.py +78 -0
- muvid-0.0.2/tests/test_project.py +90 -0
- muvid-0.0.2/tests/test_schema.py +80 -0
- muvid-0.0.2/tests/test_script.py +60 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mtv
|
|
3
|
+
description: Use when the user wants to make a music video from a song. Triggers on "make a music video", "turn this song into a video", "/mtv", or any work inside an mtv project folder (look for project.json with mtv schema_version). Walks the user through getting lyrics, aligning to audio, casting characters, picking environments, writing the script, and rendering shots.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# mtv — guide a user from song to music video
|
|
7
|
+
|
|
8
|
+
You are operating an `mtv` project: a folder containing a `project.json`,
|
|
9
|
+
a song under `song/`, and progressively-filled-in artifacts under
|
|
10
|
+
`lyrics/`, `characters/`, `environments/`, `script/`, `shots/`,
|
|
11
|
+
`output/`. The Python package `mtv` exposes every step as a function;
|
|
12
|
+
the CLI `mtv <verb>` is a thin dispatcher.
|
|
13
|
+
|
|
14
|
+
Your job is to **drive that pipeline interactively** — pick the right
|
|
15
|
+
next step based on the project's current state, run the command, show
|
|
16
|
+
the user what came out, and ask just enough questions to keep moving.
|
|
17
|
+
|
|
18
|
+
## The pipeline (eight stages, each idempotent)
|
|
19
|
+
|
|
20
|
+
1. **init** — `mtv init <root> --song <audio>`. Fresh project, song
|
|
21
|
+
probed.
|
|
22
|
+
2. **transcribe** — `mtv transcribe <root>`. ElevenLabs Scribe writes
|
|
23
|
+
`lyrics/transcript.json` and a draft `lyrics/lyrics.md`.
|
|
24
|
+
3. **edit lyrics** — *user task*. The user opens `lyrics/lyrics.md`,
|
|
25
|
+
fixes mishears (singing transcripts always have some), and adds
|
|
26
|
+
real `[section]` headers like `[verse 1]`, `[chorus]`, `[bridge]`.
|
|
27
|
+
4. **align** — `mtv align <root>`. Builds `lyrics/alignment.annot` (a
|
|
28
|
+
`lacing` SqliteStore) with three tiers: sections / lines / words.
|
|
29
|
+
Also syncs the parsed sections into `project.json`.
|
|
30
|
+
5. **cast characters** — for each character:
|
|
31
|
+
- `mtv character <root> <name> --description "..."`
|
|
32
|
+
- `mtv character-images <root> <name> path1 path2 ...` (drop user
|
|
33
|
+
photos) or `mtv character-generate <root> <name> --n 6` (use fal
|
|
34
|
+
to generate variants).
|
|
35
|
+
- `mtv character-curate <root> <name> --k 8` (lookbook picks the
|
|
36
|
+
best diverse subset).
|
|
37
|
+
6. **establish environments** — `mtv environment <root> <name>
|
|
38
|
+
--description "..." --time-of-day "..."` then
|
|
39
|
+
`mtv environment-render <root> <name>`.
|
|
40
|
+
7. **write the script** — author `script/script.md` (you can draft this
|
|
41
|
+
from lyrics + characters + environments; the user edits). Then
|
|
42
|
+
`mtv script-apply <root>` to upsert sections+shots into the SSOT.
|
|
43
|
+
8. **render** — `mtv render <root>` (all shots) or `mtv render <root>
|
|
44
|
+
--shot s02`. Per-shot strategies: `lipsync`, `image_to_video`,
|
|
45
|
+
`text_to_video`, `animation`, `still`.
|
|
46
|
+
9. **compose** — `mtv compose <root>`. Concatenates shots, overlays
|
|
47
|
+
the original song.
|
|
48
|
+
|
|
49
|
+
## Always start by reading state
|
|
50
|
+
|
|
51
|
+
Before doing anything, run `mtv status <root>` to see where the user
|
|
52
|
+
is. The output is a JSON dict; pick the next stage where a flag is
|
|
53
|
+
False or a count is zero. **Never** re-run a stage that's already
|
|
54
|
+
done unless the user asks — every stage is idempotent but they cost
|
|
55
|
+
API calls (Scribe, fal).
|
|
56
|
+
|
|
57
|
+
## Lyric editing — the part that needs you most
|
|
58
|
+
|
|
59
|
+
Step 3 (editing `lyrics/lyrics.md`) is the highest-leverage human
|
|
60
|
+
input. The format:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
[intro]
|
|
64
|
+
(instrumental)
|
|
65
|
+
|
|
66
|
+
[verse 1]
|
|
67
|
+
I came down to the river // 12.5
|
|
68
|
+
to wash my soul // 16.2
|
|
69
|
+
|
|
70
|
+
[chorus]
|
|
71
|
+
hold my hand
|
|
72
|
+
when the night comes calling
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- `[label]` headers tag sections. Use what fits the song
|
|
76
|
+
(intro/verse/chorus/bridge/outro/breakdown/etc.).
|
|
77
|
+
- `(parenthesized)` lines are non-vocal placeholders.
|
|
78
|
+
- `// 12.5` after a line is an optional manual start anchor in
|
|
79
|
+
seconds. Useful for sections where Scribe got the timing wrong;
|
|
80
|
+
not required.
|
|
81
|
+
- The order of lines must match the song.
|
|
82
|
+
|
|
83
|
+
After editing, run `mtv align` and read the resulting alignment
|
|
84
|
+
quickly: lines whose `start_s` look obviously wrong (out of order,
|
|
85
|
+
or in the middle of an instrumental break) are usually mishears
|
|
86
|
+
that need a fix. Re-edit, re-align.
|
|
87
|
+
|
|
88
|
+
> **Background**: the trade-offs around different alignment
|
|
89
|
+
> approaches (Scribe + greedy match vs. WhisperX CTC vs. singing-grade
|
|
90
|
+
> systems like STARS) are summarized in
|
|
91
|
+
> `misc/docs/alignment_references.md`. v0 deliberately uses the
|
|
92
|
+
> cheapest path because the user is the source of truth for the
|
|
93
|
+
> lyric text anyway.
|
|
94
|
+
|
|
95
|
+
## Choosing render strategies
|
|
96
|
+
|
|
97
|
+
For each shot, pick:
|
|
98
|
+
|
|
99
|
+
- `lipsync` — character is singing on screen. Needs a curated
|
|
100
|
+
character image. Calls `falaw.animate_face` (image+audio →
|
|
101
|
+
talking-head). Best for verses/choruses with the singer in frame.
|
|
102
|
+
- `image_to_video` — cinematic shot. Uses the environment image as
|
|
103
|
+
the i2v seed (or generates a fresh storyboard still). Great for
|
|
104
|
+
intro/outro establishing shots and instrumental passages.
|
|
105
|
+
- `text_to_video` — pure prompt → video, no anchor image. Use
|
|
106
|
+
sparingly (no character/location consistency).
|
|
107
|
+
- `animation` — hand off to the `an` package for stylized 2D cutout
|
|
108
|
+
animation. Best for lyric-video passages or surreal sequences.
|
|
109
|
+
- `still` — single image held for the duration. Cheapest. Good for
|
|
110
|
+
title cards, transitions.
|
|
111
|
+
|
|
112
|
+
When proposing a script, default to a sensible mix:
|
|
113
|
+
- 1 establishing `image_to_video` per major section
|
|
114
|
+
- `lipsync` for verses/chorus when a character is featured
|
|
115
|
+
- `still` or `animation` for short bridges and outros
|
|
116
|
+
|
|
117
|
+
## When you draft the script for the user
|
|
118
|
+
|
|
119
|
+
Read the project: `mtv status`, then read `lyrics/lyrics.md`,
|
|
120
|
+
character cards (`characters/<name>/card.json`), environment cards
|
|
121
|
+
(`environments/<name>/card.json`). Write `script/script.md` in this
|
|
122
|
+
shape:
|
|
123
|
+
|
|
124
|
+
```markdown
|
|
125
|
+
# <project title> — script
|
|
126
|
+
|
|
127
|
+
## [intro] 0.00 → 12.50
|
|
128
|
+
|
|
129
|
+
### s01 | 0.00-12.50 | image_to_video
|
|
130
|
+
**env**: park_bench **camera**: slow push-in
|
|
131
|
+
A wide of the empty park bench at golden hour. Leaves drifting.
|
|
132
|
+
|
|
133
|
+
## [verse 1] 12.50 → 35.00
|
|
134
|
+
|
|
135
|
+
### s02 | 12.50-22.00 | lipsync
|
|
136
|
+
**env**: park_bench **chars**: maya
|
|
137
|
+
Medium close on Maya. She begins to sing, looking off-camera.
|
|
138
|
+
|
|
139
|
+
### s03 | 22.00-35.00 | image_to_video
|
|
140
|
+
**env**: park_bench **chars**: maya
|
|
141
|
+
Push in to a tight close-up. She closes her eyes on the last word.
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Rules:
|
|
145
|
+
- Shot ids are `s01`, `s02`, ... in timeline order.
|
|
146
|
+
- Each shot's `[start-end]` MUST fit inside the section that contains
|
|
147
|
+
it. Shots within a section MUST cover its span without gaps or
|
|
148
|
+
overlap (or there will be silent / black gaps in the final video).
|
|
149
|
+
- Never propose a `lipsync` shot that doesn't reference a character
|
|
150
|
+
with at least one curated image — check before suggesting it.
|
|
151
|
+
|
|
152
|
+
After writing the markdown, **show the user the diff** (or just the
|
|
153
|
+
content) and ask "edit anything before I apply this?" before running
|
|
154
|
+
`mtv script-apply`.
|
|
155
|
+
|
|
156
|
+
## Render walk
|
|
157
|
+
|
|
158
|
+
When the user says "render it", default to:
|
|
159
|
+
1. Confirm with `mtv status` that all stages 1–7 are done.
|
|
160
|
+
2. Render shot-by-shot (`mtv render --shot s01`, then `s02`, ...) so
|
|
161
|
+
if one fails the others aren't lost. Show the user each output as
|
|
162
|
+
it lands.
|
|
163
|
+
3. After all shots succeed: `mtv compose`.
|
|
164
|
+
4. Print the final mp4 path and recommend they open it.
|
|
165
|
+
|
|
166
|
+
If a shot's render strategy fails (fal API error, no character
|
|
167
|
+
image), explain the failure and offer the smallest fix (different
|
|
168
|
+
strategy, generate the missing image, etc.) — don't just retry.
|
|
169
|
+
|
|
170
|
+
## Things to never do
|
|
171
|
+
|
|
172
|
+
- Never re-run `mtv transcribe` after the user has edited
|
|
173
|
+
`lyrics/lyrics.md` — it would clobber the transcript that the
|
|
174
|
+
alignment depends on. (The lyrics.md only gets clobbered if it
|
|
175
|
+
doesn't already exist, but transcript.json gets overwritten.)
|
|
176
|
+
- Never auto-edit `lyrics/lyrics.md`. The user is the source of
|
|
177
|
+
truth for what the song actually says.
|
|
178
|
+
- Never call `mtv render` with `--force` unless the user explicitly
|
|
179
|
+
asks; renders cost real money on fal.
|
|
180
|
+
- Never compose before all shots have rendered outputs.
|
|
181
|
+
|
|
182
|
+
## Useful inspection commands
|
|
183
|
+
|
|
184
|
+
- `mtv status <root>` — overview JSON.
|
|
185
|
+
- `cat <root>/project.json | jq` — the SSOT.
|
|
186
|
+
- `cat <root>/lyrics/lyrics.md` — the user's lyrics.
|
|
187
|
+
- `ls <root>/shots/` — see which shots have been rendered (each one
|
|
188
|
+
is a folder with `output.mp4` if done).
|
|
189
|
+
- `cat <root>/.mtv/decisions.jsonl` — append-only log of every
|
|
190
|
+
pipeline action.
|
|
191
|
+
|
|
192
|
+
## When the user starts from scratch
|
|
193
|
+
|
|
194
|
+
If the user just says "make a music video from `~/Downloads/song.mp3`"
|
|
195
|
+
and there's no project yet:
|
|
196
|
+
|
|
197
|
+
1. Pick a sensible project root (ask if unsure). Default to
|
|
198
|
+
`~/mtv/<song-stem>`.
|
|
199
|
+
2. `mtv init <root> --song <path>` — show the resulting folder.
|
|
200
|
+
3. `mtv transcribe <root>` — show the draft `lyrics.md`.
|
|
201
|
+
4. Pause. Tell the user: "Open `<root>/lyrics/lyrics.md`, fix any
|
|
202
|
+
mishears, and add real section tags. Tell me when it's done."
|
|
203
|
+
5. When they confirm, `mtv align <root>` → show them how many
|
|
204
|
+
sections/lines/words got aligned.
|
|
205
|
+
6. Walk them through casting (one character at a time), then
|
|
206
|
+
environments, then drafting the script, then rendering.
|
|
207
|
+
|
|
208
|
+
Move at the user's pace; offer the next step but never run more
|
|
209
|
+
than one stage of the pipeline without checking in.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.ipynb linguist-documentation
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
name: Continuous Integration (uv)
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
|
|
4
|
+
# Note: Environment variables (PROJECT_NAME and vars from [tool.wads.ci.env])
|
|
5
|
+
# are set by the read-ci-config action in the setup job and made available
|
|
6
|
+
# to all subsequent jobs via GITHUB_ENV
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
# First job: Read configuration from pyproject.toml
|
|
10
|
+
setup:
|
|
11
|
+
name: Read Configuration
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
outputs:
|
|
14
|
+
project-name: ${{ steps.config.outputs.project-name }}
|
|
15
|
+
python-versions: ${{ steps.config.outputs.python-versions }}
|
|
16
|
+
pytest-args: ${{ steps.config.outputs.pytest-args }}
|
|
17
|
+
coverage-enabled: ${{ steps.config.outputs.coverage-enabled }}
|
|
18
|
+
exclude-paths: ${{ steps.config.outputs.exclude-paths }}
|
|
19
|
+
test-on-windows: ${{ steps.config.outputs.test-on-windows }}
|
|
20
|
+
build-sdist: ${{ steps.config.outputs.build-sdist }}
|
|
21
|
+
build-wheel: ${{ steps.config.outputs.build-wheel }}
|
|
22
|
+
metrics-enabled: ${{ steps.config.outputs.metrics-enabled }}
|
|
23
|
+
metrics-config-path: ${{ steps.config.outputs.metrics-config-path }}
|
|
24
|
+
metrics-storage-branch: ${{ steps.config.outputs.metrics-storage-branch }}
|
|
25
|
+
metrics-python-version: ${{ steps.config.outputs.metrics-python-version }}
|
|
26
|
+
metrics-force-run: ${{ steps.config.outputs.metrics-force-run }}
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- name: Set up uv
|
|
32
|
+
uses: astral-sh/setup-uv@v5
|
|
33
|
+
|
|
34
|
+
- name: Set up Python
|
|
35
|
+
run: uv python install 3.11
|
|
36
|
+
|
|
37
|
+
- name: Read CI Config
|
|
38
|
+
id: config
|
|
39
|
+
uses: i2mint/wads/actions/read-ci-config@master
|
|
40
|
+
with:
|
|
41
|
+
pyproject-path: .
|
|
42
|
+
|
|
43
|
+
# Second job: Validation using the config
|
|
44
|
+
validation:
|
|
45
|
+
name: Validation
|
|
46
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
47
|
+
needs: setup
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
strategy:
|
|
50
|
+
matrix:
|
|
51
|
+
python-version: ${{ fromJson(needs.setup.outputs.python-versions) }}
|
|
52
|
+
|
|
53
|
+
steps:
|
|
54
|
+
- uses: actions/checkout@v4
|
|
55
|
+
|
|
56
|
+
- name: Set up uv
|
|
57
|
+
uses: astral-sh/setup-uv@v5
|
|
58
|
+
with:
|
|
59
|
+
enable-cache: true
|
|
60
|
+
|
|
61
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
62
|
+
uses: i2mint/wads/actions/setup-python-uv@master
|
|
63
|
+
with:
|
|
64
|
+
python-version: ${{ matrix.python-version }}
|
|
65
|
+
|
|
66
|
+
- name: Install System Dependencies
|
|
67
|
+
uses: i2mint/wads/actions/install-system-deps@master
|
|
68
|
+
with:
|
|
69
|
+
pyproject-path: .
|
|
70
|
+
|
|
71
|
+
- name: Install Dependencies
|
|
72
|
+
uses: i2mint/wads/actions/install-deps-uv@master
|
|
73
|
+
|
|
74
|
+
- name: Format Source Code
|
|
75
|
+
run: uvx ruff format .
|
|
76
|
+
|
|
77
|
+
- name: Lint Validation
|
|
78
|
+
run: uvx ruff check --output-format=github ${{ needs.setup.outputs.project-name }}
|
|
79
|
+
|
|
80
|
+
- name: Run Tests
|
|
81
|
+
uses: i2mint/wads/actions/run-tests-uv@master
|
|
82
|
+
with:
|
|
83
|
+
root-dir: ${{ needs.setup.outputs.project-name }}
|
|
84
|
+
pytest-args: ${{ needs.setup.outputs.pytest-args }}
|
|
85
|
+
exclude-paths: ${{ needs.setup.outputs.exclude-paths }}
|
|
86
|
+
coverage: ${{ needs.setup.outputs.coverage-enabled }}
|
|
87
|
+
|
|
88
|
+
- name: Track Code Metrics
|
|
89
|
+
if: needs.setup.outputs.metrics-enabled == 'true'
|
|
90
|
+
uses: i2mint/umpyre/actions/track-metrics@master
|
|
91
|
+
continue-on-error: true
|
|
92
|
+
with:
|
|
93
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
94
|
+
config-path: ${{ needs.setup.outputs.metrics-config-path }}
|
|
95
|
+
storage-branch: ${{ needs.setup.outputs.metrics-storage-branch }}
|
|
96
|
+
python-version: ${{ needs.setup.outputs.metrics-python-version }}
|
|
97
|
+
force-run: ${{ needs.setup.outputs.metrics-force-run }}
|
|
98
|
+
|
|
99
|
+
# Optional Windows testing (if enabled in config)
|
|
100
|
+
windows-validation:
|
|
101
|
+
name: Windows Tests
|
|
102
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]') && needs.setup.outputs.test-on-windows == 'true'"
|
|
103
|
+
needs: setup
|
|
104
|
+
runs-on: windows-latest
|
|
105
|
+
continue-on-error: true
|
|
106
|
+
|
|
107
|
+
steps:
|
|
108
|
+
- uses: actions/checkout@v4
|
|
109
|
+
|
|
110
|
+
- name: Set up uv
|
|
111
|
+
uses: astral-sh/setup-uv@v5
|
|
112
|
+
with:
|
|
113
|
+
enable-cache: true
|
|
114
|
+
|
|
115
|
+
- name: Set up Python
|
|
116
|
+
uses: i2mint/wads/actions/setup-python-uv@master
|
|
117
|
+
with:
|
|
118
|
+
python-version: ${{ fromJson(needs.setup.outputs.python-versions)[0] }}
|
|
119
|
+
|
|
120
|
+
- name: Install System Dependencies
|
|
121
|
+
uses: i2mint/wads/actions/install-system-deps@master
|
|
122
|
+
with:
|
|
123
|
+
pyproject-path: .
|
|
124
|
+
|
|
125
|
+
- name: Install Dependencies
|
|
126
|
+
uses: i2mint/wads/actions/install-deps-uv@master
|
|
127
|
+
|
|
128
|
+
- name: Run Tests
|
|
129
|
+
uses: i2mint/wads/actions/run-tests-uv@master
|
|
130
|
+
with:
|
|
131
|
+
root-dir: ${{ needs.setup.outputs.project-name }}
|
|
132
|
+
pytest-args: ${{ needs.setup.outputs.pytest-args }}
|
|
133
|
+
exclude-paths: ${{ needs.setup.outputs.exclude-paths }}
|
|
134
|
+
|
|
135
|
+
# Publishing job
|
|
136
|
+
publish:
|
|
137
|
+
name: Publish
|
|
138
|
+
permissions:
|
|
139
|
+
contents: write
|
|
140
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]') && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')"
|
|
141
|
+
needs: [setup, validation]
|
|
142
|
+
runs-on: ubuntu-latest
|
|
143
|
+
|
|
144
|
+
steps:
|
|
145
|
+
- uses: actions/checkout@v4
|
|
146
|
+
with:
|
|
147
|
+
fetch-depth: 0
|
|
148
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
149
|
+
|
|
150
|
+
- name: Set up uv
|
|
151
|
+
uses: astral-sh/setup-uv@v5
|
|
152
|
+
|
|
153
|
+
- name: Set up Python
|
|
154
|
+
uses: i2mint/wads/actions/setup-python-uv@master
|
|
155
|
+
with:
|
|
156
|
+
python-version: ${{ fromJson(needs.setup.outputs.python-versions)[0] }}
|
|
157
|
+
create-venv: "false"
|
|
158
|
+
|
|
159
|
+
- name: Format Source Code
|
|
160
|
+
run: uvx ruff format .
|
|
161
|
+
|
|
162
|
+
- name: Update Version Number
|
|
163
|
+
id: version
|
|
164
|
+
uses: i2mint/isee/actions/bump-version-number@master
|
|
165
|
+
|
|
166
|
+
- name: Build Distribution
|
|
167
|
+
uses: i2mint/wads/actions/build-dist-uv@master
|
|
168
|
+
with:
|
|
169
|
+
sdist: ${{ needs.setup.outputs.build-sdist }}
|
|
170
|
+
wheel: ${{ needs.setup.outputs.build-wheel }}
|
|
171
|
+
|
|
172
|
+
- name: Publish to PyPI
|
|
173
|
+
uses: i2mint/wads/actions/pypi-publish-uv@master
|
|
174
|
+
with:
|
|
175
|
+
pypi-token: ${{ secrets.PYPI_PASSWORD }}
|
|
176
|
+
|
|
177
|
+
- name: Force SSH for git remote
|
|
178
|
+
run: git remote set-url origin git@github.com:${{ github.repository }}.git
|
|
179
|
+
|
|
180
|
+
- name: Commit Changes
|
|
181
|
+
uses: i2mint/wads/actions/git-commit@master
|
|
182
|
+
with:
|
|
183
|
+
commit-message: "**CI** Formatted code + Updated version to ${{ env.VERSION }} [skip ci]"
|
|
184
|
+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
185
|
+
push: true
|
|
186
|
+
|
|
187
|
+
- name: Tag Repository
|
|
188
|
+
uses: i2mint/wads/actions/git-tag@master
|
|
189
|
+
with:
|
|
190
|
+
tag: ${{ env.VERSION }}
|
|
191
|
+
message: "Release version ${{ env.VERSION }}"
|
|
192
|
+
push: true
|
|
193
|
+
|
|
194
|
+
# Optional GitHub Pages
|
|
195
|
+
github-pages:
|
|
196
|
+
name: Publish GitHub Pages
|
|
197
|
+
permissions:
|
|
198
|
+
contents: write
|
|
199
|
+
pages: write
|
|
200
|
+
id-token: write
|
|
201
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)"
|
|
202
|
+
needs: publish
|
|
203
|
+
runs-on: ubuntu-latest
|
|
204
|
+
|
|
205
|
+
steps:
|
|
206
|
+
- uses: i2mint/epythet/actions/publish-github-pages@master
|
|
207
|
+
with:
|
|
208
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
209
|
+
ignore: "tests/,scrap/,examples/"
|
muvid-0.0.2/.gitignore
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
.DS_Store
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# TLS certificates
|
|
12
|
+
## Ignore all PEM files anywhere
|
|
13
|
+
*.pem
|
|
14
|
+
## Also ignore any certs directory
|
|
15
|
+
certs/
|
|
16
|
+
|
|
17
|
+
# Distribution / packaging
|
|
18
|
+
.Python
|
|
19
|
+
build/
|
|
20
|
+
develop-eggs/
|
|
21
|
+
dist/
|
|
22
|
+
downloads/
|
|
23
|
+
eggs/
|
|
24
|
+
.eggs/
|
|
25
|
+
lib/
|
|
26
|
+
lib64/
|
|
27
|
+
parts/
|
|
28
|
+
sdist/
|
|
29
|
+
var/
|
|
30
|
+
wheels/
|
|
31
|
+
*.egg-info/
|
|
32
|
+
.installed.cfg
|
|
33
|
+
*.egg
|
|
34
|
+
MANIFEST
|
|
35
|
+
_build
|
|
36
|
+
|
|
37
|
+
# PyInstaller
|
|
38
|
+
# Usually these files are written by a python script from a template
|
|
39
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
40
|
+
*.manifest
|
|
41
|
+
*.spec
|
|
42
|
+
|
|
43
|
+
# Installer logs
|
|
44
|
+
pip-log.txt
|
|
45
|
+
pip-delete-this-directory.txt
|
|
46
|
+
|
|
47
|
+
# Unit test / coverage reports
|
|
48
|
+
htmlcov/
|
|
49
|
+
.tox/
|
|
50
|
+
.coverage
|
|
51
|
+
.coverage.*
|
|
52
|
+
.cache
|
|
53
|
+
nosetests.xml
|
|
54
|
+
coverage.xml
|
|
55
|
+
*.cover
|
|
56
|
+
.hypothesis/
|
|
57
|
+
.pytest_cache/
|
|
58
|
+
|
|
59
|
+
# Translations
|
|
60
|
+
*.mo
|
|
61
|
+
*.pot
|
|
62
|
+
|
|
63
|
+
# Django stuff:
|
|
64
|
+
*.log
|
|
65
|
+
local_settings.py
|
|
66
|
+
db.sqlite3
|
|
67
|
+
|
|
68
|
+
# Flask stuff:
|
|
69
|
+
instance/
|
|
70
|
+
.webassets-cache
|
|
71
|
+
|
|
72
|
+
# Scrapy stuff:
|
|
73
|
+
.scrapy
|
|
74
|
+
|
|
75
|
+
# Sphinx documentation
|
|
76
|
+
docs/_build/
|
|
77
|
+
docs/*
|
|
78
|
+
|
|
79
|
+
# PyBuilder
|
|
80
|
+
target/
|
|
81
|
+
|
|
82
|
+
# Jupyter Notebook
|
|
83
|
+
.ipynb_checkpoints
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
.python-version
|
|
87
|
+
|
|
88
|
+
# celery beat schedule file
|
|
89
|
+
celerybeat-schedule
|
|
90
|
+
|
|
91
|
+
# SageMath parsed files
|
|
92
|
+
*.sage.py
|
|
93
|
+
|
|
94
|
+
# Environments
|
|
95
|
+
.env
|
|
96
|
+
.venv
|
|
97
|
+
env/
|
|
98
|
+
venv/
|
|
99
|
+
ENV/
|
|
100
|
+
env.bak/
|
|
101
|
+
venv.bak/
|
|
102
|
+
|
|
103
|
+
# Spyder project settings
|
|
104
|
+
.spyderproject
|
|
105
|
+
.spyproject
|
|
106
|
+
|
|
107
|
+
# Rope project settings
|
|
108
|
+
.ropeproject
|
|
109
|
+
|
|
110
|
+
# mkdocs documentation
|
|
111
|
+
/site
|
|
112
|
+
|
|
113
|
+
# mypy
|
|
114
|
+
.mypy_cache/
|
|
115
|
+
|
|
116
|
+
# PyCharm
|
|
117
|
+
.idea
|
muvid-0.0.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Thor Whalen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|