Video editing with Python
Fix CI. (#1943)
Martín Gaitán86fd511fdbf9
diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.ymlindex 2f7c0a31..30f9d0f2 100644--- a/.github/workflows/test_suite.yml+++ b/.github/workflows/test_suite.yml@@ -15,24 +15,12 @@ jobs:runs-on: macos-lateststrategy:matrix:- python-version: [3.7]+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]steps:- uses: actions/checkout@v3- uses: s-weigand/setup-conda@v1with:activate-conda: true- # TODO: fix adding the different versions- # Pick the installation of Python Framework build from conda, because they do not support versioning- # https://anaconda.org/anaconda/python.app/files- #- name: Install conda python version 3.6- # if: matrix.python-version == '3.6'- # run: conda install http://repo.continuum.io/pkgs/main/osx-64/python.app-2-py36_10.tar.bz2- #- name: Install conda python version 3.7- # if: matrix.python-version == '3.7'- # run: conda install http://repo.continuum.io/pkgs/main/osx-64/python.app-2-py37_10.tar.bz2- #- name: Install conda python version 3.8- # if: matrix.python-version == '3.8'- # run: conda install http://repo.continuum.io/pkgs/main/osx-64/python.app-2-py38_10.tar.bz2- name: Install pythonwrun: conda install python.app- name: Python Version Info@@ -65,7 +53,7 @@ jobs:runs-on: windows-lateststrategy:matrix:- python-version: [3.6, 3.7, 3.8, 3.9]+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]fail-fast: falsesteps:- uses: actions/checkout@v3@@ -130,7 +118,7 @@ jobs:runs-on: ubuntu-lateststrategy:matrix:- python-version: [3.6, 3.7, 3.8, 3.9]+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]fail-fast: falsesteps:- uses: actions/checkout@v3diff --git a/setup.py b/setup.pyindex ceaa9663..751ee835 100644--- a/setup.py+++ b/setup.py@@ -1,9 +1,8 @@#!/usr/bin/env python"""MoviePy setup script."""-import osimport sys-from codecs import open+from pathlib import Pathtry:@@ -66,9 +65,7 @@ if "build_docs" in sys.argv:cmdclass["build_docs"] = BuildDoc-__version__ = None-with open(os.path.join("moviepy", "version.py"), "r", "utf-8") as f:- __version__ = f.read().split(" ")[2].strip("\n").strip('"')+__version__ = Path("moviepy/version.py").read_text().strip().split('"')[1][:-1]# Define the requirements for specific execution needs.@@ -122,8 +119,7 @@ extra_reqs = {}# Load the README.-with open("README.rst", "r", "utf-8") as file:- readme = file.read()+readme = Path("README.rst").read_text()setup(name="moviepy",@@ -143,10 +139,11 @@ setup("License :: OSI Approved :: MIT License","Programming Language :: Python","Programming Language :: Python :: 3",- "Programming Language :: Python :: 3.6","Programming Language :: Python :: 3.7","Programming Language :: Python :: 3.8","Programming Language :: Python :: 3.9",+ "Programming Language :: Python :: 3.10",+ "Programming Language :: Python :: 3.11","Topic :: Multimedia","Topic :: Multimedia :: Sound/Audio","Topic :: Multimedia :: Sound/Audio :: Analysis",