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