forked from senko/python-video-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (36 loc) · 1.02 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
#!/usr/bin/env python
from distutils.core import setup, Command
import os
class TestCommand(Command):
user_options = []
def initialize_options(self):
self._testdir = os.path.join(os.getcwd(), 'test')
def finalize_options(self):
pass
def run(self):
os.chdir(self._testdir)
retval = os.system('python -m test')
if retval != 0:
raise Exception('tests failed')
class DocCommand(Command):
user_options = []
def initialize_options(self):
self._docdir = os.path.join(os.getcwd(), 'doc')
def finalize_options(self):
pass
def run(self):
os.chdir(self._docdir)
os.system('make html')
setup(
name='VideoConverter',
version='1.1.0',
description='Video Converter library',
url='https://github.com/senko/python-video-converter/',
author='Senko Rasic',
author_email='senko.rasic@dobarkod.hr',
cmdclass={
'test': TestCommand,
'doc': DocCommand
},
packages=['converter'],
)