-
Notifications
You must be signed in to change notification settings - Fork 59
/
setup.py
executable file
·45 lines (39 loc) · 1.48 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
#!/usr/bin/env python3
from distutils.core import setup
from obswebsocket import VERSION
# Convert README from Markdown to reStructuredText
description = "Please take a look at README.md"
try:
description = open('README.md', 'rt').read()
import pypandoc
description = pypandoc.convert_text(description, 'rst', 'gfm')
except ImportError:
# If not possible, leave it in Markdown...
print("Cannot find pypandoc, not generating README!")
requirements = open('requirements.txt', 'rt').readlines()
requirements = [x.strip() for x in requirements if x]
setup(
name='obs-websocket-py',
packages=['obswebsocket'],
license='MIT',
version=VERSION,
description='Python library to communicate with an obs-websocket server.',
long_description=description,
author='Guillaume "Elektordi" Genty',
author_email='elektordi@elektordi.net',
url='https://github.com/Elektordi/obs-websocket-py',
keywords=['obs', 'obs-studio', 'websocket'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
install_requires=requirements,
)