8000 Update setup.py · Powercoder64/ffmpeg-python@a0d081a · GitHub
[go: up one dir, main page]

Skip to content

Commit a0d081a

Browse files
committed
Update setup.py
1 parent 71500ce commit a0d081a

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

setup.py

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
1-
from ffmpeg._filters import __all__ as filter_names
21
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+
323

24+
commit_hash = get_current_commit_hash()
25+
download_url = 'https://github.com/kkroening/ffmpeg-python/archive/{}.zip'.format(commit_hash)
426

527
file_formats = [
628
'aac',
@@ -45,12 +67,13 @@
4567
setup(
4668
name = 'ffmpeg-python',
4769
packages = ['ffmpeg'],
48-
version = '0.1.1',
70+
version = '0.1.2',
4971
description = 'Python bindings for FFmpeg - with support for complex filtering',
5072
author = 'Karl Kroening',
5173
author_email = 'karlk@kralnet.us',
5274
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,
5476
classifiers = [],
5577
keywords = keywords,
78+
long_description = long_description,
5679
)

0 commit comments

Comments
 (0)
0