setup.py: Exclude "tests" package
authorXiretza <xiretza@xiretza.xyz>
Mon, 19 Oct 2020 17:23:43 +0000 (19:23 +0200)
committerwhitequark <whitequark@whitequark.org>
Mon, 19 Oct 2020 22:59:33 +0000 (22:59 +0000)
67b957d moved the tests from nmigen/test/ to tests/, and removed the
exclude= parameter from find_packages() in setup.py. However, even if
the new location is not inside the module tree, it is still found by
find_packages(), resulting in a stray "tests" module on the system.

setup.py

index 39326eeb059a1674602d3dbf29c02ad3079d03e4..040bb37f3eced9a731ae23129c44577a16a2a4c0 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ setup(
         "builtin-yosys": ["nmigen-yosys>=0.9.post3527.*"],
         "remote-build": ["paramiko~=2.7"],
     },
-    packages=find_packages(),
+    packages=find_packages(exclude=["tests*"]),
     entry_points={
         "console_scripts": [
             "nmigen-rpc = nmigen.rpc:main",