forked from Elektordi/obs-websocket-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·61 lines (51 loc) · 1.79 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
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from distutils.core import setup
from setuptools.command.sdist import sdist
version = "0.5.1"
# 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', 'markdown_github')
except ImportError:
pass
# If not possible, leave it in Markdown...
requirements = open('requirements.txt', 'rt').readlines()
requirements = [x.strip() for x in requirements if x]
# Generate classes
class UpdateClasses(sdist):
def run(self):
from os.path import dirname
from sys import path
path.append(dirname(__file__))
from generate_classes import generate_classes
generate_classes()
sdist.run(self)
setup(
name='obs-websocket-py',
packages=['obswebsocket'],
# cmdclass={'sdist': UpdateClasses},
license='MIT',
version=version,
description='Python library to communicate with an obs-websocket server.',
long_description=description,
author='Guillaume "Elektordi" Genty',
author_email='[email protected]',
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 :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
],
install_requires=requirements,
)