Permalink
Browse files

update ci for ffmpeg

  • Loading branch information...
sdpython committed Dec 28, 2017
1 parent 4130b96 commit dceb5784b830b485ff5445e694057cf800afd0e1
Showing with 33 additions and 21 deletions.
  1. +6 −0 .circleci/config.yml
  2. +1 −0 .travis.yml
  3. +1 −0 appveyor.yml
  4. +25 −21 setup.py
View
@@ -70,6 +70,12 @@ jobs:
pip install git+https://github.com/sdpython/sphinxcontrib-images.git --upgrade --no-deps
pip install git+https://github.com/bokeh/datashader.git --upgrade --no-deps
- run:
name: setup moviepy and ffmpeg
command: |
. venv/bin/activate
python setup.py moviepy-setup
- run:
name: install basemap
command: |
View
@@ -26,5 +26,6 @@ install:
- conda install -q --file=requirements_conda.txt
- conda install -y basemap
- pip install -r requirements.txt
- python setup.py moviepy-setup
script:
- python setup.py unittests
View
@@ -40,6 +40,7 @@ install:
- "%PYTHON%\\Scripts\\pip install tutormagic"
- "%PYTHON%\\Scripts\\pip install pycodestyle"
- "%PYTHON%\\Scripts\\pip install chainer gdown fcn"
- "%PYTHON%\\python setup.py moviepy-setup"
build: off
View
@@ -85,6 +85,7 @@ def is_local():
"upload_docs" in sys.argv or \
"setup_hook" in sys.argv or \
"copy_sphinx" in sys.argv or \
"moviepy-setup" in sys.argv or \
"write_version" in sys.argv:
try:
import_pyquickhelper()
@@ -138,9 +139,6 @@ def write_version():
from pyquickhelper.pycode import write_version_for_setup
return write_version_for_setup(__file__)
if sys.version_info[0] != 2:
write_version()
versiontxt = os.path.join(os.path.dirname(__file__), "version.txt")
if os.path.exists(versiontxt):
with open(versiontxt, "r") as f:
@@ -185,24 +183,30 @@ def write_version():
verbose()
if is_local():
pyquickhelper = import_pyquickhelper()
logging_function = pyquickhelper.get_fLOG()
from pyquickhelper.pycode import process_standard_options_for_setup
logging_function(OutputPrint=True)
r = process_standard_options_for_setup(
sys.argv, __file__, project_var_name,
unittest_modules=["pyquickhelper"],
additional_notebook_path=["jyquickhelper", "pyquickhelper", "pyensae",
"pyrsslocal", "pymyinstall", "pymmails", "ensae_projects"],
requirements=["pyquickhelper", "jyquickhelper", ],
blog_list=os.path.abspath(os.path.join(
"src", project_var_name, package_data[project_var_name][0])),
fLOG=logging_function,
covtoken=("4326eb4c-78b5-4ff3-9317-9329fdb20f43", "'_UT_36_std' in outfile"))
if not r and not ({"bdist_msi", "sdist",
"bdist_wheel", "publish", "publish_doc", "register",
"upload_docs", "bdist_wininst", "build_ext"} & set(sys.argv)):
raise Exception("unable to interpret command line: " + str(sys.argv))
if 'moviepy-setup' in sys.argv:
from imageio.plugins.ffmpeg import download
download()
r = True
else:
pyquickhelper = import_pyquickhelper()
logging_function = pyquickhelper.get_fLOG()
from pyquickhelper.pycode import process_standard_options_for_setup
logging_function(OutputPrint=True)
r = process_standard_options_for_setup(
sys.argv, __file__, project_var_name,
unittest_modules=["pyquickhelper"],
additional_notebook_path=["jyquickhelper", "pyquickhelper", "pyensae",
"pyrsslocal", "pymyinstall", "pymmails", "ensae_projects"],
requirements=["pyquickhelper", "jyquickhelper", ],
blog_list=os.path.abspath(os.path.join(
"src", project_var_name, package_data[project_var_name][0])),
fLOG=logging_function,
covtoken=("4326eb4c-78b5-4ff3-9317-9329fdb20f43", "'_UT_36_std' in outfile"))
if not r and not ({"bdist_msi", "sdist",
"bdist_wheel", "publish", "publish_doc", "register",
"upload_docs", "bdist_wininst", "build_ext"} & set(sys.argv)):
raise Exception(
"unable to interpret command line: " + str(sys.argv))
else:
r = False

0 comments on commit dceb578

Please sign in to comment.