add cocotb as a test dependency (not an install dependency)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 9 Oct 2020 19:30:40 +0000 (20:30 +0100)
committerStaf Verhaegen <staf@stafverhaegen.be>
Thu, 22 Apr 2021 14:19:14 +0000 (16:19 +0200)
setup.py

index 941365590be844ebd91988c13d04172de066bd7d..b57c2e4587251ef5acd8da52d0ca8f77b4631e4d 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", "nmigen-soc", "modgrammar"],
+
+    # unit tests require cocotb: main operation does not
+    tests_require=['cocotb'],
+
     include_package_data=True,
     packages=find_packages(),
     project_urls={