mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-20 08:40:19 +08:00
Merge pull request #4 from jeertmans/reserve-video-and-more
feat(cli): reverse videos on the fly!
This commit is contained in:
29
.github/workflows/python-publish.yml
vendored
29
.github/workflows/python-publish.yml
vendored
@ -8,40 +8,11 @@ on:
|
|||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_wheels:
|
|
||||||
name: Build wheels on ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
# Used to host cibuildwheel
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
|
|
||||||
- name: Install cibuildwheel
|
|
||||||
run: python -m pip install -U setuptools wheel pip
|
|
||||||
|
|
||||||
- name: Build wheels
|
|
||||||
run: python setup.py sdist
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/*.tar.*
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ build_wheels ]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v2
|
|
||||||
with:
|
|
||||||
name: dist
|
|
||||||
path: dist/
|
|
||||||
- name: Upload to PyPI
|
- name: Upload to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
with:
|
with:
|
||||||
|
@ -4,14 +4,9 @@ import platform
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
from manim import Scene, ThreeDScene, config, logger
|
||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
|
|
||||||
try:
|
|
||||||
from .manim import Scene, ThreeDScene, config, logger
|
|
||||||
except ImportError:
|
|
||||||
Scene = ThreeDScene = config = logger = None
|
|
||||||
# TODO: manage both manim and manimgl
|
|
||||||
|
|
||||||
try: # For manim<v0.16.0.post0
|
try: # For manim<v0.16.0.post0
|
||||||
from manim.constants import FFMPEG_BIN as ffmpeg_executable
|
from manim.constants import FFMPEG_BIN as ffmpeg_executable
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Reference in New Issue
Block a user