-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
51 lines (45 loc) · 1.43 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
import sys
from os import path
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
README = path.abspath(path.join(path.dirname(__file__), 'README.md'))
classifiers = [
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Environment :: Web Environment',
'Development Status :: 3 - Alpha',
]
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['chat']
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='skygear_chat',
version='1.7.0',
packages=find_packages(),
description='Chat Plugin for Skygear',
long_description=open(README).read(),
classifiers=classifiers,
author='SkygearIO',
author_email='[email protected]',
url='https://github.com/SkygearIO/chat',
license='Apache License, Version 2.0',
install_requires=[
'skygear>=1.6.0',
],
cmdclass= {'test': PyTest},
tests_require=[
'pytest',
],
)