Update setup.py

This commit is contained in:
Karl Kroening 2017-06-15 23:13:03 -06:00
parent 190593b35f
commit b002e8c31b
2 changed files with 6 additions and 11 deletions

View File

@ -1,5 +1,8 @@
2.6.9
2.7.12
3.3.6 3.3.6
3.4.6 3.4.6
3.5.3 3.5.3
3.6.1 3.6.1
pypy-5.7.0
jython-2.7.0 jython-2.7.0

View File

@ -2,12 +2,8 @@ from setuptools import setup
from textwrap import dedent from textwrap import dedent
import subprocess import subprocess
version = '0.1.6'
def get_current_commit_hash(): download_url = 'https://github.com/kkroening/ffmpeg-python/archive/v{}.zip'.format(version)
p = subprocess.Popen(['git', 'rev-parse', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
commit_hash = p.communicate()[0].strip()
return commit_hash
long_description = dedent("""\ long_description = dedent("""\
ffmpeg-python: Python bindings for FFmpeg ffmpeg-python: Python bindings for FFmpeg
@ -18,10 +14,6 @@ long_description = dedent("""\
""") """)
commit_hash = get_current_commit_hash()
download_url = 'https://github.com/kkroening/ffmpeg-python/archive/{}.zip'.format(commit_hash)
file_formats = [ file_formats = [
'aac', 'aac',
'ac3', 'ac3',
@ -67,7 +59,7 @@ setup(
packages=['ffmpeg'], packages=['ffmpeg'],
setup_requires=['pytest-runner'], setup_requires=['pytest-runner'],
tests_require=['pytest'], tests_require=['pytest'],
version='0.1.6', version=version,
description='Python bindings for FFmpeg - with support for complex filtering', description='Python bindings for FFmpeg - with support for complex filtering',
author='Karl Kroening', author='Karl Kroening',
author_email='karlk@kralnet.us', author_email='karlk@kralnet.us',