sendgrid / sendgrid-python

The Official Twilio SendGrid Python API Library
https://sendgrid.com
MIT License
1.53k stars 712 forks source link

fix: Ignore submodules in test directory #1071

Open davismr opened 1 year ago

davismr commented 1 year ago

so they are not installed under test folder in python site-packages

Also remove the temp*.py exclusion as this does not seem to have any purpose

Fixes

Installing sendgrid will also install test folder, with two sub folders in site-packages. This can create conflicts at worst and creates noise at best. Currently test folder is ignore in find_packages, but tests have been split into sub-modules and the find_packages exclude attribute was not updasted.

To test, install current main branch. Confirm test folder is in site-packages. Uninstall sendgrid, delete test folder in site-packages, delete *.egg-info folder, delete build folder, reinstall. test folder is no longer installed

Checklist

If you have questions, please file a support ticket.