Commit 98d3a738 authored by Joseph Weston's avatar Joseph Weston

allow test running with 'python setup.py test'

parent cda02e49
Pipeline #22879 passed with stage
in 2 minutes and 46 seconds
[aliases]
test=pytest
[tool:pytest]
addopts = --verbose
......@@ -21,6 +21,14 @@ extras_require = {
'kwant': ['kwant'],
}
tests_require = [
'pytest',
]
setup_requires = [
'pytest-runner',
]
# Loads version.py module without importing the whole package.
def get_version_and_cmdclass(package_path):
......@@ -57,6 +65,8 @@ setup(
packages=find_packages('.'),
install_requires=install_requires,
extras_require=extras_require,
tests_require=tests_require,
setup_requires=setup_requires,
version=version,
cmdclass=cmdclass,
)
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