Skip to content

Commit 739d6df

Browse files
committed
Exclude test package
Sendgrid tests are installed into `<python_sitelib>/test` which may cause conflicts with other packages. We have run into this when building a package for Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=1309244) The solution would be to either exclude tests or install them under sendgrid directory (`<python_sitelib>/sendgrid/test`).
1 parent 629377e commit 739d6df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def getRequires():
2525
author='Elmer Thomas, Yamil Asusta',
2626
author_email='dx@sendgrid.com',
2727
url='https://github.com/sendgrid/sendgrid-python/',
28-
packages=find_packages(exclude=["temp*.py", "register.py"]),
28+
packages=find_packages(exclude=["temp*.py", "register.py", "test"]),
2929
include_package_data=True,
3030
license='MIT',
3131
description='SendGrid library for Python',

0 commit comments

Comments
 (0)