Skip to content

Commit 0823fb1

Browse files
committed
Publish standalone directories
1 parent a402d7e commit 0823fb1

File tree

2 files changed

+34
-6
lines changed

2 files changed

+34
-6
lines changed

.github/workflows/python-publish.yml

+34-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
# This workflows will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
41
name: Upload Auto-Editor Package
52
on:
63
release:
7-
types: [created]
4+
types: [published]
85
jobs:
96
deploy:
107
runs-on: ubuntu-latest
@@ -25,3 +22,36 @@ jobs:
2522
run: |
2623
python -m build
2724
twine upload dist/*
25+
make:
26+
runs-on: ${{ matrix.os }}
27+
strategy:
28+
matrix:
29+
include:
30+
- os: macos-14
31+
arch: arm64
32+
- os: macos-12
33+
arch: x86_64
34+
- os: ubuntu-latest
35+
arch: i686
36+
- os: ubuntu-latest
37+
arch: x86_64
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: Set up Python
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: "3.12"
44+
- name: Build Directory
45+
run: |
46+
pip install -U numpy pyav pyinstaller
47+
pyinstaller auto_editor/__main__.py --strip --optimize 2 \
48+
--exclude-module yaml --exclude-module numpy.random --exclude-module numpy.fft \
49+
--hidden-import auto_editor.subcommands.desc \
50+
--hidden-import auto_editor.subcommands.info --hidden-import auto_editor.subcommands.levels \
51+
--hidden-import auto_editor.subcommands.palet --hidden-import auto_editor.subcommands.repl \
52+
--hidden-import auto_editor.subcommands.subdump --hidden-import auto_editor.subcommands.test
53+
- name: Upload Directory
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: dist-${{ matrix.os }}-${{ matrix.arch }}
57+
path: dist/

auto_editor/output.py

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
from auto_editor.utils.log import Log
1414
from auto_editor.utils.types import Args
1515

16-
av.logging.set_level(av.logging.VERBOSE)
17-
1816

1917
@dataclass(slots=True)
2018
class Ensure:

0 commit comments

Comments
 (0)