#343 Filter out the 'tests.*' submodules in find_packages in setup.py.
Merged 5 months ago by jkaluza. Opened 5 months ago by jkaluza.
jkaluza/freshmaker spec-fix  into  master

file modified
+1 -1

@@ -43,7 +43,7 @@ 

        author_email='freshmaker-owner@fedoraproject.org',

        url='https://pagure.io/freshmaker/',

        license='MIT',

-       packages=find_packages(exclude=['tests']),

+       packages=find_packages(exclude=['tests', 'tests.*']),

        include_package_data=True,

        zip_safe=False,

        install_requires=install_requires,

Since we have added multiple directories in the ./tests, the old
find_packages exclude stopped working, because it did not filter out
all the tests.* sub-modules, but just the main "test" module.

This commit extends the old code to filter out also the sub-modules.

Pull-Request has been merged by jkaluza

5 months ago
Metadata