Repository navigation
Commit b87776d
authored
fix(gapic-generator): restrict package discovery to gapic* namespace (#18030)
### Summary
Previously, `setup.py` called
`setuptools.find_namespace_packages(exclude=["docs", "tests"])` without
wildcard glob patterns.
When CI (`run_single_test.sh`) or local test runners created temporary
virtual environments (such as `.venv-profiler` or `.nox`), `setuptools`
mistook those hidden directories for library packages and attempted to
package their contents, causing `pip install -e .` and CI profiling jobs
to fail or take too long.
### Fix
This PR updates `exclude` in `setup.py` to use wildcard glob patterns:
```python
packages=setuptools.find_namespace_packages(
exclude=["docs*", "tests*", "testing*", ".*", "bazel*", "rules_python_gapic*"]
),1 parent dd2000d commit b87776d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments