10000 Make `setup.py test` work · geosson/ffmpeg-python@6960751 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6960751

Browse files
committed
Make setup.py test work
1 parent d0e226e commit 6960751

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.cache
2+
.eggs
3+
.tox/
24
dist/
35
ffmpeg/tests/sample_data/dummy2.mp4
6+
ffmpeg_python.egg-info/
47
venv*
5-
.tox/

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
future
22
pytest
3+
pytest-runner
34
sphinx
45
tox

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[aliases]
2+
test=pytest

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from distutils.core import setup
2-
from ffmpeg._filters import __all__ as filter_names
1+
from setuptools import setup
32
from textwrap import dedent
43
import subprocess
54

@@ -61,11 +60,13 @@ def get_current_commit_hash():
6160
'wrapper',
6261
]
6362

64-
keywords = misc_keywords + file_formats + filter_names
63+
keywords = misc_keywords + file_formats
6564

6665
setup(
6766
name='ffmpeg-python',
6867
packages=['ffmpeg'],
68+
setup_requires=['pytest-runner'],
69+
tests_require=['pytest'],
6970
version='0.1.5',
7071
description='Python bindings for FFmpeg - with support for complex filtering',
7172
author='Karl Kroening',

0 commit comments

Comments
 (0)
0