-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
49 lines (40 loc) · 1.09 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
"""
Lemon
=====
Single Page Application extension for Flask.
"""
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
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('-x tests/ --cov lemon --cov-report term-missing --pdb')
sys.exit(errno)
setup(
name='Lemon',
version='0.0.1',
url='http://github.com/theorchard/lemon-py/',
license='MIT',
author='Michael Ortali',
author_email='mortali@theorchard.com',
description='Single Page Application extension for Flask',
long_description=__doc__,
packages=['lemon',],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'requests'],
tests_require=[
'pytest-cov'],
cmdclass = {
'test': PyTest})