1
0
mirror of synced 2025-12-30 12:04:43 -05:00
Files
airbyte/tools/bin/setup_connector_venv.sh
Alexandre Girard 266f05cecd Add script to setup venv for a connector (#11699)
* Add script to setup venv for a connector

* new line

* echo

* Add missing requirements file

* Add script to add venvs to intellij

* script to install venv

* Update

* This should be easier to use

* Better default

* Add unit tests

* add install venv option flag

* remove references to my own own home directory

* Call tools/bin/setup_connector_venv.sh

* Skip module if it already exists in the jdk table

* update

* Set right test name

* better interface

* update

* rename flag

* move to a function

* fix variable name

* derp

* Use real path

* Update setup instructions

* update instructions

* Instructions to both install the venv and update intellij

* update link

* Add command to install venv for all connectors

* <>

* newline
2022-04-08 17:18:14 -07:00

15 lines
300 B
Bash
Executable File

#!/usr/bin/env bash
set -e
CONNECTOR=$1
PYTHON_EXECUTABLE=${2-python}
echo Installing requirements for $CONNECTOR
cd airbyte-integrations/connectors/$CONNECTOR
$PYTHON_EXECUTABLE -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install '.[tests]'
pip install pytest-cov