Skip to content

Commit 2de78c3

Browse files
committed
fix(video-compress): catch ffmpeg errors and add uv.lock file
1 parent 0c292ff commit 2de78c3

File tree

6 files changed

+2815
-28
lines changed

6 files changed

+2815
-28
lines changed

.github/workflows/vc-release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v6
19-
- name: Install pypa
20-
run: >-
21-
pip install hatch
22-
- name: Install
19+
20+
- name: Install pancdoc
2321
uses: pandoc/actions/setup@main
24-
- name: Pulish
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v7
25+
26+
- name: Build
2527
run: |
2628
make build
27-
hatch publish -u '__token__' -a '${{ secrets.HATCH_INDEX_AUTH }}'
29+
30+
- name: Pulish
31+
run: |
32+
uv publish -t '${{ secrets.HATCH_INDEX_AUTH }}'

video-compress/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
build: clean readme
2-
hatch build
2+
uv build
33

44
clean:
55
rm -rf build dist *.egg-info
66

77
help:
8-
@hatch run python -m vc --help
8+
@uv run vc --help
99

1010
fix:
1111
ruff check --fix

video-compress/README.org

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ pip3 install --force-reinstall -U git+https://github.com/jiacai2050/video-compre
2323

2424
This will install two commands: =vc=, =video-compress=, which are identical.
2525

26+
If you prefer to use [[https://docs.astral.sh/uv/concepts/tools/][uvtool]]:
27+
28+
#+begin_src bash
29+
uv tool install Video-compress
30+
#+end_src
31+
32+
2633
* Usage
2734
#+begin_src bash :results verbatim :exports results
2835
make help

video-compress/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ readme = "README.md"
1111
keywords = ["videos", "compress", "ffmpeg"]
1212
license = "GPL-3.0"
1313
requires-python = ">=3.6.0"
14-
dependencies = [
15-
]
14+
dependencies = [ ]
1615
classifiers = [
1716
"Operating System :: OS Independent",
1817
"Topic :: Software Development",
@@ -28,6 +27,9 @@ classifiers = [
2827
"Programming Language :: Python :: 3.11",
2928
]
3029

30+
[project.optional-dependencies]
31+
dev = [ "hatch" ]
32+
3133
[project.urls]
3234
Repository = "https://github.com/jiacai2050/my-works/tree/main/video-compress"
3335
Issues = "https://github.com/jiacai2050/my-works/issues"

0 commit comments

Comments
 (0)