-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (55 loc) · 1.73 KB
/
setup.py
File metadata and controls
60 lines (55 loc) · 1.73 KB
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
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 = ['forgot_password']
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_forgot_password',
version='0.1.0',
packages=find_packages(),
description='Forgot Password Plugin for Skygear',
long_description=open(README).read(),
classifiers=classifiers,
author='SkygearIO',
author_email='[email protected]',
url='https://github.com/SkygearIO/forgot_password',
license='Apache License, Version 2.0',
install_requires=[
'Jinja2>=2.8',
'pyzmail36>=1.0.3',
'skygear>=1.6.0',
'nexmo>=2.0.0',
'twilio>=6.10.4'
],
cmdclass= {'test': PyTest},
tests_require=[
'pytest',
],
package_data={
'forgot_password': [
'templates/*.html',
'templates/*.txt',
],
},
)