-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (44 loc) · 1.39 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
import setuptools
from setuptools.command.test import test
import sys
try:
from flask_executor import __version__ as version
except ImportError:
import re
pattern = re.compile(r"__version__ = '(.*)'")
with open('flask_executor/__init__.py') as f:
version = pattern.search(f.read()).group(1)
with open('README.md', 'r') as fh:
long_description = fh.read()
class pytest(test):
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setuptools.setup(
name='Flask-Executor',
version=version,
author='Dave Chevell',
author_email='chevell@gmail.com',
description='An easy to use Flask wrapper for concurrent.futures',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/dchevell/flask-executor',
packages=setuptools.find_packages(exclude=['tests']),
keywords=['flask', 'concurrent.futures'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
license='MIT',
install_requires=['Flask'],
extras_require={
':python_version == "2.7"': ['futures>=3.1.1'],
'test': ['pytest', 'pytest-cov', 'codecov', 'flask-sqlalchemy'],
},
test_suite='tests',
cmdclass={
'test': pytest
}
)