forked from pymedusa/Medusa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (53 loc) · 1.67 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
62
63
64
"""Use setup tools to install Medusa."""
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
here = os.path.abspath(os.path.dirname(__file__))
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args.split(' '))
sys.exit(errno)
with open(os.path.join(here, 'readme.md'), 'r') as r:
long_description = r.read()
setup(
name="medusa",
description="Automatic Video Library Manager for TV Shows",
long_description=long_description,
packages=find_packages(),
install_requires=['tornado==5.1.1', 'six', 'profilehooks', 'contextlib2', ],
cmdclass={'test': PyTest},
tests_require=[
'flake8>=3.5.0',
'flake8-docstrings>=1.3.0',
'flake8-import-order>=0.18',
'flake8-quotes>=1.0.0',
'pep8-naming>=0.7.0',
'pycodestyle>=2.4.0',
'pytest>=3.8.0',
'pytest-cov>=2.6.0',
'pytest-flake8>=1.0.2',
'pytest-tornado>=0.5.0',
'PyYAML>=3.13,<4',
'vcrpy>=1.13.0',
'mock>=2.0.0',
],
extras_require={
'system-stats': ['psutil'],
},
classifiers=[
'Development Status :: ???',
'Intended Audience :: Developers',
'Operating System :: POSIC :: LINUX',
'Topic :: ???',
],
)