-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (41 loc) · 1.05 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
from setuptools import setup
import setuptools
from setuptools.command.test import test as TestCommand
import sys
import os
class PyTest(TestCommand):
test_package_name = 'api'
def finalize_options(self):
TestCommand.finalize_options(self)
_test_args = [
'--ignore=build',
'--ignore=env'
]
extra_args = os.environ.get('PYTEST_EXTRA_ARGS')
if extra_args is not None:
_test_args.extend(extra_args.split())
self.test_args = _test_args
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='algo angele',
version='0.0.1',
description='parce que je dois lui faire ses devoirs',
url='',
author='remi',
author_email='',
license='DWTFYW',
packages=setuptools.find_packages(),
install_requires=[
],
zip_safe=False,
tests_require=[
'pytest-cov',
'pytest-cache',
'pytest'
],
cmdclass={'test': PyTest},
)