Skip to content

Commit

Permalink
Merge pull request #10652 from benesch/mzcompose-dev
Browse files Browse the repository at this point in the history
mzcompose: always install dev deps when invoked from the root
  • Loading branch information
benesch committed Feb 14, 2022
2 parents e9aa95c + 292bca0 commit 044ea38
Show file tree
Hide file tree
Showing 42 changed files with 55 additions and 46 deletions.
7 changes: 1 addition & 6 deletions bin/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

if [ "$1" == "--dev" ] ; then
shift
exec "$(dirname "$0")"/pyactivate --dev -m materialize.cli.mzcompose "$@"
else
exec "$(dirname "$0")"/pyactivate -m materialize.cli.mzcompose "$@"
fi
exec "$(dirname "$0")"/pyactivate --dev -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion ci/test/cargo-test/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion demo/billing/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion demo/chbench/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion demo/http_logs/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion demo/simple/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion doc/developer/feature-benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cd test/feature-benchmark
Or, from the root of the repository:

```
bin/mzcompose --dev --find feature-benchmark run default --other-tag unstable
bin/mzcompose --find feature-benchmark run default --other-tag unstable
```

This is going to benchmark the current source against the `materialize/materialized:unstable` container from DockerHub.
Expand Down
2 changes: 1 addition & 1 deletion misc/dbt-materialize/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
14 changes: 14 additions & 0 deletions misc/python/materialize/cli/mzcompose
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")"/../../../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion misc/python/materialize/cli/mzcompose.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def run(self, args: argparse.Namespace) -> None:
#
# mzcompose — runs Docker Compose with Materialize customizations.
exec "$(dirname "$0")/{}/bin/mzcompose" "$@"
exec "$(dirname "$0")"/{}/bin/pyactivate -m materialize.cli.mzcompose "$@"
"""
for path in repo.compositions.values():
mzcompose_path = path / "mzcompose"
Expand Down
2 changes: 1 addition & 1 deletion play/mbta/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion play/wikirecent/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/aws-config/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/catalog-compat/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/cluster/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/debezium/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/feature-benchmark/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" --dev "$@"
exec "$(dirname "$0")"/../../bin/pyactivate --dev -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-exactly-once/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-ingest-open-loop/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-krb5/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-matrix/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-multi-broker/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-resumption/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-sasl-plain/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/kafka-ssl/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/lang/csharp/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/lang/java/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/lang/js/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/lang/python/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/limits/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/metabase/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/mzcompose_examples/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/perf-kinesis/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/persistence/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/pg-cdc-resumption/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/pg-cdc/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/proxy/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/restart/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/s3-resumption/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/sqllogictest/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/testdrive/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"
2 changes: 1 addition & 1 deletion test/upgrade/mzcompose
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# mzcompose — runs Docker Compose with Materialize customizations.

exec "$(dirname "$0")/../../bin/mzcompose" "$@"
exec "$(dirname "$0")"/../../bin/pyactivate -m materialize.cli.mzcompose "$@"

0 comments on commit 044ea38

Please sign in to comment.