-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
51 lines (41 loc) · 1.36 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
import os
version = os.environ['GITHUB_REF'].split('/')[-1]
print(f'version: {version}')
with open('README.md', 'r') as rm:
long_desc = rm.read()
sta = 'Development Status :: 5 - Production/Stable'
bta = 'Development Status :: 4 - Beta'
dev_status = sta
ver = version.split('-')[0]
ver = ver.replace('v', '')
if 'beta' in version:
beta = version.split('-')[1]
beta = beta.split('beta.')[1]
ver += f'b{beta}'
dev_status = bta
setup(
name='pyffmpeg',
version=f'{ver}',
description='FFmpeg wrapper for python',
long_description=long_desc,
long_description_content_type='text/markdown',
url='https://github.com/deuteronomy-works/pyffmpeg',
author='Amoh - Gyebi Godwin Ampofo Michael',
author_email='amohgyebigodwin@gmail.com',
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
f"{dev_status}",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules"
],
keywords='''ffmpeg, FFmpeg, ffprobe, FFprobe,
album art, cover art, metadata,
conversion, converting, audio, video''',
packages=find_packages(),
)