From 52a2a68bea47161a395a4727da5f31e7de347f95 Mon Sep 17 00:00:00 2001 From: Dante <148709693+dante-tech@users.noreply.github.com> Date: Tue, 16 Jan 2024 21:25:15 +0100 Subject: [PATCH] Refine Package Discovery in Setup Script This commit addresses an issue with the package discovery process in the setup script. Previously, the `find_packages` function from `setuptools` was used with an exclusion filter for the 'tests' directory. However, this approach did not account for the specific structure of our project, potentially leading to some packages being overlooked or incorrectly included. Changes made: - Modified the `find_packages` call to explicitly include the main package 'dnsvalidator' and all its sub-packages. This ensures that the setup script correctly locates and includes all necessary packages within the 'dnsvalidator' directory, aligning with our project's directory structure. This modification aims at enhancing the reliability and accuracy of the package setup process, ensuring a smoother installation and deployment experience for users and contributors. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 033bed8..b46af76 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def dependencies(imported_file): version=__version__, author_email="", url="https://github.com/vortexau/dnsvalidator", - packages=find_packages(exclude=('tests')), + packages=find_packages(include=['dnsvalidator', 'dnsvalidator.*']), package_data={'dnsvalidator': ['*.txt']}, entry_points={ 'console_scripts': [