|
1 |
| -from ffmpeg._filters import __all__ as filter_names |
2 | 1 | from distutils.core import setup
|
| 2 | +from ffmpeg._filters import __all__ as filter_names |
| 3 | +from textwrap import dedent |
| 4 | +import subprocess |
| 5 | + |
| 6 | + |
| 7 | +def get_current_commit_hash(): |
| 8 | + p = subprocess.Popen(['git', 'rev-parse', 'HEAD'], stdout=subprocess.PIPE) |
| 9 | + commit_hash = p.communicate()[0].strip() |
| 10 | + assert p.returncode == 0, '`git rev-parse HEAD` failed' |
| 11 | + return commit_hash |
| 12 | + |
| 13 | + |
| 14 | +long_description = dedent(""" |
| 15 | + ffmpeg-python: Python bindings for FFmpeg |
| 16 | + ========================================= |
| 17 | +
|
| 18 | + :Github: https://github.com/kkroening/ffmpeg-python |
| 19 | + :API Reference: https://kkroening.github.io/ffmpeg-python/ |
| 20 | +""") |
| 21 | + |
| 22 | + |
3 | 23 |
|
| 24 | +commit_hash = get_current_commit_hash() |
| 25 | +download_url = 'https://github.com/kkroening/ffmpeg-python/archive/{}.zip'.format(commit_hash) |
4 | 26 |
|
5 | 27 | file_formats = [
|
6 | 28 | 'aac',
|
|
45 | 67 | setup(
|
46 | 68 | name = 'ffmpeg-python',
|
47 | 69 | packages = ['ffmpeg'],
|
48 |
| - version = '0.1.1', |
| 70 | + version = '0.1.2', |
49 | 71 | description = 'Python bindings for FFmpeg - with support for complex filtering',
|
50 | 72 | author = 'Karl Kroening',
|
51 | 73 | author_email = 'karlk@kralnet.us',
|
52 | 74 | url = 'https://github.com/kkroening/ffmpeg-python',
|
53 |
| - download_url = 'https://github.com/kkroening/ffmpeg-python/archive/0.1.1.tar.gz', |
| 75 | + download_url = download_url, |
54 | 76 | classifiers = [],
|
55 | 77 | keywords = keywords,
|
| 78 | + long_description = long_description, |
56 | 79 | )
|
0 commit comments