Skip to content

Commit

Permalink
chore: update synth.py to latest noxfile template (#93)
Browse files Browse the repository at this point in the history
Follow-up to #86 where I manually reverted a change to `noxfile.py`
  • Loading branch information
tswast committed Nov 10, 2020
1 parent 7cf4f32 commit e9f53ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 0 additions & 2 deletions noxfile.py
Expand Up @@ -75,8 +75,6 @@ def default(session):
session.install(
"mock", "pytest", "pytest-cov",
)
session.install("-e", ".")

session.install("-e", ".[fastavro,pandas,pyarrow]")

# Run py.test against the unit tests.
Expand Down
18 changes: 4 additions & 14 deletions synth.py
Expand Up @@ -74,7 +74,8 @@
templated_files = common.py_library(
microgenerator=True,
samples=True,
unit_test_dependencies=optional_deps,
unit_test_local_dependencies=optional_deps,
system_test_local_dependencies=optional_deps,
cov_level=95,
)
s.move(
Expand Down Expand Up @@ -201,19 +202,8 @@
# redundant to install the library twice.
s.replace(
"noxfile.py",
(
r'session\.install\("-e", "\."\)\n '
r'(?=session\.install\("-e", "\.\[fastavro)' # in unit tests session
),
"",
)
s.replace(
"noxfile.py",
(
r'(?<=google-cloud-testutils", \)\n)'
r' session\.install\("-e", "\."\)\n' # in system tests session
),
' session.install("-e", ".[fastavro,pandas,pyarrow]")\n',
r'\)\s*session\.install\("-e", "\."\)\n',
")\n",
)

# Fix test coverage plugin paths.
Expand Down

0 comments on commit e9f53ef

Please sign in to comment.