mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-09-19 21:33:29 +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]
|
||||
|
||||
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:
|
||||
name: Release
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ build_wheels ]
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
- name: Upload to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
|
@ -4,14 +4,9 @@ import platform
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
from manim import Scene, ThreeDScene, config, logger
|
||||
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
|
||||
from manim.constants import FFMPEG_BIN as ffmpeg_executable
|
||||
except ImportError:
|
||||
|
Reference in New Issue
Block a user