-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
82 lines (65 loc) · 1.61 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"""
setup
~~~~~
:copyright: (c) 2014 by ,
see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
install_requires = [
'Django==1.8.2',
'psycopg2',
'django-crispy-forms==1.4.0',
'django-filter==0.10.0',
]
tests_require = [
'pytest',
'pytest-cov>=1.4',
'pytest-django',
'factory_boy',
]
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='bughipster',
version='0.1.0',
author='Xavier Ordoquy',
author_email='xordoquy@linovia.com',
url='https://github.com/linovia/bughipster',
description='',
long_description=open('README.md').read(),
license='BSD',
packages=[
'bughipster',
],
package_dir={'bughipster': 'bughipster'},
zip_safe=False,
install_requires=install_requires,
include_package_data=True,
entry_points={
'console_scripts': [
'bughipster = bughipster.runner:main',
],
},
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
cmdclass={'test': PyTest},
tests_require=tests_require,
extras_require={
'tests': tests_require,
},
)