Merge pull request #4 from jeertmans/reserve-video-and-more

feat(cli): reverse videos on the fly!
This commit is contained in:
Jérome Eertmans
2022-09-07 23:49:26 +02:00
committed by GitHub
3 changed files with 2 additions and 35 deletions

View File

@ -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:

View File

@ -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:

View File

@ -30,6 +30,7 @@ setuptools.setup(
"click>=8.0",
"click-default-group>=1.2",
"numpy>=1.19.3",
"manim",
"pydantic>=1.9.1",
"opencv-python>=4.6",
],