Skip to content

Commit 18c4efb

Browse files
authored
chore: replace local 'test_utils' w/ PyPI version (#180)
Closes #179
1 parent de33c53 commit 18c4efb

15 files changed

Lines changed: 5 additions & 1327 deletions

packages/google-cloud-dlp/noxfile.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ def system(session):
140140
# Install all test dependencies, then install this package into the
141141
# virtualenv's dist-packages.
142142
session.install("mock", "pytest", "google-cloud-testutils", "-c", constraints_path)
143-
session.install("-e", "test_utils", "-c", constraints_path)
144-
145143
session.install("-e", ".", "-c", constraints_path)
146144

147145
# Run py.test against the system tests.

packages/google-cloud-dlp/owlbot.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,29 @@
1515
"""This script is used to synthesize generated parts of this library."""
1616

1717
import synthtool as s
18-
import synthtool.gcp as gcp
18+
from synthtool import gcp
1919
from synthtool.languages import python
20-
import logging
21-
22-
logging.basicConfig(level=logging.DEBUG)
2320

2421
common = gcp.CommonTemplates()
2522

2623
default_version = "v2"
2724

2825
for library in s.get_staging_dirs(default_version):
29-
excludes = ["README.rst", "nox.py", "setup.py", "docs/index.rst"]
30-
s.move(library, excludes=excludes)
26+
s.move(library, excludes=["README.rst", "docs/index.rst", "setup.py"])
3127

3228
s.remove_staging_dirs()
3329

3430
# ----------------------------------------------------------------------------
3531
# Add templated files
3632
# ----------------------------------------------------------------------------
3733
templated_files = common.py_library(
38-
system_test_dependencies=["test_utils"], samples=True, microgenerator=True,
34+
samples=True,
35+
microgenerator=True, # set to True only if there are samples
3936
cov_level=98
4037
)
38+
4139
s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file
4240

43-
# ----------------------------------------------------------------------------
44-
# Samples templates
45-
# ----------------------------------------------------------------------------
4641
python.py_samples()
4742

4843
# Temporarily disable warnings due to

packages/google-cloud-dlp/test_utils/credentials.json.enc

Lines changed: 0 additions & 49 deletions
This file was deleted.

packages/google-cloud-dlp/test_utils/scripts/circleci/get_tagged_package.py

Lines changed: 0 additions & 64 deletions
This file was deleted.

packages/google-cloud-dlp/test_utils/scripts/circleci/twine_upload.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)