setup.py: Exclude "tests" package
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:14:37 +0000 (15:14 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:14:37 +0000 (15:14 +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 fff8dd1dd4d84d6ffcf9e98b970a320eac9a7654..2dc3b99fb8516edda2b07a27df39a1b21f7e57cc 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ setup(
     extras_require={
         "remote-build": ["paramiko~=2.7"],
     },
-    packages=find_packages(),
+    packages=find_packages(exclude=["tests*"]),
     entry_points={
         "console_scripts": [
             "nmigen-rpc = nmigen.rpc:main",