This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
[Packaging] Error prone tests
and docs
modules included
#74
Labels
api: recaptchaenterprise
Issues related to the googleapis/python-recaptcha-enterprise API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
The
tests
(anddocs
) modules are packaged, despite it's not good practice it may alors break projects having their owntests
module.Environment details
OS type and version:
Linux mistigri 5.8.0-53-generic #60-Ubuntu SMP Thu May 6 07:46:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Python version:
python --version
:Python 3.8.6
pip version:
pip --version
:pip 20.1.1
google-cloud-recpatchaenterprise
version:pip show google-cloud-recaptcha-enterprise
Steps to reproduce
virtualenv -p /usr/bin/python3.8 ../venv/test_project
python -c "import tests;print(tests.__file__)"
/home/qbey/dev_perso/venv/test_project/lib/python3.8/site-packages/tests/__init__.py
Code example
No real code example, this causes crash on one of our Django library that implements its own
tests
module and cannot be loaded through the Django magicmod = importlib.import_module(self.SETTINGS_MODULE)
whereself.SETTINGS_MODULE
istests.projects.settings
.Stack trace
I will draft a pull request to remove
tests
anddocs
from the Python package.The text was updated successfully, but these errors were encountered: