add cocotb as a test dependency (not an install dependency) libresoc_master
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 9 Oct 2020 19:30:40 +0000 (20:30 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 9 Oct 2020 19:30:40 +0000 (20:30 +0100)
setup.py

index 0dec406017977ce2ae42c7b8ae32c2c00f7ed3a8..02023dc86f10fc0332915377fdc4d5064d43bca0 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -26,6 +26,10 @@ setup(
 
     # removing cocotb, causing unnecessary dependency and install problems
     install_requires=["setuptools", "nmigen"],
+
+    # unit tests require cocotb: main operation does not
+    tests_require=['cocotb'],
+
     include_package_data=True,
     packages=find_packages(),
     project_urls={