From ef885c8b299eda683342303ceefe5a159daf2f47 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Wed, 10 Feb 2021 16:01:06 +0100 Subject: [PATCH] Mark test directories as modules This allows pytest to be run from the root directory on the sources themselves without having to install them, which is useful for packaging. --- setup.py | 2 +- tests/__init__.py | 0 tests/unit/__init__.py | 0 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/__init__.py create mode 100644 tests/unit/__init__.py diff --git a/setup.py b/setup.py index 1123ee1e6..3c6d802f0 100644 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ }, # download_url="https://github.com/vhdl/pyVHDLModel/tarball/0.1.0", - packages=setuptools_find_packages(), + packages=setuptools_find_packages(exclude=["tests", "tests.*",]), classifiers=[ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py new file mode 100644 index 000000000..e69de29bb