Commit 5b4bf696 authored by Memet Bilgin's avatar Memet Bilgin Committed by oroulet

add conditional requirement as per https://pypi.org/project/pytest-runner/...

add conditional requirement as per https://pypi.org/project/pytest-runner/ conditional requirements instructions
parent ff14598c
from setuptools import setup, find_packages
import sys
# don't require pytest-runner unless we have been invoked as a test launch
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
setup(
name="asyncua",
......@@ -35,5 +40,6 @@ setup(
'uageneratestructs = asyncua.tools:uageneratestructs',
]
},
tests_require=['pytest', 'pytest-runner'],
setup_requires=[] + pytest_runner,
tests_require=['pytest'],
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment