Added tests_require keyword to setup()

This commit is contained in:
Dmitri Bogomolov 2018-04-20 10:17:58 +03:00
parent ea8991c05b
commit ce6e9804ad
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -12,7 +12,7 @@ from src.version import softwareVersion
EXTRAS_REQUIRE = {
'gir': ['pygobject'],
'notify2': ['notify2'],
'pyopencl': ['pyopencl'],
'opencl': ['pyopencl', 'numpy'],
'prctl': ['python_prctl'], # Named threads
'qrcode': ['qrcode'],
'sound;platform_system=="Windows"': ['winsound'],
@ -22,7 +22,7 @@ EXTRAS_REQUIRE = {
'curses', # src/depends.py
'python2-pythondialog', # src/depends.py
'm2r', # fab build_docs
],
]
}
@ -50,6 +50,9 @@ if __name__ == "__main__":
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'requirements.txt'), 'r') as f:
requirements = list(f.readlines())
bitmsghash = Extension(
'pybitmessage.bitmsghash.bitmsghash',
sources=['src/bitmsghash/bitmsghash.cpp'],
@ -80,7 +83,8 @@ if __name__ == "__main__":
import umsgpack
installRequires.append("umsgpack")
except ImportError:
packages += ['pybitmessage.fallback', 'pybitmessage.fallback.umsgpack']
packages += [
'pybitmessage.fallback', 'pybitmessage.fallback.umsgpack']
dist = setup(
name='pybitmessage',
@ -96,6 +100,7 @@ if __name__ == "__main__":
# TODO: add keywords
#keywords='',
install_requires=installRequires,
tests_require=requirements,
extras_require=EXTRAS_REQUIRE,
classifiers=[
"License :: OSI Approved :: MIT License"